From 6bb6bd0e1a094be81446ff0cf151988182560b01 Mon Sep 17 00:00:00 2001 From: joergviola Date: Wed, 28 Apr 2010 21:08:43 +0000 Subject: [PATCH] use standard deployment for OSGi https://sourceforge.net/tracker/?func=detail&aid=2700937&group_id=176962&atid=879334 --- utils/RUN_Adempiere.sh | 4 +++- utils_dev/RUN_build.sh | 12 +++++++----- utils_dev/RUN_plugin.sh | 8 ++++++++ utils_dev/build.properties | 2 +- utils_dev/build.xml | 31 +++++++++++++++++++++++++++++-- utils_dev/properties.xml | 21 ++++++++++++++++++++- 6 files changed, 68 insertions(+), 10 deletions(-) create mode 100755 utils_dev/RUN_plugin.sh diff --git a/utils/RUN_Adempiere.sh b/utils/RUN_Adempiere.sh index 64eea36f3e..bce91f2d0a 100644 --- a/utils/RUN_Adempiere.sh +++ b/utils/RUN_Adempiere.sh @@ -38,5 +38,7 @@ PROP= # SECURE=-DADEMPIERE_SECURE=org.compiere.util.Secure SECURE= -$JAVA -Xms32m -Xmx512m -DADEMPIERE_HOME=$ADEMPIERE_HOME $PROP $SECURE -classpath $CLASSPATH org.compiere.Adempiere +#$JAVA -Xms32m -Xmx512m -DADEMPIERE_HOME=$ADEMPIERE_HOME $PROP $SECURE -classpath $CLASSPATH org.compiere.Adempiere +# OSGi: +$JAVA -Xms32m -Xmx512m -DADEMPIERE_HOME=$ADEMPIERE_HOME $PROP $SECURE -jar $ADEMPIERE_HOME/osgi/org.eclipse.osgi_3.5.0.v20090520.jar -clean -console -application org.adempiere.Client diff --git a/utils_dev/RUN_build.sh b/utils_dev/RUN_build.sh index 8f19e63278..d43fb4d4d7 100755 --- a/utils_dev/RUN_build.sh +++ b/utils_dev/RUN_build.sh @@ -22,16 +22,18 @@ if [ ! -f $JAVA_HOME/lib/tools.jar ] ; then exit fi -#classpath -export ANT_CLASSPATH=$CLASSPATH:../tools/lib/ant.jar:../tools/lib/ant-launcher.jar:../tools/lib/ant-swing.jar:../tools/lib/ant-commons-net.jar:../tools/lib/commons-net.jar:$JAVA_HOME/lib/tools.jar +ANTLIB="-lib ../tools/lib/ant4eclipse/ -lib ../equinox-target/org.eclipse.osgi_3.5.0.v20090520.jar -lib ../tools/lib/ant-contrib-1.0b1.jar" -export ANT_OPTS="-Xms128m -Xmx512m" +#classpath +export ANT_CLASSPATH=../tools/lib/ant-launcher.jar + +export ANT_OPTS="-Xms128m -Xmx512m -Dworkspace=`pwd`/.." echo Cleanup ... -$JAVA_HOME/bin/java $ANT_OPTS -classpath $ANT_CLASSPATH -Dant.home="." org.apache.tools.ant.Main clean +$JAVA_HOME/bin/java $ANT_OPTS -classpath $ANT_CLASSPATH org.apache.tools.ant.launch.Launcher $ANTLIB clean echo Building ... -$JAVA_HOME/bin/java $ANT_OPTS -classpath $ANT_CLASSPATH -Dant.home="." org.apache.tools.ant.Main -logger org.apache.tools.ant.listener.MailLogger complete +$JAVA_HOME/bin/java $ANT_OPTS -classpath $ANT_CLASSPATH org.apache.tools.ant.launch.Launcher -logger org.apache.tools.ant.listener.MailLogger $ANTLIB complete echo Done ... diff --git a/utils_dev/RUN_plugin.sh b/utils_dev/RUN_plugin.sh new file mode 100755 index 0000000000..f147058e54 --- /dev/null +++ b/utils_dev/RUN_plugin.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +export ANT_OPTS="-Xms128m -Xmx512m -Dworkspace=`pwd`/.." + +ANT4ECLIPSE=../tools/lib/ant4eclipse/ +ANT4OSGI=../equinox-target/org.eclipse.osgi_3.5.0.v20090520.jar + +ant -Dplugin=$1 -lib $ANT4ECLIPSE -lib $ANT4OSGI -lib ../tools/lib/ant-contrib-1.0b1.jar plugin diff --git a/utils_dev/build.properties b/utils_dev/build.properties index 5ca0f646be..7758bf354f 100644 --- a/utils_dev/build.properties +++ b/utils_dev/build.properties @@ -3,7 +3,7 @@ env.ADEMPIERE_ROOT=${env.ADEMPIERE_SOURCE}/adempiere env.ADEMPIERE_HOME=${env.ADEMPIERE_ROOT}/Adempiere env.ADEMPIERE_INSTALL=${env.ADEMPIERE_SOURCE}/adempiere/install env.ADEMPIERE_VERSION=ADempiere -env.ADEMPIERE_VERSION_FILE=354a +env.ADEMPIERE_VERSION_FILE=400pr01 env.ADEMPIERE_VENDOR=ADempiere env.ENCODING=UTF-8 env.XDOCLET_HOME=${env.ADEMPIERE_SOURCE}/tools diff --git a/utils_dev/build.xml b/utils_dev/build.xml index ad3347605d..6f23d61776 100644 --- a/utils_dev/build.xml +++ b/utils_dev/build.xml @@ -2,7 +2,7 @@ - + This buildfile is used to build the Adempiere system. @@ -31,9 +31,10 @@ - + + @@ -92,6 +93,32 @@ --> + + + + + + + + + + + + + + + + diff --git a/utils_dev/properties.xml b/utils_dev/properties.xml index be1e2401c9..24a5b3739a 100644 --- a/utils_dev/properties.xml +++ b/utils_dev/properties.xml @@ -1,5 +1,7 @@ - + + This project file sets all properties needed during build and installation. This file is imported in all other build.xml @@ -14,4 +16,21 @@ + + + + + + + + + + + + + + +