Uh,
On Tue, 08 Dec 2009 02:04:55 +0100, Hakan Tandogan <hakan at gurkensalat.com>
wrote:
> Brett Henderson wrote:
>> If it isn't too invasive it should be fine. I guess the best way is to
>> try it out and see if any problems crop up.
>
> I committed my changes to use the classworlds launcher a few hours ago.
>
> The configuration is in the file config/plexus.conf and instructs the
> launcher to load all jars from lib and lib/default ; I also modified the
> windows and unix scripts to use the classworlds launcher.
I'm really out of luck today. That didn't work on my virgin build of
osmosis, either.
First of all, it couldn't find the plexus-classworlds*.jar, then it was
looking for a lib/plexus.conf instead of a config/plexus.conf and, finally,
the osmosis.jar itself was missing in the plexus.conf. The attached patch
finally did the trick.
Final point to note: the paths in plexus.conf are relative to the
current working directory. Launching osmosis from anywhere else than
the root of the source directory results in a FileNotFoundException.
Sarah
Index: config/plexus.conf
===================================================================
--- config/plexus.conf (revision 19027)
+++ config/plexus.conf (working copy)
@@ -3,3 +3,4 @@
[osmosis.core]
load lib/*.jar
load lib/default/*.jar
+load osmosis.jar
Index: ivy.xml
===================================================================
--- ivy.xml (revision 19027)
+++ ivy.xml (working copy)
@@ -19,6 +19,7 @@
<dependency org="postgresql" name="postgresql" rev="8.3-603.jdbc4" conf="compile->default"/>
<dependency org="net.sf.jpf" name="jpf" rev="latest.integration" conf="compile->default"/>
+ <dependency org="org.codehaus.plexus" name="plexus-classworlds" rev="2.2.2" conf="default->default"/>
<dependency org="org.codehaus.woodstox" name="woodstox-core-lgpl" rev="4.0.3" conf="default->default">
<!-- Stax is included in the JDK from java 1.6 onwards. -->
<exclude module="stax-api"/>
Index: bin/osmosis
===================================================================
--- bin/osmosis (revision 19027)
+++ bin/osmosis (working copy)
@@ -89,6 +89,6 @@
MYAPP_CLASSPATH=$MYAPP_HOME/lib/default/plexus-classworlds-*.jar
MAINCLASS=org.codehaus.classworlds.Launcher
-EXEC="$JAVACMD $JAVACMD_OPTIONS -cp $MYAPP_CLASSPATH -Dclassworlds.conf=$MYAPP_HOME/lib/plexus.conf $MAINCLASS $OSMOSIS_OPTIONS $@"
+EXEC="$JAVACMD $JAVACMD_OPTIONS -cp $MYAPP_CLASSPATH -Dclassworlds.conf=$MYAPP_HOME/config/plexus.conf $MAINCLASS $OSMOSIS_OPTIONS $@"
exec $EXEC
_______________________________________________
osmosis-dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/osmosis-dev