Skip navigation.

classpath

Tag: classpath

Includes a jar in the classpath used to load plugins. since 1.4

This let you add ivy plugins without relying on ant classpath for instance, easing therefore the use of ivy in multiple execution environment (ant, standalone, IDE plugins, ...).

Attributes

Attribute Description Required
url the url of a jar to add to the classpath Yes, unless file is specified
file a jar to add to the classpath Yes, unless url is specified

Examples

<ivyconf>
  <classpath file="${ivy.conf.dir}/custom-resolver.jar"/>
  <typedef name="custom" classname="fr.jayasoft.ivy.resolver.CustomResolver"/>
  <resolvers>
    <custom name="custom"/>
  </resolvers>
</ivyconf>

Adds custom-resolver.jar found in the same directory as the ivyconf.xml file itself to the classpath, then define a custom resolver and use it.


<ivyconf>
  <classpath url="http://www.myserver.com/ivy/custom-resolver.jar"/>
  <typedef name="custom" classname="fr.jayasoft.ivy.resolver.CustomResolver"/>
  <resolvers>
    <custom name="custom"/>
  </resolvers>
</ivyconf>

Same as above, but find the jar on a web server.