You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by "Deadman, Hal" <ha...@tallan.com> on 2001/01/05 17:45:30 UTC

ant.bat typo?

When running ant with the JIKESPATH set it bombs out because %JAVACMD%
doesn't get defined. I think runAntWithJikes should use %_JAVACMD%.

See below:

:checkJikes
if not "%JIKESPATH%" == "" goto runAntWithJikes

:runAnt
%_JAVACMD% -classpath %LOCALCLASSPATH% -Dant.home="%ANT_HOME%" %ANT_OPTS%
org.apache.tools.ant.Main %ANT_CMD_LINE_ARGS%
goto end

:runAntWithJikes
%JAVACMD% -classpath
%LOCALCLASSPATH% -Dant.home="%ANT_HOME%" -Djikes.class.path=%JIKESPATH%
%ANT_OPTS% org.apache.tools.ant.Main %ANT_CMD_LINE_ARGS%


Re: ant.bat typo?

Posted by Conor MacNeill <co...@cognet.com.au>.
Hal,

Yes, this was reported yesterday by Jeff Bailey and is now fixed.  If you
use CVS, you can get the updated version now.
Thanks for reporting this.

Conor

----- Original Message -----
From: "Deadman, Hal" <ha...@tallan.com>
To: <an...@jakarta.apache.org>
Sent: Saturday, January 06, 2001 3:45 AM
Subject: ant.bat typo?


> When running ant with the JIKESPATH set it bombs out because %JAVACMD%
> doesn't get defined. I think runAntWithJikes should use %_JAVACMD%.
>
> See below:
>
> :checkJikes
> if not "%JIKESPATH%" == "" goto runAntWithJikes
>
> :runAnt
> %_JAVACMD% -classpath %LOCALCLASSPATH% -Dant.home="%ANT_HOME%" %ANT_OPTS%
> org.apache.tools.ant.Main %ANT_CMD_LINE_ARGS%
> goto end
>
> :runAntWithJikes
> %JAVACMD% -classpath
> %LOCALCLASSPATH% -Dant.home="%ANT_HOME%" -Djikes.class.path=%JIKESPATH%
> %ANT_OPTS% org.apache.tools.ant.Main %ANT_CMD_LINE_ARGS%
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ant-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: ant-dev-help@jakarta.apache.org
>