ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 34860] New: - Startupscript must not add empty $CLASSPATH to evaluated command
Date Wed, 11 May 2005 11:35:13 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34860>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34860

           Summary: Startupscript must not add empty $CLASSPATH to evaluated
                    command
           Product: Ant
           Version: 1.6.3
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Wrapper scripts
        AssignedTo: dev@ant.apache.org
        ReportedBy: mgd@technosis.de


Hi ! 
 
I hope this is not a dublicate, but I didn't find one. 
 
When there is no environment variable CLASSPATH then the invoked command must 
not contain -cp "$CLASSPATH" (which is expanded to -cp ""). 
 
The following change it a trivial fix (could probably be improved): 
 
if [ -n "$CLASSPATH" ] ; then 
  ant_exec_command="exec \"$JAVACMD\" $ANT_OPTS -classpath \"$LOCALCLASSPATH\" 
-Dant.home=\"$ANT_HOME\" -Dant.library.dir=\"$ANT_LIB\" $ant_sys_opts 
org.apache.tools.ant.launch.Launcher $ANT_ARGS -cp \"$CLASSPATH\" 
$ant_exec_args" 
else 
  ant_exec_command="exec \"$JAVACMD\" $ANT_OPTS -classpath \"$LOCALCLASSPATH\" 
-Dant.home=\"$ANT_HOME\" -Dant.library.dir=\"$ANT_LIB\" $ant_sys_opts 
org.apache.tools.ant.launch.Launcher $ANT_ARGS $ant_exec_args" 
fi 
 
Best, 
Michael

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

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


Mime
View raw message