ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Wood" <EW...@llbean.com>
Subject RE: ANT redirector question
Date Mon, 16 Mar 2009 20:21:34 GMT
Matt:
 
My outlook account trashed your response, but I looked at your response
in the mail archives and thanks for the information.  I did what you
suggested and it works great.
 
thanks, Eric
 
Matt said:
I don't know if that's possible as it stands.  :(  Could you just
redirect the error output
to a file or property and then echo it after the fact?

-Matt


________________________________

From: Eric Wood 
Sent: Monday, March 16, 2009 3:10 PM
To: Ant Users List
Subject: ANT redirector question


I'm running a command that I want to suppress standard out, but not
standard error.  I use the following code:
 
  <target name="_fetch" depends="fetch-echo" description="Update
snapshot view">
      <exec failonerror="true" executable="cleartool"
resultproperty="rc" >
          <arg line="${cc.fetch.arguments}" />
          <redirector output="update.out" />
      </exec>
  </target>

But it seems to redirector standard error to standard out.  If I add the
parameter:
 
          <redirector output="update.out" error="update.err"/>
 
What I want is to have standard error be left to the console.  How do I
do that?
 
Eric

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message