Original 2.4. With additional eclipse .project/classpath and git ignore
[marc4j.git] / build.bat
diff --git a/build.bat b/build.bat
new file mode 100644 (file)
index 0000000..f9de500
--- /dev/null
+++ b/build.bat
@@ -0,0 +1,27 @@
+@echo off\r
+\r
+echo marc4j build system\r
+echo -------------------\r
+\r
+if "%JAVA_HOME%" == "" goto error\r
+\r
+set LOCALCLASSPATH=%JAVA_HOME%\lib\tools.jar;.\lib\ant.jar;.\r
+set ANT_HOME=./lib\r
+\r
+echo Building with classpath %LOCALCLASSPATH%\r
+\r
+echo Starting Ant...\r
+\r
+"%JAVA_HOME%\bin\java.exe" -Dant.home="%ANT_HOME%" -classpath "%LOCALCLASSPATH%" org.apache.tools.ant.Main %1 %2\r
+\r
+goto end\r
+\r
+:error\r
+\r
+echo ERROR: JAVA_HOME not found in your environment.\r
+echo Please, set the JAVA_HOME variable in your environment to match the\r
+echo location of the Java Virtual Machine you want to use.\r
+\r
+:end\r
+\r
+set LOCALCLASSPATH=\r