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/09/20 18:06:28 UTC

DO NOT REPLY [Bug 49963] New: runant.py consuming first argument

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

           Summary: runant.py consuming first argument
           Product: Ant
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Wrapper scripts
        AssignedTo: notifications@ant.apache.org
        ReportedBy: devon.c.miller@gmail.com


Created an attachment (id=26058)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26058)
Proposed patch for this bug

The command like for the launcher is built with

 cmdline = ('%s %s -classpath %s -Dant.home=%s %s ' + \
    'org.apache.tools.ant.launch.Launcher %s -lib %s %s') \
      % (JAVACMD, ANT_OPTS, LOCALCLASSPATH, ANT_HOME, OPTS, ANT_ARGS, \
         CLASSPATH, string.join(sys.argv[1:], ' '))

If CLASSPATH was not set, the first argument (sys.argv[1]) is consumed as being
the argument to lib.

So, when ClASSPATH is not set, calling runant.py -propertyfile foo produces the
message:

    Target "foo" does not exist in the project "sample".

-- 
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 49963] runant.py consuming first argument

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

Stefan Bodewig <bo...@apache.org> changed:

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

--- Comment #1 from Stefan Bodewig <bo...@apache.org> 2010-09-21 08:08:00 EDT ---
see my comments in bug 34507 - we probably better use the subprocess module.

I've committed your patch with svn revision 999368 - thanks.

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