ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Mc Quillan" <>
Subject RE: References
Date Wed, 06 Jul 2005 17:50:17 GMT
Thanks, Jeffrey.

I got it to work as per your suggestion.

In case it might be useful to anyone else, I include a sample extract.

 <patternset id="config.files">
  <include name="xyz.xml"/>
  <include name=""/>
 <copy todir="${deploy.dir}" overwrite="true">
  <fileset dir="${src.dir}">
   <patternset refid="config.files"/>
 <replaceregexp match='logging=".*"' replace='logging="${logging.setting}"'
  <fileset dir="${deploy.dir}">
   <patternset refid="config.files"/>


-----Original Message-----
From: Jeffrey E Care [] 
Sent: 06 July 2005 18:36
To: Ant Users List
Subject: Re: References

IIRC <fileset> can take nested <patternset> elements; sounds like you 
could declare a named patternset and then re-use that patternset with many 

Jeffrey E. Care (
WebSphere Build SWAT Team Lead
WebSphere Build Tooling Lead (Project Mantis)

"John Mc Quillan" <> wrote on 07/06/2005 
01:26:37 PM:

> Does anyone know of a way to create a reference to a list of files
> specifying the directory that they are stored in and then to create
> from that list that specify the directory.
> So the application of this would be in the case where a set of files 
> is copied from a source directory to a deployment directory and then
> on in the deployment directory. Instead of having to specify the 
> entire fileset twice, once in the source directory in order to do the 
> copy and
> again in the deployment directory to do furher operations, it would be 
> useful to specify the list of files once as a reference.
> Thanks
> John

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

View raw message