ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Cooper" <>
Subject RE: Ant and paths
Date Wed, 22 Jan 2003 15:10:32 GMT

Sorry, there again you fall into the trap of missing the point, as I've
seen so many others do in the archives I've read.

The 'dir' attribute of fileset takes ONE directory as a start point. The
${SuppliedDirectoryPath} is a path-like string of directory pathnames.

Thanks anyway.

Mark Cooper

Dominique Devienne <> on 22/01/2003

Please respond to "Ant Users List" <>

Sent by:

To:    "'Ant Users List'" <>

Subject:    RE: Ant and paths

Just do:

<path id="classpath">
  <fileset dir="${SuppliedDirectoryPath}"
           includes="**/*.jar, **/*.zip" />

Just be aware that the order is unspecified. --DD

-----Original Message-----
From: Mark Cooper []
Sent: Wednesday, January 22, 2003 8:30 AM
Subject: Ant and paths

OK, I'm sure this must have come up before, but after trawling through the
archives for what seems like days, I've not seen an answer to this that
satisfies the problem.

What I need to be able to do is supply a path (delimited string of
directory names), and an 'includes' patternset and for Ant to be able to
construct from this a path consisting of absolute (or relative from build
root) pathnames of the matching files separated by whatever the OS path
separator is. An obvious example is to be able to set a path consisting of
the locations where executable jar files reside, and for an Ant task to
then construct a <classpath> containing the absolute paths including
filenames of every jar and zip file in the supplied locations.

The reason for doing this is so that individual developers can store their
third party components in any drive/directory structure they choose, and be
able to supply (as a property or environment variable) a path and let Ant
resolve it to include all of the zip and jar files.

What I would like to see is something like:
<classpath id="my-classpath" >
      <pathelement path="${SuppliedDirectoryPath}" includes="**/*.jar,

Any ideas?

Mark Cooper

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message