-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.bat
47 lines (29 loc) · 1.05 KB
/
build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
@echo off
REM $Id: build.bat,v 1.4 2003/04/24 06:10:52 aslom Exp $
REM
REM REQUIRED: Please make sure that JAVA_HOME points to JDK1.3
REM and make sure that JAVA_HOME\lib contains tools.jar !!!!
REM
REM JAVA_HOME can be set manualy ..
REM set JAVA_HOME=c:\jdk13
if "%JAVA_HOME%" == "" goto javahomeerror
REM
REM No need to modify anything after this line.
REM --------------------------------------------------------------------
rem echo JAVA_HOME=%JAVA_HOME%
set OLDCLASSPATH=%CLASSPATH%
call classpath.bat build quiet
set CMD=%JAVA_HOME%\bin\java.exe -classpath %LOCALCLASSPATH% org.apache.tools.ant.Main -buildfile src\build.xml %1 %2 %3 %4 %5 %6 %7 %8 %9
rem clean up
set CLASSPATH=%OLDCLASSPATH%
set OLDCLASSPATH=
rem execute it
echo %CMD%
%CMD%
goto end
REM -----------ERROR-------------
:javahomeerror
echo "ERROR: JAVA_HOME not found in your environment."
echo "Please, set the JAVA_HOME variable in your environment to match the"
echo "location of the Java Virtual Machine you want to use."
:end