Hi Leif, Here's a simple unix run.sh script.
Cheers, Marcus On Mon, Mar 04, 2002 at 06:07:12PM +0900, Leif Mortenson wrote: > Ok, an example application for the new altprofile package can now be > found under the examples/altprofile directory. > > cd examples/altprofile > build > cd bin > run.bat > > Could someone please add some unix scripts. > > Thanks > Leif > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- ..... ,,$$$$$$$$$, Marcus Crafter ;$' '$$$$: Computer Systems Engineer $: $$$$: ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$, _/\ &&:' 60327 Frankfurt Germany ' /( &&& \_&&&&' &&&&. &&&&&&&:
#!/bin/bash # # Startup script. # # # Determine if JAVA_HOME is set and if so then use it # if [ -z "$JAVA_HOME" ] ; then JAVA=`which java` if [ -z "$JAVA" ] ; then echo "Cannot find JAVA. Please set your PATH." exit 1 fi JAVA_BINDIR=`dirname $JAVA` JAVA_HOME=$JAVA_BINDIR/.. fi if [ "$JAVACMD" = "" ] ; then # it may be defined in env - including flags!! JAVACMD=$JAVA_HOME/bin/java fi # Main.java has hard coded config values so this script must be run from # altprofile/bin (any better ideas ?) EXAMPLE_HOME=../.. # # Build the runtime classpath # for i in ${EXAMPLE_HOME}/commonlib/*.jar ; do CP=${CP}:$i done CP=${CP}:../lib/jdbcdatasource.jar:../build/classes #echo $CP # Run the example application $JAVACMD -classpath $CP org.apache.avalon.examples.altprofile.Main $@
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>