ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Lalevée (JIRA) <j...@apache.org>
Subject [jira] Resolved: (IVYDE-271) Eclipse-IvyDE should not add ivy jar to ant class path when Ant is run as an external tool
Date Mon, 17 Jan 2011 10:24:43 GMT

     [ https://issues.apache.org/jira/browse/IVYDE-271?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Nicolas Lalevée resolved IVYDE-271.
-----------------------------------

    Resolution: Fixed
      Assignee: Nicolas Lalevée

I have split the ivy feature int the updatesite into two ones: one is only the ivy jar, the
other is its integration in Eclipse's Ant runtime.
It will be available with the next release of Ivy.


Note that there is a workaround with the current release: uninstall the Ivy and IvyDE features.
And put manually the plugins org.apache.ivy and org.apache.ivyde.eclipse (but not the org.apache.ivy.eclipse.ant
one) in the dropins folder.

> Eclipse-IvyDE should not add ivy jar to ant class path when Ant is run as an external
tool
> ------------------------------------------------------------------------------------------
>
>                 Key: IVYDE-271
>                 URL: https://issues.apache.org/jira/browse/IVYDE-271
>             Project: IvyDE
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>            Reporter: Martin Weber
>            Assignee: Nicolas Lalevée
>
> The external Ant will abort with a ClassNotFoundException in the first <ivy:resolve>
task if Ivy is configured to use classes from other jars (e.g. jars with custom version matcher
classes, parser classes, sftp resolver in this case).
> Example: 
> - ivysettings defines an sftp resolver (which requires jsch.jar to work)
> - in build.xml, Ivy tasks are define with <taskdef>
> <classpath >
>   <fileset dir="${generic.buildsys.dir}/lib-ivy">
>         <include name="jsch*.jar" />               <----- needed for sftp resolver
>         <include name="ivy*.jar" />                  <----- Ivy and Ivy tasks
>     </fileset>
> </classpath> 
> If ivy.jar is added as an antlib at the time Ant is invoked, the <classpath> of
the above <taskdef> seems to be ignored and the jsch.jar is not searched for classes.
(See Ant FAQ: <http://ant.apache.org/faq.html#delegating-classloader>)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message