You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by sb...@apache.org on 2002/08/22 21:23:33 UTC
cvs commit: jakarta-ant/src/script ant.bat
sbailliez 2002/08/22 12:23:33
Modified: src/script ant.bat
Log:
More batch hacking. JAVACMD was reset each time and was jumping right off without
appending tools.jar
Reported by Brian DeWeese <br...@yahoo.com>
Revision Changes Path
1.20 +12 -11 jakarta-ant/src/script/ant.bat
Index: ant.bat
===================================================================
RCS file: /home/cvs/jakarta-ant/src/script/ant.bat,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- ant.bat 16 Aug 2002 15:31:45 -0000 1.19
+++ ant.bat 22 Aug 2002 19:23:33 -0000 1.20
@@ -56,20 +56,21 @@
set LOCALCLASSPATH=%CLASSPATH%
for %%i in ("%ANT_HOME%\lib\*.jar") do call "%ANT_HOME%\bin\lcp.bat" %%i
-if exist "%JAVA_HOME%\bin\java.exe" goto gotJava
-echo
+if "%JAVA_HOME%" == "" goto noJavaHome
+if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
+set _JAVACMD=%JAVA_HOME%\bin\java.exe
+if exist "%JAVA_HOME%\lib\tools.jar" call "%ANT_HOME%\bin\lcp.bat" %JAVA_HOME%\lib\tools.jar
+if exist "%JAVA_HOME%\lib\classes.zip" call "%ANT_HOME%\bin\lcp.bat" %JAVA_HOME%\lib\classes.zip
+goto checkJikes
+
+:noJavaHome
+set _JAVACMD=java.exe
+echo.
echo Warning: JAVA_HOME environment variable is not set.
echo If build fails because sun.* classes could not be found
echo you will need to set the JAVA_HOME environment variable
echo to the installation directory of java.
-echo
-
-:gotJava
-set _JAVACMD=%JAVA_HOME%\bin\java.exe
-if exist "%_JAVACMD%" goto checkJikes
-set _JAVACMD=java.exe
-if exist "%JAVA_HOME%\lib\tools.jar" call "%ANT_HOME%\bin\lcp.bat" %JAVA_HOME%\lib\tools.jar
-if exist "%JAVA_HOME%\lib\classes.zip" call "%ANT_HOME%\bin\lcp.bat" %JAVA_HOME%\lib\classes.zip
+echo.
:checkJikes
if not "%JIKESPATH%"=="" goto runAntWithJikes
@@ -87,7 +88,7 @@
set _JAVACMD=
set ANT_CMD_LINE_ARGS=
-if not "%OS%"=="Windows_NT" @endlocal
+if "%OS%"=="Windows_NT" @endlocal
:mainEnd
if exist "%HOME%\antrc_post.bat" call "%HOME%\antrc_post.bat"
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: cvs commit: jakarta-ant/src/script ant.bat
Posted by Steve Loughran <st...@iseran.com>.
----- Original Message -----
From: "Stephane Bailliez" <sb...@apache.org>
To: "Ant Developers List" <an...@jakarta.apache.org>
Sent: Thursday, August 22, 2002 4:00 PM
Subject: Re: cvs commit: jakarta-ant/src/script ant.bat
> ----- Original Message -----
> From: "Steve Loughran" <st...@iseran.com>
>
>
> > I still see this; i need to go back to 1.1.8 for things to work
> [...]
>
> uh ? what kind of jdk do you have that has only 4 exe (w/o java and javac)
> in bin directory ?
I stopped listing everything below, I was just indicating that everything
was there.
And yes, it is all there, I know that because I reinstalled everything last
week. And why did I reinstall everything last week? Because if you uninstall
java1.3 it breaks java1.4, suddenly your binding to things like .jar to
javaw -jar go away, and rather than do registry fixup myself, I delegated it
to the JDK installer.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: cvs commit: jakarta-ant/src/script ant.bat
Posted by Stephane Bailliez <sb...@apache.org>.
----- Original Message -----
From: "Steve Loughran" <st...@iseran.com>
> I still see this; i need to go back to 1.1.8 for things to work
[...]
uh ? what kind of jdk do you have that has only 4 exe (w/o java and javac)
in bin directory ?
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: cvs commit: jakarta-ant/src/script ant.bat
Posted by Steve Loughran <st...@iseran.com>.
----- Original Message -----
From: <sb...@apache.org>
To: <ja...@apache.org>
Sent: Thursday, August 22, 2002 12:23 PM
Subject: cvs commit: jakarta-ant/src/script ant.bat
> sbailliez 2002/08/22 12:23:33
>
> Modified: src/script ant.bat
> Log:
> More batch hacking. JAVACMD was reset each time and was jumping right
off without
> appending tools.jar
>
I still see this; i need to go back to 1.1.8 for things to work
compile:
[javac] Compiling 91 source files to
C:\java\Apache\xml-axis\java\build\classes
BUILD FAILED
file:C:/java/Apache/xml-axis/java/build.xml:79: Unable to find a javac
compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
Total time: 5 seconds
C:\java\Apache\xml-axis\java>dir %JAVA_HOME%\bin
Directory of c:\java\JDK\bin
2002-08-08 03:27 PM <DIR> .
2002-08-08 03:27 PM <DIR> ..
2002-04-20 11:39 PM 24,696 appletviewer.exe
2002-04-20 11:39 PM 28,790 extcheck.exe
2002-04-20 11:39 PM 16,384 HtmlConverter.exe
2002-04-20 11:39 PM 24,696 idlj.exe
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>