Title: Message
jean-michel,
 
in v 0.8.3 of nant, <exec> has an output=  attribute where you name the output file of interest.
however, in v 0.8.3, that feature doesn't work well (you have to also say append="true" or you only get the last line of the output. but you still don't get line breaks between each line.... 
 
i believe (hope?) it's been fixed in later versions , tho.
 
bonne chance,
jean
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jean-Michel Theriault
Sent: Monday, June 21, 2004 15:06
To: [EMAIL PROTECTED]
Subject: [Nant-users] grep.exe problems...

Hello helpful friends!!

 

It’s me again. This time I’m having trouble with the grep program. I want to search this file (${sys.env.ProjectBase}\build\compile.log) for this string(: error), and write the result in this file (${sys.env.ProjectBase}\build\error.log). I tried 2 methods already and they don’t seem to work. I need your heads to think of either another method or modifying mine. Funny thing is this (grep.exe -i -a ": error" "C:\temp\compile.log" > "C:\temp\error.log" ) works just fine in a command prompt window.  Here are the two I tried in my build project:

 

 

<exec

            program="grep.exe"

            commandline='-i -a ": error" "${sys.env.ProjectBase}\build\compile.log" /out"${sys.env.ProjectBase}\build\error.log"'/>

 

and

 

 

<exec

            program="grep.exe"

            commandline='-i -a ": error" "${sys.env.ProjectBase}\build\compile.log" >"${sys.env.ProjectBase}\build\error.log"'/>

 

Any ideas??? Thanx in advance cause u guys have been nothing but helpful since I joined this posting board.

 

 

    Jean Michel Thériault

      [EMAIL PROTECTED]

 

<<image002.jpg>>

Reply via email to