ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter reilly <>
Subject Re: Create filelists or filesets from property or path
Date Thu, 03 Apr 2003 14:23:49 GMT
You have ran into one of the current issues
with ant - file sets cannot have multiple roots,
and most commands use file sets.

There is a task - <outofdate> on ant-contrib which has
some of the behaviour of dependset. It can take a
path as a parameter.

That said, if you are on unix or all the files in dos
are on the same partition (or "drive"), your <myanalyzetask>
should be able to generate a fileset where the dir property
is "/" for unix and drive:/ for dos, and all the file names
are relative to the root (/any/path/file.class -> any/path/file.class).


On Thursday 03 April 2003 16:05, Stefan Schulz wrote:
> Hi,
> in the task of checking dependencies between a list of previously and
> dynamically determined source files and a target (non-standard) archive
> I found the ant-task "DependSet". Only, as having the source files as a
> path-like separated list of absolute file names, collected from various
> folders of the system, there seems no way to apply DependSet, as I
> cannot convert the list to fileset or filelist.
> Anyone had a similar problem and found a solution?
> Schematic Build Excerpt (the nice-to-have view):
> <myanalyzetask property="dependency.files"
> archive="${some.dir}/proprietary.archive"/>
> <dependset>
>   <sourcefilelist list="dependency.files"/>
>   <targetfilelist dir="${some.dir}" files="proprietary.archive"/>
> </dependset>
> The property dependency.files corresponds to, e.g.:
> "/any/path/file.class:/an/other/thing.class:/and/so/on.class".
> Any help is appreciated.
> Regards
> Stefan
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View raw message