Hello.
I have some problems with exec task.

I have build.xml:
<project name="test">

    <target name="run">
        <exec executable="cmd">
                <arg value="/c"/>
                <arg value="${ant.home}/bin/ant"/>
                <arg value="-f"/>
                <arg value="${ant.file}"/>
                <arg value="clean"/>
        </exec>
    </target>
    
    <target name="clean">
        <echo message="CLEAN"/>
    </target>

</project>

When I run "ant run" command I expected to see CLEAN message. But actualy
this is recursively execute task "run".

run:
     [exec] Buildfile: C:\Users\dmivanov\Projects\tmp\build.xml
     [exec]
     [exec] run:
     [exec]      [exec] Buildfile: C:\Users\dmivanov\Projects\tmp\build.xml
     [exec]      [exec]
     [exec]      [exec] run:

My OS is Windows 7x64
Ant version is 1.8.0

Anybody know why it is happens?


--
View this message in context: 
http://ant.1045680.n5.nabble.com/Problems-with-exec-task-on-Windows-machine-tp5627489p5627489.html
Sent from the Ant - Users mailing list archive at Nabble.com.

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

Reply via email to