ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: Is there an Ant task to get filename from a directory
Date Mon, 26 Jan 2004 06:04:27 GMT
See <pathconvert>.

Jan

> -----Original Message-----
> From: Veerappan Saravanan-ESV007 [mailto:esv007@motorola.com]
> Sent: Friday, January 23, 2004 7:54 PM
> To: 'Ant Users List'
> Subject: RE: Is there an Ant task to get filename from a directory
> 
> 
> Thanks Craig, Unfortunately it returns file names delimited by ";".
> Is there a way to get the file name with relative path? 
> Also I see that the classpath entries in manifest file should 
> be space delimited.
> 
> Here is the sample of what I did.
> 
> <fileset dir="lib" id="libs">
>   <include name="**/*.jar"/>
> </fileset>	
> <property name="3rdpartylibs" id="libs"/>
> <echo message="${3rdpartylibs}"/>
> 
> This prints jdom.jar;log4j-1.2.8.jar instead of lib/jdom.jar 
> lib/log4j-1.2.8.jar.
> 
> Thanks
> sv.
> 
> -----Original Message-----
> From: Clifton C. Craig [mailto:ccc@icsaward.com] 
> Sent: Friday, January 23, 2004 1:27 PM
> To: Ant Users List
> Subject: Re: Is there an Ant task to get filename from a directory
> 
> 
> See the <fileset> element. I just found this by accident the 
> other day. 
> You set an id attribute on the file set and then use that in 
> a property 
> element to get just the filenames. I'm doing the same exact thing you 
> are with the manifest as I have a ton of jars that need to be listed.
> 
> Clifton C. Craig, Software Engineer
> Intelligent Computer Systems -  A Division of GBG
> 2101 Embassy Drive
> Lancaster, PA  17603
> 
> Phone:  717-295-7977 ext. 621
> Fax:  717-295-7683
> ccc@icsaward.com
> ccraig@globalbeveragegroup.com
> **************************************************************
> **************
> 
> 
> 
> Veerappan Saravanan-ESV007 wrote:
> 
> >Is there any ant task to get the list of filename from the 
> directory?  
> >This will help me in creating the classpath entries in manifest file.
> > 
> >Appreciate your help.
> > 
> >Thanks
> > 
> >sv.
> > 
> > 
> > 
> > 
> > 
> >
> >  
> >
> 
> ---------------------------------------------------------------------
> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message