Browse Source

don't swallow first arg if CLASSPATH isn't set. PR 49963. Submitted by Devon C. Miller

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@999368 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 14 years ago
parent
commit
aed233d7f2
4 changed files with 11 additions and 2 deletions
  1. +1
    -0
      CONTRIBUTORS
  2. +3
    -0
      WHATSNEW
  3. +5
    -0
      contributors.xml
  4. +2
    -2
      src/script/runant.py

+ 1
- 0
CONTRIBUTORS View File

@@ -87,6 +87,7 @@ David Maclean
David Rees David Rees
Denis Hennessy Denis Hennessy
Derek Slager Derek Slager
Devon C. Miller
Diane Holt Diane Holt
dIon Gillard dIon Gillard
Dmitry A. Kuminov Dmitry A. Kuminov


+ 3
- 0
WHATSNEW View File

@@ -150,6 +150,9 @@ Fixed bugs:
argument, even though the javadoc says, null is a valid value. argument, even though the javadoc says, null is a valid value.
Bugzilla Report 49803. Bugzilla Report 49803.


* runant.py would swallow the first argument if CLASSPATH wasn't set.
Bugzilla Report 49963.

Other changes: Other changes:
-------------- --------------




+ 5
- 0
contributors.xml View File

@@ -373,6 +373,11 @@
<first>Derek</first> <first>Derek</first>
<last>Slager</last> <last>Slager</last>
</name> </name>
<name>
<first>Devon</first>
<middle>C.</middle>
<last>Miller</last>
</name>
<name> <name>
<first>Diane</first> <first>Diane</first>
<last>Holt</last> <last>Holt</last>


+ 2
- 2
src/script/runant.py View File

@@ -86,11 +86,11 @@ if os.environ.has_key('ANT_ARGS'):


CLASSPATH = "" CLASSPATH = ""
if os.environ.has_key('CLASSPATH'): if os.environ.has_key('CLASSPATH'):
CLASSPATH = os.environ['CLASSPATH']
CLASSPATH = "-lib " + os.environ['CLASSPATH']


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




Loading…
Cancel
Save