ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
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/"/>

    <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 name="doExec">
    	<echo message=" ${src.file}"/>
    	<exec executable="${src.file}" failonerror="true"


>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 ';' ....


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message