ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: ANT redirector question
Date Mon, 16 Mar 2009 19:23:46 GMT

--- On Mon, 3/16/09, Eric Wood <EWood@llbean.com> wrote:

> From: Eric Wood <EWood@llbean.com>
> Subject: ANT redirector question
> To: "Ant Users List" <user@ant.apache.org>
> Date: Monday, March 16, 2009, 2:10 PM
> 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?

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

>  
> Eric
> 


      

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message