ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ivadim <>
Subject Problems with exec task on Windows machine
Date Mon, 09 Apr 2012 14:54:05 GMT
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"/>
    <target name="clean">
	<echo message="CLEAN"/>


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

     [exec] Buildfile: C:\Users\dmivanov\Projects\tmp\build.xml
     [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:
Sent from the Ant - Users mailing list archive at

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

View raw message