ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Price <epr...@ptc.com>
Subject Re: Class-Path attribute
Date Fri, 28 Mar 2003 16:15:29 GMT
The pathconvert has a "property" attribute that sets a system property 
by the name which you use as its value.  So in the example given a few 
posts below, you would use the property ${class-path} in your manifest task.


Erik



Justin Thomas wrote:
> Thanks so far
> 
> How can I insert this into my manifest file though?
> 
> <manifest>
> ...
> ...
> 
> </manifest>
> 
> Path convert cannot be placed inside this.
> 
> am I missing something
> 
> -----Original Message-----
> From: Keith Hatton [mailto:khatton@axiomsystems.com]
> Sent: 28 March 2003 16:03
> To: Ant Users List
> Subject: RE: Class-Path attribute
> 
> 
> Whoops, I meant pathsep=" " not dirsep ...
> 
> -----Original Message-----
> From: Keith Hatton 
> Sent: 28 March 2003 16:02
> To: Ant Users List
> Subject: RE: Class-Path attribute
> 
> 
> <untested>
> something like this, maybe ...
> 
>     <fileset dir="${third.party.lib}" id="jar.files">
>       <include name="*.jar"/>
>     </fileset>
>   
>     <pathconvert dirsep=" " property="class-path" refid="jar.files"/>
> 
> then set the attribute in your mf to the value of the class-path property
> </untested>
> 
> 
> -----Original Message-----
> From: Justin Thomas [mailto:Justin.Thomas@RCP.co.uk]
> Sent: 28 March 2003 15:55
> To: 'Ant Users List'
> Subject: RE: Class-Path attribute
> 
> 
> I don't suppose anyone has an example of this do they?
> 
> Thanks
> 
> -----Original Message-----
> From: Keith Hatton [mailto:khatton@axiomsystems.com]
> Sent: 28 March 2003 15:54
> To: Ant Users List
> Subject: RE: Class-Path attribute
> 
> 
> I think you may be able to do something clever with <pathconvert>
> 
> Keith
> 
> 
> -----Original Message-----
> From: Justin Thomas [mailto:Justin.Thomas@RCP.co.uk]
> Sent: 28 March 2003 15:53
> To: 'user@ant.apache.org'
> Subject: Class-Path attribute
> 
> 
> Hi,
> 
> I place all my third party jars in a lib dir.  Is there a way to
> automatically pick them up from directory and place them in my classpath
> attribute?
> 
> something like this
> 
>  <attribute name="Class-Path">
> 	<fileset dir="${third.party.lib}">
>                         <patternset refid="all.third.party.files"/>
> 
> 	</fileset>    
> </attribute>
> 
> I know it does not nest fileset but do you get my idea?
> 
> ________________
> 
> ---------------------------------------------------------------------
> 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
> 
> ---------------------------------------------------------------------
> 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
> 
> 
> ---------------------------------------------------------------------
> 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
> 
> 


Mime
View raw message