--- EJ Ciramella <[EMAIL PROTECTED]> wrote: > If this is a custom task/macro, couldn't you just > programmatically > generate that secondary fileset?
That is possible. It would probably also be doable to create a new includes pattern using <pathconvert> and a file mapper and generate the new fileset "Ant-ically" as well. -Matt > > This is out there on the fringe of my ant knowledge, > so it's plausible > you could do this within ant (with a refid or some > other kind of > reference back to the original fileset), but I can't > say for sure and > nothing pops out in the documentation. > > -----Original Message----- > From: Ivar Bratberg [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 07, 2008 3:33 AM > To: Ant Users List > Subject: RE: fileset manipulation > > Ok, to be more precise: > I have defined an ant macro , called > "ftpWithChecksum". > The purpose of this macro is to work as a layer over > the ant ftp task. > The macro will, as the name says, provide a check of > checksums of the > files. > I want the corresponding checksum files to be > downloaded from the same > serverand directory. > There is one checksum file for each ordinary file. > The checksum file > contains the MD5 checksum for the 'real' file. > > When calling this macro I submit a parameter A which > is the fileset. > This fileset represents the 'real' files of > interest. > But in addition the macro should download another > set of files, > checksumfiles. > So if the fileset A points to file a,b,c, then in > the macro I would like > to create a fileset > B, which refers to files a.MD5, b.MD5, c.MD5. The > attribute 'dir' should > be the same as in fileset A. > Then the "ftpwithChecksum" macro can call ant ftp > task twice. First to > download the 'real' files using fileset A, second to > download the > Checksum files using fileset B. > > My question is then. > Is it possible to create the fileset B ? In case how > ? > Thank you for you attention and time. > Ivar > > -----Original Message----- > From: EJ Ciramella [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, August 06, 2008 6:55 PM > To: Ant Users List > Subject: RE: fileset manipulation > > Are you talking about referencing the first file > set? > > Why not have two path refids? > > Can I have a little more context to go with this > question? Where is > this fileset getting used? > > -----Original Message----- > From: Ivar Bratberg [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 06, 2008 5:37 AM > To: user@ant.apache.org > Subject: fileset manipulation > > If I have fileset A: > > <fileset dir='.' > > <include name="a" /> > </fileset> > > Is it possible to get the following fileset by a > command that takes > fileset A as an argument in ? > > <fileset dir='.' > > <include name="a.extension" /> > </fileset> > > Best regards > Ivar > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]