ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Murray, Mike" <>
Subject RE: ANT_ARGS=-noclasspath -logger -cp
Date Fri, 15 Dec 2006 17:51:22 GMT

I just stumbled across the "other way" I was seeking, which is to use
-lib, instead of -cp.

ANT_ARGS=-noclasspath -logger -lib

-----Original Message-----
From: Murray, Mike [] 
Sent: Monday, December 04, 2006 12:02 PM
Subject: ANT_ARGS=-noclasspath -logger -cp

This looks like a bug to me, but am I overlooking some other way to
accomplish this, besides setting the env classpath to the one jar that
contains the custom logger class?  (I've used a modified ant.bat for
years to work around this, and I'm trying to get rid of my hacks.)
When defining -noclasspath and -cp for the -logger class (see ANT_ARGS
below), it fails with "The -cp argument must not be repeated". Since the
-noclasspath is not processed by ant.bat, two -cp arguments are passed,
as can be seen at the bottom.
(Seems to me the best way to get rid of the problem would be to
implement the enhancement requested by bug 36958
<> .)
Thanks, Mike
--- Ant Environment Variables ---
ANT_ARGS=-noclasspath -logger -cp
--- Command executed ---
ant -f build_at_desktop.xml clean
--- Selected output from ant.bat ---
if "L:\Windchill\codebase;D:\Programs\jdk1.5.0_06\jre\lib\rt.ja
r;D:\Programs\jdk1.5.0_06\lib\tools.jar;T:\sde\classes\junit.jar" == ""
if ""build_at_desktop.xml"" == ""-noclasspath"" goto clearclasspath
if ""clean"" == ""-noclasspath"" goto clearclasspath
set ANT_CMD_LINE_ARGS=-f build_at_desktop.xml clean
if _USE_CLASSPATH == no goto findAntHome
if not _r == _\ goto findAntHome
if "yes" == "no" goto runAntNoClasspath
"D:\Programs\jdk1.5.0_06\bin\java.exe" -Xmx1024M -classpath
"-Dant.home=D:\Programs\apache-ant-1.7.0RC1" -noclasspath -logger -cp L:/tools_vs/lib/BuildSupport-ant.jar
s\jdk1.5.0_06\lib\tools.jar;T:\sde\classes\junit.jar" -f
build_at_desktop.xml clean The -cp argument must not be repeated

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message