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: [email protected]
ReportedBy: [email protected]
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.