File: build.bat

package info (click to toggle)
werken.xpath 0.9.4-16
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 2,564 kB
  • sloc: java: 3,115; xml: 1,144; sh: 31; makefile: 3
file content (35 lines) | stat: -rw-r--r-- 804 bytes parent folder | download | duplicates (6)
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
@echo off

echo Werken.XPath Build System
echo -------------------------


if "%JAVA_HOME%" == "" goto error
	
set JAVA_CP=%JAVA_HOME%/lib/tools.jar;%JAVA_HOME%/lib/dev.jar
set JDOM_CP=./lib/jdom.jar
set ANTLR_CP=./lib/antlr-all.jar
set XERCES_CP=./lib/xerces.jar
set ANT_CP=./lib/ant.jar

set ANT_HOME=./lib

set CP=%JAVA_CP%;%JDOM_CP%;%ANTLR_CP%;%XERCES_CP%;%ANT_CP%

echo Building with classpath %CP%
echo

echo Starting Ant...
echo

%JAVA_HOME%\bin\java.exe -Dant.home="%ANT_HOME%" -classpath %CP% org.apache.tools.ant.Main %1 %2 %3 %4 %5

goto end

:error
  echo "ERROR: JAVA_HOME not found in your environment."
  echo
  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