> -----Original Message----- > From: Ivan "Rambius" Ivanov [mailto:[EMAIL PROTECTED] > Sent: Sunday, March 26, 2006 2:24 PM > To: Ant Users List > Subject: Re: Task to count files in a fileset? > > Hello, > > I got interested and I wrote a sample build script, > following Matt's instructions: > > <project> > <fileset dir="${basedir}" id="xml.files"> > <include name="*.xml"/> > </fileset> > <pathconvert pathsep="" refid="xml.files" > setonempty="true" > property="aaa.xml.files"> > <mergemapper to="a"/> > </pathconvert> > <echo>${aaa.xml.files}</echo> > <length property="count.xml.files" > string="${aaa.xml.files}"/> > <echo>${count.xml.files}</echo> > </project> > > Regards > Ivan >
Thanks, Ivan (and Matt). That's very helpful. -- Rick Genter Principal Engineer Silverlink Communications <mailto:[EMAIL PROTECTED]> (781) 425-5763 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
