diff options
author | gregor <gregor@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2003-07-07 15:46:46 +0000 |
---|---|---|
committer | gregor <gregor@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2003-07-07 15:46:46 +0000 |
commit | 7a433b7053eea6bd2270bdb42bc22bfb5ab8e815 (patch) | |
tree | db0a42a3cd4deaf7968c24ae3a877e7bef1f1ecf /build/scripts | |
parent | d5bfcf5666a3c0502abc028800e3d0f43ae6d985 (diff) | |
download | moa-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')
-rw-r--r-- | build/scripts/build.bat | 64 | ||||
-rw-r--r-- | build/scripts/build.sh | 34 | ||||
-rw-r--r-- | build/scripts/runAnt.bat | 38 | ||||
-rw-r--r-- | build/scripts/runAnt.sh | 31 |
4 files changed, 167 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
+
diff --git a/build/scripts/build.sh b/build/scripts/build.sh new file mode 100644 index 000000000..33f5f78b3 --- /dev/null +++ b/build/scripts/build.sh @@ -0,0 +1,34 @@ +#!/bin/sh + +# +# Main build script for the MOA projects +# +# Author: Paul Ivancsics +# Version: $Id: build.sh,v 1.13 2003/05/07 18:52:02 peck Exp $ +# + + +PROJECTS=$1 +ALLPROJECTS="common spss.server id.server" + +shift +TARGETS=$* + +if [ -z "$JAVA_HOME" ]; then + echo "error: JAVA_HOME not defined"; + exit; +fi + +if [ -z "$PROJECTS" ] || [ "$PROJECTS" = "all" ]; then + PROJECTS=$ALLPROJECTS; +elif ! [ "$PROJECTS" = "common" ]; then + PROJECTS="common $PROJECTS"; +fi + +echo +echo "BUILDING PROJECT(S): $PROJECTS" +echo "BUILDING TARGET(S) : $TARGETS" + +for PROJ in $PROJECTS; do + sh ./runAnt.sh $PROJ $TARGETS; +done diff --git a/build/scripts/runAnt.bat b/build/scripts/runAnt.bat new file mode 100644 index 000000000..347ad8d21 --- /dev/null +++ b/build/scripts/runAnt.bat @@ -0,0 +1,38 @@ +@echo off
+
+rem
+rem Helper script for calling Ant
+rem
+rem Author: Patrick Peck
+rem Version: $Id: runAnt.bat,v 1.6 2003/03/24 10:36:35 peck Exp $
+rem
+
+
+if %OS%=="Windows_NT" @setlocal
+
+set ANT=..\build\tools\jakarta-ant-1.5.1\bin\ant.bat
+set BUILDFILE=build.xml
+set SCRIPT_SUFFIX=bat
+set MOA_COMMON_JAR=..\common\tmp\dist\moa-common.jar
+set MOA_COMMON_TEST_JAR=..\common\tmp\dist\moa-common-test.jar
+
+echo.
+echo.
+echo BUILDING %1
+echo.
+
+
+cd ..\..\%1
+
+:callCommon
+if not "%1"=="common" goto callOther
+call %ANT% -f %BUILDFILE% dist-all
+goto end
+
+:callOther
+call %ANT% -f %BUILDFILE% %2 %3 %4 %5 %6 %7 %8 %9
+
+:end
+cd ..\build\scripts
+if %OS%=="Windows_NT" @endlocal
+
diff --git a/build/scripts/runAnt.sh b/build/scripts/runAnt.sh new file mode 100644 index 000000000..b5fc92e24 --- /dev/null +++ b/build/scripts/runAnt.sh @@ -0,0 +1,31 @@ +#!/bin/sh + +# +# Helper script for calling Ant +# +# Author: Paul Ivancsics +# Version: $Id: runAnt.sh,v 1.9 2003/04/07 13:36:43 peck Exp $ +# + + +ANT=../build/tools/jakarta-ant-1.5.1/bin/ant +PROJECT="$1" +BUILDFILE=build.xml +export SCRIPT_SUFFIX=sh +export MOA_COMMON_JAR=../common/tmp/dist/moa-common.jar +export MOA_COMMON_TEST_JAR=../common/tmp/dist/moa-common-test.jar + +echo +echo +echo BUILDING $PROJECT +echo + + +cd ../../$PROJECT + +if [ "$1" == "common" ]; then + sh $ANT -f $BUILDFILE dist-all +else + sh $ANT -f $BUILDFILE $2 $3 $4 $5 $6 $7 $8 $9 +fi + |