ant - ivy jar located in my dep lib -


how can tell ant find ivy's jar in own lib? ant kept looking @ it's home folder when i've explicitly told find jar somewhere else.

you can place ivy binaries in folder inside project folder. example, in case, it's etc/build/. put ivy.jar , jsch.jar.

after provide correct namespace in project defenfition , load ivy.

<project name="somename" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant">     <target name="ivy-load">         <path id="ivy.lib.path">             <pathelement location="${basedir}/etc/build/ivy.jar"/>             <pathelement location="${basedir}/etc/build/jsch.jar"/>         </path>         <taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/>     </target>     <target name="ivy-init" depends="ivy-load">         <ivy:settings file="${basedir}/etc/ivysettings/ivysettings.xml"/>         <ivy:resolve conf="${ivy.conf}"/>     </target>     ... </project> 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -