Hi Diane, I noticed <taskdef resource="net/sf/antcontrib/antcontrib.properties"/> in your example below, and tried to have a look at this resource, but it's not part of the ant-contrib CVS rep. There's no ant-contrib JAR to download, so is this file created by the ant-contrib build, or did you create it yourself? I wanted to look at it to see an example of defining several custom tasks packaged in a JAR, the way you seem to be doing it. Thanks, --DD
-----Original Message----- From: Diane Holt [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002 10:39 PM To: Ant Users List Subject: RE: Preserving URL paths in <apply> tasks --- Jeff Lowery <[EMAIL PROTECTED]> wrote: > > Is there some reason you're using <apply> with a <fileset>, > > when you only have the one file? > > Just using it as an example. Replace "generic.xs" with "*.xs" and you'll > see where I'm going. Gotcha. So okay, I don't think <apply>'s gonna do it for you. Since you're not using a <mapper>, I assume you don't have a srcfile->targetfile timestamp-checking need -- you just want to run them all through whenever you do, right? Assuming a "yes", I think you'll need to get the fileset, convert that to a list of names the way you want them, then feed them through <exec>, using either the ant-contrib <foreach> task or a <script> task. Here's using the <foreach> (which I can either send you, or you can pick up from Sourceforge): <project name="lowery" default="xsv2"> <taskdef resource="net/sf/antcontrib/antcontrib.properties"/> <fileset dir="D:/xml/schemas" id="xsfileset"> <include name="*.xs"/> </fileset> <target name="xsv2"> <pathconvert pathsep="," dirsep="/" property="xsfiles" refid="xsfileset"> <map from="D:" to="file://d"/> </pathconvert> <foreach list="${xsfiles}" target="runXSV" param="xsfile"/> </target> <target name="runXSV"> <exec executable="echo"> <arg value="${xsfile}"/> </exec> </target> </project> I just used 'echo', since I don't have any XS files to use for real, but you get the idea. Diane ===== ([EMAIL PROTECTED]) __________________________________________________ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/ -- 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]>
