You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by antnewbie <vi...@directi.com> on 2008/10/14 16:03:56 UTC

How to add reference to jar files

Hi,

I am a newbie with ant. My application uses about 10 jar files.Now, to
compile with ant, I would need to add reference to these jar files.How can I
do this? 
regards
newbie
-- 
View this message in context: http://www.nabble.com/How-to-add-reference-to-jar-files-tp19974173p19974173.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: How to add reference to jar files

Posted by supareno <re...@free.fr>.
antnewbie,

you can try this:

<project name"project">
[...]
<path id="master-classpath">
<fileset dir="${your.lib.dir}">
<include name="*.jar"/>
</fileset>
</path>

[...]
<target name="compilation">
<javac destdir="${build.dir}" target="1.4" source="1.4" >
<src path="${src.dir}"/>
<classpath refid="master-classpath"/>
</javac>
</target>
[...]
</project>

check out this :
http://ant.apache.org/manual/using.html#references

hope this help
> Hi,
>
> I am a newbie with ant. My application uses about 10 jar files.Now, to
> compile with ant, I would need to add reference to these jar files.How can I
> do this? 
> regards
> newbie
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org