dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #05506
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1793: Minor changes to the build script to accept options for what to build.
------------------------------------------------------------
revno: 1793
committer: Jason P. Pickering <jason.p.pickering@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2010-04-21 09:46:29 +0200
message:
Minor changes to the build script to accept options for what to build.
modified:
dhis2-live-installer/INSTALLER-README.txt
dhis2-live-installer/build.sh
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== 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