=== modified file 'dhis2-live-installer/INSTALLER-README.txt' --- dhis2-live-installer/INSTALLER-README.txt 2010-03-02 06:52:28 +0000 +++ dhis2-live-installer/INSTALLER-README.txt 2010-04-21 07:46:29 +0000 @@ -51,6 +51,14 @@ and execute the build.sh script if you are on Linux (be sure it is executable) or the build.bat script if you are using Windows. +There are several options you will need to pass to the build script. + +./build.sh all Build everything. +./build.sh docs Build only the documentation. +./build.sh installer Build only the installer. +./build.sh dhis2 Build only DHIS2. + + You will now enter into a rather lengthy process depending on the speed of your machine. At the end you will have a Windows installer based on the latest source code and === modified file 'dhis2-live-installer/build.sh' --- dhis2-live-installer/build.sh 2010-04-09 14:28:39 +0000 +++ dhis2-live-installer/build.sh 2010-04-21 07:46:29 +0000 @@ -7,6 +7,7 @@ export DHIS2_SRC="/home/wheel/workspace/dhis2/" export MAVEN_OPTS="-Xms256m -Xmx512m" +if [ "$1" = "all" ] ; then echo "Building DHIS 2 Core..." cd $DHIS2_SRC/dhis-2 @@ -23,3 +24,30 @@ echo "Building installer" cd $DHIS2_SRC/dhis2-live-installer mvn package + +fi + +if [ "$1" = "docs" ] ; then +cd $DHIS2_DOCS +mvn package +fi + +if [ "$1" = "installer" ] ; then +echo "Building installer" +cd $DHIS2_SRC/dhis2-live-installer +mvn package +fi + +if [ "$1" = "dhis2" ] ; then + +echo "Building DHIS 2 Core..." +cd $DHIS2_SRC/dhis-2 +mvn clean install -Dtest=skip -DfailIfNoTests=false +echo "Building DHIS 2 Web..." +cd $DHIS2_SRC/dhis-2/dhis-web +mvn clean install -Dtest=skip -DfailIfNoTests=false +echo "Builidng DHIS2 Live Package" +cd $DHIS2_SRC/dhis-live/ +mvn clean package -Dtest=skip -DfailIfNoTests=false + +fi