ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Singh, Arti" <asi...@metasolv.com>
Subject RE: Classpath reference
Date Mon, 11 Apr 2005 16:04:43 GMT
hi all,
             I am an ant newbie with a silly question.I have a  set of jar files that I need
to get compiled.Should I unzip each jar file to compile It??OR can I get ant to automatically
unzip each jar while compile it

-----Original Message-----
From: Mark Harris [mailto:mark.harris@uk.easynet.net]
Sent: Monday, April 11, 2005 5:33 AM
To: 'user@ant.apache.org'
Subject: RE: Classpath reference


>>     <path id="classpath">
>>         <pathelement location="/myjar.jar"/>
>>         <pathelement location="/myotherjar.jar"/>
>>         <pathelement location="/my3rdjar.jar"/>
>>     </path> 
>
>>     <target name="test">
>>         <junit printsummary="no">
>>             <classpath>
>                 <path refid="classpath"/>
>>                 <pathelement
>> location="/myadditionaljar.jar"/>
>>             </classpath>
>> ... etc...
>
>Fore more information on reusing paths using refid see
>[1].

This was half the solution. The other half was to not use the id
"classpath", but to call it something else, e.g. "compile.classpath".

Thanks to all for their assistance.

Mark

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


Discover the Power of MetaSolv at http://www.metasolv.com

Subscribe to our Company Newsletter at http://www.metasolv.com/subscribe

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


Mime
View raw message