Hi,

>From looking at the documentation, it seems the <regex> task is only to
be used for retrieving data from files, not to find & replace text in a
file. There doesn't seem to be a way to do a global replace (s/blah/bla/
g) for example.

Is this correct? I need this kind of functionality for a configuration
file where the actual information required is only available at build
time. So i want to do a regex on the file:

<copy file="node.plugin.in" tofile="node.plugin"/>
<regex pattern="s/@assembly@/${assemblyfile}/g" input="node.plugin"/>
<move file="node.plugin" todir="${plugin.dir}"/>

Any ideas?

Thanks,

Jeroen



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to