|
From: Jeff W. <je...@wi...> - 2003-11-18 02:31:41
|
Hi folks, I have an application that I am trying to wrap in the Service Wrapper = and I'm having a problem with specifying classpath. Currently, I have an ANT target which loops through a lib directory = creating a single classpath argument which I pass to my executable = script via the -cp argument to the java command (java -cp @classpath@) I do _not_ know in advance how many jars are in my lib directory. So my problem is how to encode this info in the wrapper.conf file Questions: 1. is there a way to set a multi-item classpath in wrapper.conf as a = _single_ property? e.g. = wrapper.java.classpath=3D../lib/foo.jar:../lib/bar.jar:../lib/baz.jar 2. is there a way to tell the wrapper to add _all_ jars in a particular = directory to the classpath?=20 e.g. wrapper.java.classpathdir=3D../lib 3. What happens if I specify my classpath with a wrapper.java.additional = line? How will this interact with the wrapper.java.classpath entries? e.g. wrapper.java.additional.1=3D-cp = ../lib/foo.jar:../lib/bar.jar:../lib/baz.jar Thanks for any help--hopefully one of these approaches works, 'cause = generating multiple entries and _counting_ in ANT (to produce = wrapper.java.classpath.N entries) is gonna be a bitch. - Jeff |