aboutsummaryrefslogtreecommitdiff
path: root/build/scripts/build.bat
diff options
context:
space:
mode:
authorgregor <gregor@d688527b-c9ab-4aba-bd8d-4036d912da1d>2003-07-07 15:46:46 +0000
committergregor <gregor@d688527b-c9ab-4aba-bd8d-4036d912da1d>2003-07-07 15:46:46 +0000
commit7a433b7053eea6bd2270bdb42bc22bfb5ab8e815 (patch)
treedb0a42a3cd4deaf7968c24ae3a877e7bef1f1ecf /build/scripts/build.bat
parentd5bfcf5666a3c0502abc028800e3d0f43ae6d985 (diff)
downloadmoa-id-spss-7a433b7053eea6bd2270bdb42bc22bfb5ab8e815.tar.gz
moa-id-spss-7a433b7053eea6bd2270bdb42bc22bfb5ab8e815.tar.bz2
moa-id-spss-7a433b7053eea6bd2270bdb42bc22bfb5ab8e815.zip
Initial commit
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@4 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'build/scripts/build.bat')
-rw-r--r--build/scripts/build.bat64
1 files changed, 64 insertions, 0 deletions
diff --git a/build/scripts/build.bat b/build/scripts/build.bat
new file mode 100644
index 000000000..317699068
--- /dev/null
+++ b/build/scripts/build.bat
@@ -0,0 +1,64 @@
+@echo off
+
+rem
+rem Main build script for the MOA projects
+rem
+rem Author: Patrick Peck
+rem Version: $Id: build.bat,v 1.8 2003/05/07 18:52:02 peck Exp $
+rem
+
+
+set JAVA_HOME=C:\Programme\JavaSoft\JDK\jdk1.3.1_08
+set CATALINA_HOME=C:\Programme\Apache\Tomcat-4_1_24
+
+
+if %OS%=="Windows_NT" @setlocal
+
+set PROJECTS=
+set TARGETS=
+
+set ALLPROJECTS=common spss.server id.server
+
+if "%JAVA_HOME%"=="" goto noJavaHome
+goto checkAllProjects
+
+:noJavaHome
+echo error: JAVA_HOME not defined
+goto end
+
+:checkAllProjects
+set PROJECTS=%1
+shift
+if not "%PROJECTS%"=="all" goto checkCommonProject
+set PROJECTS=%ALLPROJECTS%
+goto checkTargets
+
+:checkCommonProject
+if not "%PROJECTS%"=="common" goto checkProject
+set PROJECTS=common
+goto checkTargets
+
+:checkEmptyProject
+if not "%PROJECTS%"=="" goto checkProject
+set PROJECTS=%ALLPROJECTS%
+goto checkTargets
+
+:checkProject
+set PROJECTS=common %PROJECTS%
+
+:checkTargets
+if "%1"=="" goto runAnt
+set TARGETS=%TARGETS% %1
+shift
+goto checkTargets
+
+:runAnt
+echo.
+echo BUILDING PROJECT(S): %PROJECTS%
+echo BUILDING TARGET(S) : %TARGETS%
+
+for %%p in (%PROJECTS%) do call runAnt %%p %TARGETS%
+
+:end
+if %OS%=="Windows_NT" @endlocal
+