ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harold Putman <>
Subject Re: [SPAM] Problems with exec task on Windows machine
Date Wed, 11 Apr 2012 15:58:50 GMT
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"/>

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 <> 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"
> 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:
> Sent from the Ant - Users mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Web Technology Specialist
*Lexmark International, Inc. <>*
740 W New Circle Rd.
Lexington, KY 40550
+1(859) 232-2839

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message