You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by magisetty obula prasad <op...@yahoo.com> on 2007/03/06 23:21:28 UTC
Information on Ant Dependant libraries and compatibility
Hi,
I am using ANT (1.6.5) for building and running my project. I could see that ant uses xerces parser. I am also using xerces parser in my code, for which I have got my own xerces jar. Finally I can have only one xerces.jar in class path.
Also there are lots of ant libraries under lib directory. Do I need to all all of them to class path
Similarly some of 3rd party libraries are using ant tasks that are coming with their distribution. So I have decided to keep all this third party libraries separately. For that I need following information. I did search on net, but couldn't get much info. It will be great, If you can point/give me to this info.
1. List of 3rd party dependencies that ant has (like xerces...)
2. Compatibility among the different versions of Ant
3. Also there are lots of ant libraries under lib directory. Do I need to all of them to class path for any specific feature?
Thanks and Regards
Obula Prasad
____________________________________________________________________________________
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Information on Ant Dependant libraries and compatibility
Posted by Kevin Jackson <fo...@gmail.com>.
> Hi,
Hi,
>
> I am using ANT (1.6.5) for building and running my project. I could see that
> ant uses xerces parser. I am also using xerces parser in my code, for which
> I have got my own xerces jar. Finally I can have only one xerces.jar in
> class path.
>
If you are using Java5+ I think xerces comes with the jdk as well -
Ant ships with xerces for <java5 users
> Also there are lots of ant libraries under lib directory. Do I need to all
> all of them to class path
In general for anyone using ant, we say *DO NOT SET A CLASSPATH
VARIABLE*. Setting CLASSPATH seems to cause so many problems. For
testing your application use <junit> task with an embedded <classpath>
element - this way you can control your classpath without messing with
environment variables
>
> Similarly some of 3rd party libraries are using ant tasks that are coming
> with their distribution. So I have decided to keep all this third party
> libraries separately. For that I need following information. I did search on
> net, but couldn't get much info. It will be great, If you can point/give me
> to this info.
>
> 1. List of 3rd party dependencies that ant has (like xerces...) 2.
> Compatibility among the different versions of Ant 3. Also there are lots of
> ant libraries under lib directory. Do I need to all of them to class path
> for any specific feature?
1. http://ant.apache.org/manual/install.html#librarydependencies
(these are for the optional tasks - this page is fairly easy to find)
3. Each of the optional tasks tends to ship with an ant-*.jar library
(for example ant-junit.jar - these libraries are interfaces to the
dependent jars eg ant-junit.jar is required for junit). By default
any jar in ANT_HOME/lib is automatically on your classpath when
running Ant, you don't need to add these to an environment variable
(system wide) classpath
http://ant.apache.org/problems.html
Kev
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: Information on Ant Dependant libraries and compatibility
Posted by bill/wilandra <bi...@wilandra.com>.
Start with (1) for general Ant library dependencies. For other Ant tasks
(e.g., antcontrib) you will need to check their documentation. For Ant used
in an IDE check the IDE documentation.
If you use the Ant helper scripts that come with the Ant distribution
(ant.bat or ant) you should not need to set a classpath, the helper scripts
do it for you.
HTH Bill
(1) http://ant.apache.org/manual/install.html#librarydependencies
-----Original Message-----
From: magisetty obula prasad [mailto:oprasad@yahoo.com]
Sent: Tuesday, March 06, 2007 2:21 PM
To: user@ant.apache.org
Subject: Information on Ant Dependant libraries and compatibility
Hi,
I am using ANT (1.6.5) for building and running my project. I could see that
ant uses xerces parser. I am also using xerces parser in my code, for which
I have got my own xerces jar. Finally I can have only one xerces.jar in
class path.
Also there are lots of ant libraries under lib directory. Do I need to all
all of them to class path
Similarly some of 3rd party libraries are using ant tasks that are coming
with their distribution. So I have decided to keep all this third party
libraries separately. For that I need following information. I did search on
net, but couldn't get much info. It will be great, If you can point/give me
to this info.
1. List of 3rd party dependencies that ant has (like xerces...) 2.
Compatibility among the different versions of Ant 3. Also there are lots of
ant libraries under lib directory. Do I need to all of them to class path
for any specific feature?
Thanks and Regards
Obula Prasad
____________________________________________________________________________
________
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives.
http://tools.search.yahoo.com/toolbar/features/mail/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional
commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org