How does "run" get into the target list here?

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

According to the sample build.xml you provided only clean should be there:

               <arg value="${ant.file}"/>
              <arg value="clean"/>
       </exec>

Somehow the order of the targets is getting inverted to  "run clean" which
causes the infinite recursion.

     [exec] Build sequence for target(s) `run' is [run]
     [exec] Complete build sequence is [run, clean, ]


This is really weird. The fact that 'run clean'  shows up as one argument
looks suspicious. Maybe try <arg line= > instead of <arg value=> so that
spaces don't become part of the argument.


On Tue, Apr 10, 2012 at 1:58 PM, ivadim <iva...@gmail.com> wrote:

> Thank you for answers.
> I know about <ant> task but I can't use it because I use <exec> it more
> complex than in example.
>
> I made some tests and found two things:
> 1. in ant >= 1.8.1 and 1.7.x this work fine. I think it is bug in 1.8.0
> only
> 2. this bug not reproduced in cygwin builds
>
> I attached my log of "ant run -d"
> http://ant.1045680.n5.nabble.com/file/n5630671/log.txt log.txt
> I can't update my ant package in some reasons. And it would be good to find
> workaround
>
> --
> View this message in context:
> http://ant.1045680.n5.nabble.com/Problems-with-exec-task-on-Windows-machine-tp5627489p5630671.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
>
>


-- 
Harold PUTMAN
Web Technology Specialist
*Lexmark International, Inc. <http://www.lexmark.com>*
740 W New Circle Rd.
Lexington, KY 40550
+1(859) 232-2839
hput...@lexmark.com

Reply via email to