ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49963] New: runant.py consuming first argument
Date Mon, 20 Sep 2010 16:06:28 GMT
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.

Mime
View raw message