You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2010/03/09 12:21:05 UTC

DO NOT REPLY [Bug 48876] New: ANT_CMD_LINE_ARGS are rippling through lower level Ant usage

https://issues.apache.org/bugzilla/show_bug.cgi?id=48876

           Summary: ANT_CMD_LINE_ARGS are rippling through lower level Ant
                    usage
           Product: Ant
           Version: 1.8.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P2
         Component: Wrapper scripts
        AssignedTo: notifications@ant.apache.org
        ReportedBy: rmulvaney@curamsoftware.com


Created an attachment (id=25110)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25110)
Test Case

There was a section of code removed from the ant.bat file in 1.8.0 that is
having a negative effect on some of our build scripts and processing.

The section of code is:
  set ANT_CMD_LINE_ARGS=%1
  if ""%1""=="""" goto doneStart
  shift
and existed on line 62 of the bat file.

The failing scenario in Ant 1.8.0 is:
We have a top level build file that uses <exec> to call into a Windows batch
file that in turn is using Ant.
We are noticing that the exec call and usage of ant in the lower level batch
script is being passed any arguments given to the top level file and in turn
failing with a message like:

Target "exec" does not exist in the project "a".

We have put together the attached test case to signify this behavior and have
tested it through 1.6.x, 1.7.x and can confirm that this behavior is new to
1.8.0.

The test case uses a build.xml to exec a script file which in turn calls an
ant.
Running the test case like:
ant exec
causes the error message Target "exec" does not exist in the project "a".

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 48876] ANT_CMD_LINE_ARGS are rippling through lower level Ant usage

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48876

--- Comment #1 from Antoine Levy-Lambert <an...@apache.org> 2010-03-09 20:38:34 UTC ---
I did the change which is provoking this issue.

Would adding a line 

set ANT_CMD_LINE_ARGS=

in line 62

fix the problem ?

Regards,

Antoine

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 48876] ANT_CMD_LINE_ARGS are rippling through lower level Ant usage

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48876

Antoine Levy-Lambert <an...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |1.8.1

--- Comment #3 from Antoine Levy-Lambert <an...@apache.org> 2010-03-09 23:10:14 UTC ---
fixed in revision 921184.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 48876] ANT_CMD_LINE_ARGS are rippling through lower level Ant usage

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48876

Andy Morrison <am...@curamsoftware.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |amorrison@curamsoftware.com

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 48876] ANT_CMD_LINE_ARGS are rippling through lower level Ant usage

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48876

--- Comment #5 from Antoine Levy-Lambert <an...@apache.org> 2010-03-10 22:31:56 UTC ---
I do not have a view yet of when Ant 1.8.1 can be released. The development
team must first agree on what we want to achieve in the new release ... If you
are subscribed to dev@ant.apache.org let's further this discussion there.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 48876] ANT_CMD_LINE_ARGS are rippling through lower level Ant usage

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48876

--- Comment #2 from Ronan Mulvaney <rm...@curamsoftware.com> 2010-03-09 22:32:58 UTC ---
Hi Antoine,

That would definitely satisfy our requirements for resolution and had been the
way we had considered working around the issue - by passing this in our exec
task as an env variable - until we figured it looked a bit too prevalent and
must be a defect.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Re: DO NOT REPLY [Bug 48876] ANT_CMD_LINE_ARGS are rippling through lower level Ant usage

Posted by Stefan Bodewig <bo...@apache.org>.
On 2010-03-10, Antoine Levy Lambert <an...@gmx.de> wrote:

> What do the other committers think ?

It would be nice if we could get more bugs fixed.  OTOH it can't hurt to
have more regular releases than we've had over the past few years.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: DO NOT REPLY [Bug 48876] ANT_CMD_LINE_ARGS are rippling through lower level Ant usage

Posted by Antoine Levy Lambert <an...@gmx.de>.
Hi,


bugzilla@apache.org wrote:
> https://issues.apache.org/bugzilla/show_bug.cgi?id=48876
>
> --- Comment #4 from Ronan Mulvaney <rm...@curamsoftware.com> 2010-03-10 08:47:07 UTC ---
> Very rude of me - I don't suppose you have a view on when 1.8.1 may be released
> at this point?
>
>   
This is not a rude question to ask.

I think there is a bug in extension-point [48804] and an issue of 
performance of <exec/> [48834] which have to be dealt with before making 
a new release.

What do the other committers think ?

[48834] https://issues.apache.org/bugzilla/show_bug.cgi?id=48834

[48804] https://issues.apache.org/bugzilla/show_bug.cgi?id=48804

Depending on whether we need to fix absolutely other bugs .... it can 
take one to two months from now to release 1.8.1

So I see it released in May.

Regards,

Antoine

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


DO NOT REPLY [Bug 48876] ANT_CMD_LINE_ARGS are rippling through lower level Ant usage

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48876

--- Comment #4 from Ronan Mulvaney <rm...@curamsoftware.com> 2010-03-10 08:47:07 UTC ---
Very rude of me - I don't suppose you have a view on when 1.8.1 may be released
at this point?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.