ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Problems with exec tag
Date Fri, 01 Sep 2006 06:50:32 GMT
Your script works for me ...

<project name="test" basedir="." default="main">
    <taskdef resource="net/sf/antcontrib/antcontrib.properties"/>

    <target name="main">
    	<property name="src.file.head" value="notepad.exe;notepad.exe"/>
    	<foreach list="${src.file.head}" delimiter=";" param="src.file"
target="doExec" inheritall="true"/>
    </target>

    <target name="doExec">
    	<echo message=" ${src.file}"/>
    	<exec executable="${src.file}" failonerror="true"
failifexecutionfails="false">
    	</exec>
    </target>
    
</project>    

 

>I put the ant file below and the content of the test12.txt is 
>// test exec file notepad.exe; notepad.exe


Not sure about the blank after ';' ....


Jan

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


Mime
View raw message