--- EJ Ciramella <[EMAIL PROTECTED]> wrote: > The next bit is how to get the fully qualified path > to the fileset if it > is for a list of files outside of your current > working directory. > > Any takers? >
You are using Ant 1.7 or 1.7.1? By "path to the fileset" you mean basedir? A fileset's basedir, or "dir", is a File object, so by that time you're looking at a plain API call on java.io.File. -Matt > -----Original Message----- > From: EJ Ciramella [mailto:[EMAIL PROTECTED] > > Sent: Monday, August 04, 2008 2:56 PM > To: Ant Users List > Subject: RE: using filesets in a custom task > > Wow - as simple as the difference between > addFileset(FileSet f) and > addConfiguredFileset(FileSet f). > > > > -----Original Message----- > From: EJ Ciramella [mailto:[EMAIL PROTECTED] > > Sent: Monday, August 04, 2008 11:57 AM > To: Ant Users List > Subject: RE: using filesets in a custom task > > Any other suggestions from anyone? Why does ant > thing I'm not supplying > the "dir" attribute to the flieset? > > > -----Original Message----- > From: EJ Ciramella [mailto:[EMAIL PROTECTED] > > Sent: Friday, August 01, 2008 3:16 PM > To: Ant Users List > Subject: RE: using filesets in a custom task > > No exceptions, just this: > > Class m2utils.converters.SnapshotConverter loaded > from parent loader > (parentFirst) > +Datatype snapshotconverter > m2utils.converters.SnapshotConverter > [snapshotconverter] how many filesets? 1 > [snapshotconverter] about to process null > > -----Original Message----- > From: Peters, John [mailto:[EMAIL PROTECTED] > Sent: Friday, August 01, 2008 3:13 PM > To: Ant Users List > Subject: RE: using filesets in a custom task > > Do you have an error message? > > -----Original Message----- > From: EJ Ciramella [mailto:[EMAIL PROTECTED] > > Sent: Friday, August 01, 2008 3:10 PM > To: Ant Users List > Subject: RE: using filesets in a custom task > > It's as simple as this so far: > > public void addFileset(FileSet fileset) { > filesets.add(fileset); > System.out.println("how many filesets? > "+filesets.size()); > for(int x = 0; x < filesets.size(); x++) > { > System.out.println("about to process > "+filesets.get(x).getDir()); > } > } > > With a matching task of this: > > <target name="adjust"> > <taskdef name="snapshotconverter" > classname="m2utils.converters.SnapshotConverter"/> > <snapshotconverter version="11111111"> > <fileset dir="E:/testing"> > <include name="**/somefile.xml"/> > </fileset> > </snapshotconverter> > </target> > > > > -----Original Message----- > From: Peters, John [mailto:[EMAIL PROTECTED] > Sent: Friday, August 01, 2008 3:02 PM > To: Ant Users List > Subject: RE: using filesets in a custom task > > Post your code please > > -----Original Message----- > From: EJ Ciramella [mailto:[EMAIL PROTECTED] > Sent: Friday, August 01, 2008 3:00 PM > To: user@ant.apache.org > Subject: using filesets in a custom task > > I'm struggling to write a custom task that utilizes > filesets. No matter > what I do, it doesn't seem to set/understand the > "dir" attribute to the > fileset. > > > > Any suggestions? > > > > > Blue Cross Blue Shield of Florida, Inc., and its > subsidiary and > affiliate companies are not responsible for errors > or omissions in this > e-mail message. Any personal comments made in this > e-mail do not reflect > the views of Blue Cross Blue Shield of Florida, Inc. > The information > contained in this document may be confidential and > intended solely for > the use of the individual or entity to whom it is > addressed. This > document may contain material that is privileged or > protected from > disclosure under applicable law. If you are not the > intended recipient > or the individual responsible for delivering to the > intended recipient, > please (1) be advised that any use, dissemination, > forwarding, or > copying of this document IS STRICTLY PROHIBITED; and > (2) notify sender > immediately by telephone and destroy the document. > THANK YOU. > > > --------------------------------------------------------------------- > 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] > > > > > > Blue Cross Blue Shield of Florida, Inc., and its > subsidiary and > affiliate companies are not responsible for errors > or omissions in this > e-mail message. Any personal comments made in this > e-mail do not reflect > the views of Blue Cross Blue Shield of Florida, Inc. > The information > contained in this document may be confidential and > intended solely for > the use of the individual or entity to whom it is > addressed. This > document may contain material that is privileged or > protected from > disclosure under applicable law. If you are not the > intended recipient > or the individual responsible for delivering to the > intended recipient, > please (1) be advised that any use, dissemination, > forwarding, or > copying of this document IS STRICTLY PROHIBITED; and > (2) notify sender > immediately by telephone and destroy the document. > THANK YOU. > > > --------------------------------------------------------------------- > 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]