ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <anto...@gmx.de>
Subject Re: Classpath outside of javac?
Date Thu, 08 Jul 2004 19:27:43 GMT
you want to do something like :
<path id="compile.classpath">
   <pathelement location="lib/a.jar"/>
   <pathelement location="lib/b.jar"/>
</path>
<javac>
   <classpath refid="compile.classpath"/>
</javac>

> Is it possible to set the classpath outside of a <javac> task and then
> have javac know about it when it is run?  I'm trying to find a clever
> way to set up the classpath for my projects.  I tried making a property
> that was a list of all the jars needed for the classpath and then
> <foreach>ing through the list and adding each jar to my classpath but
> Ant didn't like this.  Is what I'm trying possible or is there some
> other way to accomplish this?
> 
> Thanks
> Chris
> 


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


Mime
View raw message