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 <[EMAIL PROTECTED]>@jakarta.apache.org on 22/01/2003
14:47:33

Please respond to "Ant Users List" <[EMAIL PROTECTED]>

Sent by:
       [EMAIL PROTECTED]


To:    "'Ant Users List'" <[EMAIL PROTECTED]>
cc:

Subject:    RE: Ant and paths


Just do:

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

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

-----Original Message-----
From: Mark Cooper [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 8:30 AM
To: [EMAIL PROTECTED]
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,
**/*.zip"/>
</classpath>

Any ideas?

Mark Cooper

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>






--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to