ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <>
Subject Re: Alternative to if else task.
Date Fri, 11 Feb 2011 17:17:34 GMT
You do not need to place the antelope jar in the
ant/lib directory.

It is not in general a good idea to do this for

Add the antelope jar to the project files, for
example in {PROJECT}/lib/ant/
and in the build.xml, use <typedef> to define
the tasks.

In my build.xml I have the following:

 <typedef uri="antlib:net.sf.antcontrib">
      <fileset dir="lib/ant/ant-contrib" includes="*.jar"/>

One can do something similar for the antelope jar.


On Fri, Feb 11, 2011 at 3:34 PM, ritchie <> wrote:
> I am using a if else task in my build file and i had to add the additional
> jar antelopetasks....jar to my lib folder of ant to make this run. My
> problem is for this to work for other developers they all have to add the
> jar file to their ant/lib dir, but my organization is not keen with this
> idea since there are more than 100 developers who would be using this build
> file and they want a alternate solution.
> My question is, is there a alternate to if-else task which will not need any
> additional jars to run?
> --
> View this message in context:
> Sent from the Ant - Users mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message