ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: Variables to EXEC
Date Thu, 07 Aug 2003 11:19:11 GMT
I tried 


<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="test" basedir="." default="main">
    <target name="main">

        <exec executable="cmd.exe">
            <arg line="/K dir c:\temp"/>
        </exec>

        <property name="drive" value="c:"/>
        <property name="path" value="temp"/>
        <exec executable="cmd.exe">
            <arg line="/K dir ${drive}\${path}"/>
        </exec>

    </target>
</project>



on my windows machine and that works ...


Jan

> -----Original Message-----
> From: Mathew, Alexander [mailto:alexander.mathew@softbrands.com]
> Sent: Thursday, August 07, 2003 12:51 PM
> To: user@ant.apache.org
> Subject: Variables to EXEC
> 
> 
> Hi All,
>  
> How can I pass variables as arguments to an 'exec' task,
>  
> for example, this is what is intended but obviusly won't work!
>  
> <exec dir="${lib}" executable="application.exe" output="build.log"
> timeout="60000">
>    <arg line= "/workspace ${build}\${pb.workspace}  /deploy" />
> </exec>
>  
>  
> Thank you,
> 
> Alexander Mathew 
> 
>  
> 
> 

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