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