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 6277] - 1.4.1 fails to execute my ant script when 1.3 does not
Date Mon, 25 Mar 2002 14:02:41 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6277>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6277

1.4.1 fails to execute my ant script when 1.3 does not





------- Additional Comments From dmiller@kyrus.com  2002-03-25 14:02 -------
I do not have JAVACMD set.  I do not have a copy of java.exe in winnt or 
winnt\system32.  Here's the output for the ant.bat:


C:\FuelPathGE>rem @echo off 

C:\FuelPathGE>if exist "\antrc_pre.bat" call "\antrc_pre.bat" 

C:\FuelPathGE>if not "Windows_NT" == "Windows_NT" goto win9xStart 

C:\FuelPathGE>rem c:\jakarta-ant-1.4.1\bin\ is name of current script under NT 

C:\FuelPathGE>set DEFAULT_ANT_HOME=c:\jakarta-ant-1.4.1\bin\ 

C:\FuelPathGE>rem : operator works similar to make : operator 

C:\FuelPathGE>set DEFAULT_ANT_HOME=c:\jakarta-ant-1.4.1\bin\\.. 

C:\FuelPathGE>if "" == "" set ANT_HOME=c:\jakarta-ant-1.4.1\bin\\.. 

C:\FuelPathGE>set DEFAULT_ANT_HOME= 

C:\FuelPathGE>rem Need to check if we are using the 4NT shell... 

C:\FuelPathGE>if "eval[2+2]" == "4" goto setup4NT 

C:\FuelPathGE>rem On NT/2K grab all arguments at once 

C:\FuelPathGE>set ANT_CMD_LINE_ARGS=-buildfile buildge.xml 

C:\FuelPathGE>goto doneStart 

C:\FuelPathGE>rem This label provides a place for the argument list loop to 
break out 

C:\FuelPathGE>rem and for NT handling to skip to. 

C:\FuelPathGE>rem find ANT_HOME 

C:\FuelPathGE>if not "c:\jakarta-ant-1.4.1\bin\\.." == "" goto checkJava 

C:\FuelPathGE>set _JAVACMD= 

C:\FuelPathGE>set LOCALCLASSPATH="C:\Program Files\InterBase 
Corp\InterClient\interclient.jar" 

C:\FuelPathGE>for %i in ("c:\jakarta-ant-1.4.1\bin\\..\lib\*.jar") do 
call "c:\jakarta-ant-1.4.1\bin\\..\bin\lcp.bat" %i 

C:\FuelPathGE>call "c:\jakarta-ant-1.4.1\bin\\..\bin\lcp.bat" c:\jakarta-ant-
1.4.1\bin\\..\lib\ant.jar 

C:\FuelPathGE>set _CLASSPATHCOMPONENT=c:\jakarta-ant-1.4.1\bin\\..\lib\ant.jar 

C:\FuelPathGE>if a == a goto gotAllArgs 

C:\FuelPathGE>set LOCALCLASSPATH=c:\jakarta-ant-1.4.1
\bin\\..\lib\ant.jar;"C:\Program Files\InterBase 
Corp\InterClient\interclient.jar" 
C:\FuelPathGE>call "c:\jakarta-ant-1.4.1\bin\\..\bin\lcp.bat" c:\jakarta-ant-
1.4.1\bin\\..\lib\jaxp.jar 

C:\FuelPathGE>set _CLASSPATHCOMPONENT=c:\jakarta-ant-1.4.1\bin\\..\lib\jaxp.jar 

C:\FuelPathGE>if a == a goto gotAllArgs 

C:\FuelPathGE>set LOCALCLASSPATH=c:\jakarta-ant-1.4.1
\bin\\..\lib\jaxp.jar;c:\jakarta-ant-1.4.1\bin\\..\lib\ant.jar;"C:\Program 
Files\InterBase Corp\InterClient\interclient.jar" 
C:\FuelPathGE>call "c:\jakarta-ant-1.4.1\bin\\..\bin\lcp.bat" c:\jakarta-ant-
1.4.1\bin\\..\lib\crimson.jar 

C:\FuelPathGE>set _CLASSPATHCOMPONENT=c:\jakarta-ant-1.4.1
\bin\\..\lib\crimson.jar 

C:\FuelPathGE>if a == a goto gotAllArgs 

C:\FuelPathGE>set LOCALCLASSPATH=c:\jakarta-ant-1.4.1
\bin\\..\lib\crimson.jar;c:\jakarta-ant-1.4.1\bin\\..\lib\jaxp.jar;c:\jakarta-
ant-1.4.1\bin\\..\lib\ant.jar;"C:\Program Files\InterBase 
Corp\InterClient\interclient.jar" 
C:\FuelPathGE>call "c:\jakarta-ant-1.4.1\bin\\..\bin\lcp.bat" c:\jakarta-ant-
1.4.1\bin\\..\lib\kant.jar 

C:\FuelPathGE>set _CLASSPATHCOMPONENT=c:\jakarta-ant-1.4.1\bin\\..\lib\kant.jar 

C:\FuelPathGE>if a == a goto gotAllArgs 

C:\FuelPathGE>set LOCALCLASSPATH=c:\jakarta-ant-1.4.1
\bin\\..\lib\kant.jar;c:\jakarta-ant-1.4.1\bin\\..\lib\crimson.jar;c:\jakarta-
ant-1.4.1\bin\\..\lib\jaxp.jar;c:\jakarta-ant-1.4.1
\bin\\..\lib\ant.jar;"C:\Program Files\InterBase 
Corp\InterClient\interclient.jar" 

C:\FuelPathGE>if "c:\jdk1.3.1" == "" goto noJavaHome 

C:\FuelPathGE>if "" == "" set _JAVACMD=c:\jdk1.3.1\bin\java 

C:\FuelPathGE>if exist "c:\jdk1.3.1\lib\tools.jar" call "c:\jakarta-ant-1.4.1
\bin\\..\bin\lcp.bat" c:\jdk1.3.1\lib\tools.jar 

C:\FuelPathGE>set _CLASSPATHCOMPONENT=c:\jdk1.3.1\lib\tools.jar 

C:\FuelPathGE>if a == a goto gotAllArgs 

C:\FuelPathGE>set LOCALCLASSPATH=c:\jdk1.3.1\lib\tools.jar;c:\jakarta-ant-1.4.1
\bin\\..\lib\kant.jar;c:\jakarta-ant-1.4.1\bin\\..\lib\crimson.jar;c:\jakarta-
ant-1.4.1\bin\\..\lib\jaxp.jar;c:\jakarta-ant-1.4.1
\bin\\..\lib\ant.jar;"C:\Program Files\InterBase 
Corp\InterClient\interclient.jar" 

C:\FuelPathGE>if exist "c:\jdk1.3.1\lib\classes.zip" call "c:\jakarta-ant-1.4.1
\bin\\..\bin\lcp.bat" c:\jdk1.3.1\lib\classes.zip 

C:\FuelPathGE>goto checkJikes 

C:\FuelPathGE>if not "" == "" goto runAntWithJikes 

C:\FuelPathGE>"c:\jdk1.3.1\bin\java" -classpath 'c:\jdk1.3.1
\lib\tools.jar;c:\jakarta-ant-1.4.1\bin\\..\lib\kant.jar;c:\jakarta-ant-1.4.1
\bin\\..\lib\crimson.jar;c:\jakarta-ant-1.4.1\bin\\..\lib\jaxp.jar;c:\jakarta-
ant-1.4.1\bin\\..\lib\ant.jar;"C:\Program Files\InterBase 
Corp\InterClient\interclient.jar"' -Dant.home="c:\jakarta-ant-1.4.1\bin\\.."  
org.apache.tools.ant.Main -buildfile buildge.xml 
Buildfile: buildge.xml

compile:
    [javac] Modern compiler is not available - using classic compiler
    [javac] Compiling 3 source files to C:\FuelpathGE\classes

Total time: 2 seconds

C:\FuelPathGE>goto end 

C:\FuelPathGE>set LOCALCLASSPATH= 

C:\FuelPathGE>set _JAVACMD= 

C:\FuelPathGE>set ANT_CMD_LINE_ARGS= 

C:\FuelPathGE>if not "Windows_NT" == "Windows_NT" goto mainEnd 

C:\FuelPathGE>if exist "\antrc_post.bat" call "\antrc_post.bat" 

stderr also gives:


BUILD FAILED

C:\FuelPathGE\buildge.xml:81: Cannot use classic compiler, as it is not 
available A common solution is to set the environment variable JAVA_HOME to 
your jdk directory.

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


Mime
View raw message