So, are you saying that it doesn't exist yet?

I agree that a generic regex task would be much more
useful than a more specific one.  Shall I go ahead and
claim the Regular Expression task?

-Griffin
--- Scott Hernandez <[EMAIL PROTECTED]> wrote:
> 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


=====
Griffin Caprio 
"Your child against mine.  The winner
will be hailed, the loser will be booed
until my throat hurts!" - Homer Simpson to Marge

__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com


-------------------------------------------------------
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

Reply via email to