Griffin, Yep, something like the ant basename or dirname task?
http://ant.apache.org/manual/CoreTasks/basename.html http://ant.apache.org/manual/CoreTasks/dirname.html I'd rather see a more generic regex task or something that can do string/file/dir ops. ----- Original Message ----- From: "Griffin Caprio" <[EMAIL PROTECTED]> > Is there any easy way to get the substring of a > property? For example, I an iterating over a > directory of xml files. I would like to extract the > filename, without the .xml extension, and use that as > the output of a xslt transformation. Here is the > target from my build file: > > <foreach item="File" in="${xml.dir}" > property="filename"> > <style style="${xsl.dir}/StyleSheet.xsl" > in="${xml.dir}/${filename}.xml" > out="${html.dir}/${filename}.html"/> > </foreach> > > Any way to do this or do I smell a new task coming on? ------------------------------------------------------- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en _______________________________________________ Nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
