Moved all platform dependent scripts to the "tool" folder, with the only exception of the "ant" scripts for unix and windows that are still in the home folder.

Removed a series of unused files (ant extensions).
Removed special handling for hsql db from ant tasks (hsql is no more bundled with OFBiz).
Please help testing the scripts as I was only able to run some limited tests on my Mac.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1304369 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacopo Cappellato
2012-03-23 14:26:32 +00:00
parent 7c02c7829f
commit e5ead4907b
19 changed files with 55 additions and 241 deletions
+19 -8
View File
@@ -1,16 +1,18 @@
Welcome to Apache OFBiz!
If you have a release build all you need to run OFBiz is a
All you need to run OFBiz is a
1.6 (version 6) JDK (not just the JRE, the full JDK).
http://java.sun.com/javase/downloads/index.jsp
However if you have downloaded ofbiz from SVN then you should
load the demo data (strongly advised) with the following command
on the command line: (being in the OFbiz directory)
You can load the demo data (strongly advised) with the following command
on the command line: (being in the OFBiz directory)
linux: ./ant run-install
windows: ant run-install
linux/unix/osx:
./ant run-install
windows:
ant run-install
Once that is properly setup just run the executable jar file
that comes with OFBiz, which is ofbiz.jar. To do this on the
@@ -18,8 +20,17 @@ command line you would run:
java -Xms128M -Xmx512M -XX:MaxPermSize=128m -jar ofbiz.jar
Even better use the startup scripts for Windows and Unix-based
operating systems, namely startofbiz.bat and startofbiz.sh.
or
linux/unix/osx:
./ant run
windows:
ant run
You will also find several platform dependent startup scripts in the "tools" folder
(for Windows and Unix-based operating systems, the startup scripts are startofbiz.bat
and startofbiz.sh).
Once OFBiz starts, you can look at the demo storefront at:
http://localhost:8080/ecommerce
+1 -1
View File
@@ -91,7 +91,7 @@ under the License.
</delete>
</target>
<target name="clean-data"
description="Clean all DB data (Derby and HSQL) under runtime/data">
description="Clean all DB data (Derby) under runtime/data">
<subant target="clean-data">
<filelist dir="." files="framework/build.xml"/>
</subant>
-1
View File
@@ -51,7 +51,6 @@ under the License.
<mkdir dir="../runtime/logs/test-results"/>
<mkdir dir="../runtime/data"/>
<mkdir dir="../runtime/data/derby"/>
<mkdir dir="../runtime/data/hsql"/>
<condition property="isMac">
<os family="mac"/>
-6
View File
@@ -194,12 +194,6 @@ under the License.
</groovyc>
</presetdef>
<!-- replaced by ant contrib version -->
<!--scriptdef name="if" language="javascript" classpathref="rhino.class.path" loaderref="rhino.class.path.loader" src="${ofbiz.home.dir}/tools/If-ant.py">
<element name="condition" classname="org.apache.tools.ant.taskdefs.condition.And"/>
<element name="commands" classname="org.apache.tools.ant.taskdefs.Sequential"/>
<element name="else" classname="org.apache.tools.ant.taskdefs.Sequential"/>
</scriptdef-->
<taskdef resource="net/sf/antcontrib/antlib.xml">
<classpath>
<pathelement location="${ofbiz.home.dir}/framework/base/lib/ant/ant-contrib-1.0b3.jar"/>
-9
View File
@@ -1,9 +0,0 @@
var seq;
if (elements.get('condition').get(0).eval()) {
seq = elements.get('commands');
} else {
seq = elements.get('else');
}
if (seq) {
seq.get(0).execute();
}
-203
View File
@@ -1,203 +0,0 @@
java.applet
java.awt
java.awt.color
java.awt.datatransfer
java.awt.dnd
java.awt.event
java.awt.font
java.awt.geom
java.awt.im
java.awt.im.spi
java.awt.image
java.awt.image.renderable
java.awt.print
java.beans
java.beans.beancontext
java.io
java.lang
java.lang.annotation
java.lang.instrument
java.lang.management
java.lang.ref
java.lang.reflect
java.math
java.net
java.nio
java.nio.channels
java.nio.channels.spi
java.nio.charset
java.nio.charset.spi
java.rmi
java.rmi.activation
java.rmi.dgc
java.rmi.registry
java.rmi.server
java.security
java.security.acl
java.security.cert
java.security.interfaces
java.security.spec
java.sql
java.text
java.text.spi
java.util
java.util.concurrent
java.util.concurrent.atomic
java.util.concurrent.locks
java.util.jar
java.util.logging
java.util.prefs
java.util.regex
java.util.spi
java.util.zip
javax.accessibility
javax.activation
javax.activity
javax.annotation
javax.annotation.processing
javax.crypto
javax.crypto.interfaces
javax.crypto.spec
javax.imageio
javax.imageio.event
javax.imageio.metadata
javax.imageio.plugins.bmp
javax.imageio.plugins.jpeg
javax.imageio.spi
javax.imageio.stream
javax.jws
javax.jws.soap
javax.lang.model
javax.lang.model.element
javax.lang.model.type
javax.lang.model.util
javax.management
javax.management.loading
javax.management.modelmbean
javax.management.monitor
javax.management.openmbean
javax.management.relation
javax.management.remote
javax.management.remote.rmi
javax.management.timer
javax.naming
javax.naming.directory
javax.naming.event
javax.naming.ldap
javax.naming.spi
javax.net
javax.net.ssl
javax.print
javax.print.attribute
javax.print.attribute.standard
javax.print.event
javax.rmi
javax.rmi.CORBA
javax.rmi.ssl
javax.script
javax.security.auth
javax.security.auth.callback
javax.security.auth.kerberos
javax.security.auth.login
javax.security.auth.spi
javax.security.auth.x500
javax.security.cert
javax.security.sasl
javax.sound.midi
javax.sound.midi.spi
javax.sound.sampled
javax.sound.sampled.spi
javax.sql
javax.sql.rowset
javax.sql.rowset.serial
javax.sql.rowset.spi
javax.swing
javax.swing.border
javax.swing.colorchooser
javax.swing.event
javax.swing.filechooser
javax.swing.plaf
javax.swing.plaf.basic
javax.swing.plaf.metal
javax.swing.plaf.multi
javax.swing.plaf.synth
javax.swing.table
javax.swing.text
javax.swing.text.html
javax.swing.text.html.parser
javax.swing.text.rtf
javax.swing.tree
javax.swing.undo
javax.tools
javax.transaction
javax.transaction.xa
javax.xml
javax.xml.bind
javax.xml.bind.annotation
javax.xml.bind.annotation.adapters
javax.xml.bind.attachment
javax.xml.bind.helpers
javax.xml.bind.util
javax.xml.crypto
javax.xml.crypto.dom
javax.xml.crypto.dsig
javax.xml.crypto.dsig.dom
javax.xml.crypto.dsig.keyinfo
javax.xml.crypto.dsig.spec
javax.xml.datatype
javax.xml.namespace
javax.xml.parsers
javax.xml.soap
javax.xml.stream
javax.xml.stream.events
javax.xml.stream.util
javax.xml.transform
javax.xml.transform.dom
javax.xml.transform.sax
javax.xml.transform.stax
javax.xml.transform.stream
javax.xml.validation
javax.xml.ws
javax.xml.ws.handler
javax.xml.ws.handler.soap
javax.xml.ws.http
javax.xml.ws.soap
javax.xml.ws.spi
javax.xml.ws.wsaddressing
javax.xml.xpath
org.ietf.jgss
org.omg.CORBA
org.omg.CORBA.DynAnyPackage
org.omg.CORBA.ORBPackage
org.omg.CORBA.TypeCodePackage
org.omg.CORBA.portable
org.omg.CORBA_2_3
org.omg.CORBA_2_3.portable
org.omg.CosNaming
org.omg.CosNaming.NamingContextExtPackage
org.omg.CosNaming.NamingContextPackage
org.omg.Dynamic
org.omg.DynamicAny
org.omg.DynamicAny.DynAnyFactoryPackage
org.omg.DynamicAny.DynAnyPackage
org.omg.IOP
org.omg.IOP.CodecFactoryPackage
org.omg.IOP.CodecPackage
org.omg.Messaging
org.omg.PortableInterceptor
org.omg.PortableInterceptor.ORBInitInfoPackage
org.omg.PortableServer
org.omg.PortableServer.CurrentPackage
org.omg.PortableServer.POAManagerPackage
org.omg.PortableServer.POAPackage
org.omg.PortableServer.ServantLocatorPackage
org.omg.PortableServer.portable
org.omg.SendingContext
org.omg.stub.java.rmi
org.w3c.dom
org.w3c.dom.bootstrap
org.w3c.dom.events
org.w3c.dom.ls
org.xml.sax
org.xml.sax.ext
org.xml.sax.helpers
@@ -21,19 +21,19 @@
# This shell script will will run ./ant apply patches on all components
# present in the hot-deploy directory
if [ -f "../ofbiz.patch" ]; then
patch -p0 <../ofbiz.patch
OFBIZ_HOME="$( cd -P "$( dirname "$0" )" && pwd )"/..
if [ -f "$OFBIZ_HOME/../ofbiz.patch" ]; then
patch -p0 < $OFBIZ_HOME/../ofbiz.patch
fi
for f in hot-deploy/*
for f in $OFBIZ_HOME/hot-deploy/*
do
if [ "$f" != "hot-deploy/README.txt" ]; then
if [ "$f" != "$OFBIZ_HOME/hot-deploy/README.txt" ]; then
if [ -f "$f/patches/applications.patch" ]; then
echo apply patches for component $f
cd $f
../../ant apply-ofbiz-patches
(cd $f && ant apply-ofbiz-patches)
echo return code $?
cd ../../
fi
fi
done
+4 -1
View File
@@ -18,11 +18,14 @@
# under the License.
#####################################################################
# set the parent directory as OFBiz Home
OFBIZ_HOME="$( cd -P "$( dirname "$0" )" && pwd )"/..
# Properties (derby may need editing if the version has not been updated)
HM='-Dderby.system.home=runtime/data/derby'
PR='-Dij.protocol=jdbc:derby:'
DB='-Dij.database=ofbiz;create=true'
EE='framework/entity/lib/jdbc'
EE='$OFBIZ_HOME/framework/entity/lib/jdbc'
CP="-cp $EE/derby-10.8.1.2.jar:$EE/derbytools-10.8.1.2.jar"
# Command
View File
View File
+4
View File
@@ -18,6 +18,9 @@ rem specific language governing permissions and limitations
rem under the License.
rem #####################################################################
%~d0
set OFBIZ_HOME=%~p0..\
rem ### Console log file
rem set OFBIZ_LOG=runtime\logs\console.log
@@ -50,6 +53,7 @@ rem ### This one is for more of a debugging mode
rem "%JAVA_HOME%\bin\java" -Xms128M -Xmx512M -XX:MaxPermSize=512m -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -jar ofbiz.jar > runtime\logs\console.log
rem ### Simple easy to read line
cd %OFBIZ_HOME%
echo on
"%JAVA_HOME%\bin\java" -Xms128M -Xmx512M -XX:MaxPermSize=512m -jar ofbiz.jar
echo off
+4 -1
View File
@@ -22,6 +22,9 @@
ADMIN_PORT=10523
ADMIN_KEY=so3du5kasd5dn
# set the parent directory as OFBiz Home
OFBIZ_HOME="$( cd -P "$( dirname "$0" )" && pwd )"/..
# console log file
OFBIZ_LOG=runtime/logs/console.log
@@ -55,4 +58,4 @@ fi
# start ofbiz
#$JAVA $VMARGS -jar ofbiz.jar $* >>$OFBIZ_LOG 2>>$OFBIZ_LOG&
exec "$JAVA" $VMARGS -jar ofbiz.jar "$@"
(cd "$OFBIZ_HOME" && exec "$JAVA" $VMARGS -jar ofbiz.jar "$@")
@@ -18,6 +18,9 @@ rem specific language governing permissions and limitations
rem under the License.
rem #####################################################################
%~d0
set OFBIZ_HOME=%~p0..\
rem ### Console log file
rem set OFBIZ_LOG=runtime\logs\console.log
@@ -50,6 +53,7 @@ rem ### This one is for more of a debugging mode
rem "%JAVA_HOME%\bin\java" -Xms128M -Xmx512M -XX:MaxPermSize=512m -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -jar ofbiz.jar > runtime\logs\console.log
rem ### Simple easy to read line
cd %OFBIZ_HOME%
echo on
"%JAVA_HOME%\bin\java" -Xms128M -Xmx512M -XX:MaxPermSize=512m -jar ofbiz.jar -both
echo off
@@ -18,6 +18,9 @@ rem specific language governing permissions and limitations
rem under the License.
rem #####################################################################
%~d0
set OFBIZ_HOME=%~p0..\
rem ### Console log file
rem set OFBIZ_LOG=runtime\logs\console.log
@@ -50,6 +53,7 @@ rem ### This one is for more of a debugging mode
rem "%JAVA_HOME%\bin\java" -Xms128M -Xmx512M -XX:MaxPermSize=512m -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -jar ofbiz.jar > runtime\logs\console.log
rem ### Simple easy to read line
cd %OFBIZ_HOME%
echo on
"%JAVA_HOME%\bin\java" -Xms128M -Xmx512M -XX:MaxPermSize=512m -jar ofbiz.jar -pos
echo off
+3 -1
View File
@@ -21,6 +21,8 @@
# ofbiz.admin.key and ofbiz.admin.port must match that which OFBIZ was started with
####
OFBIZ_HOME="$( cd -P "$( dirname "$0" )" && pwd )"/..
# location of java executable
if [ -f "$JAVA_HOME/bin/java" ]; then
JAVA=$JAVA_HOME/bin/java
@@ -32,5 +34,5 @@ fi
ADMIN_PORT=10523
ADMIN_KEY=so3du5kasd5dn
$JAVA -Dofbiz.admin.port=$ADMIN_PORT -Dofbiz.admin.key=$ADMIN_KEY -jar ofbiz.jar -shutdown
(cd "$OFBIZ_HOME" && $JAVA -Dofbiz.admin.port=$ADMIN_PORT -Dofbiz.admin.key=$ADMIN_KEY -jar ofbiz.jar -shutdown)
@@ -27,7 +27,7 @@ rem SVN path of the hot-deploy folder, here is just a suggestion, to be adapted
set SVN_PATH=.../implementation/trunk/ofbiz/hot-deploy/
rem Go to (local) working copy of the hot-deploy folder
pushd hot-deploy
pushd ../hot-deploy
rem Get all files and directories of hot-deploy folder via SVN
for /f "tokens=*" %%i in ('svn list !SVN_PATH!') do (
@@ -21,9 +21,11 @@
# This shell script will do a 'svn up' on all directories
# present in the hot-deploy directory
for f in hot-deploy/*
OFBIZ_HOME="$( cd -P "$( dirname "$0" )" && pwd )"/..
for f in $OFBIZ_HOME/hot-deploy/*
do
if [ "$f" != "hot-deploy/README.txt" ]; then
if [ "$f" != "$OFBIZ_HOME/hot-deploy/README.txt" ]; then
echo svn update directory $f
svn up $f
fi