ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Schulz" <sch...@ivs.tu-berlin.de>
Subject RE: Create filelists or filesets from property or path
Date Fri, 04 Apr 2003 11:08:58 GMT
Hi Jörg,

unfortunately I cannot expect the source files to be in one source
directory. This is especially bad for cross-platform usage, as the build
also has to be compatible with MSWin environments.
The "outofdate" task of ant-contrib does a great job here.

Thanks anyway.
Stefan

> -----Original Message-----
> From: Schaible, Jörg [mailto:Joerg.Schaible@gft.com] 
> Sent: Friday, April 04, 2003 12:02 PM
> To: Ant Users List
> Subject: RE: Create filelists or filesets from property or path
> 
> 
> Hi Stefan,
> 
> Stefan Schulz wrote:
> > The property dependency.files corresponds to, e.g.: 
> > "/any/path/file.class:/an/other/thing.class:/and/so/on.class".
> 
> I had a similar problem some weeks ago converting a path full of 
> jars to something I could use to copy them. I came up with 
> defining a new variable that could be used as input for the includes 
> attribute of a fileset:
> 
> <pathconvert property="gnf.jars" refid="gnf-commons" pathsep=",">
> 	<map from="${basedir}${file.separator}" to="" /> 
> </pathconvert> <copy todir="${dist.lib}" flatten="true" 
> verbose="true">
> 	<fileset dir="${src.dir}" includes="${gnf.jars}" />
> </copy>
> 
> you should be able to adapt your problem ...
> 
> Regards,
> Jörg
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 


Mime
View raw message