ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ba...@goodconsultants.com
Subject Re: How to suppress <exec> output?
Date Wed, 17 Mar 2004 21:28:43 GMT
Matt,

Looks like a better suggestion, let me give it a try.

Thanks

B.
----- Original Message ----- 
Wrom: UTFJMVRESKPNKMBIPBARHDMNNSKVFVWRKJVZ
To: "Ant Users List" <user@ant.apache.org>
Sent: Wednesday, March 17, 2004 12:25 PM
Subject: Re: How to suppress <exec> output?


> --- barry@goodconsultants.com wrote:
> > The command that i am using is 
> > <exec executable="cp" failifexecutionfails="false"
> >   errorproperty="is.UnixStyle"/>
> 
> Firstly, you can set your property based on the
> AVAILABILITY of the command.  The following example is
> modified from exec's test script:
> 
> <property environment="env"/>
> <!-- UNIX -->
> <available file="cp" filepath="${env.PATH}"
> property="cp.executable"/>
> <!-- CYGWIN -->
> <available file="cp.exe" filepath="${env.PATH}"
> property="cp.exe.executable"/>
> <condition property="cp.can.run">
>     <or>
>         <isset property="cp.executable"/>
>         <isset property="cp.exe.executable"/>
>     </or>
> </condition>





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


Mime
View raw message