|
From: Sal I. <sal...@sy...> - 2003-11-18 02:58:33
|
the wrapper supports "*.jar". example from my jboss dev wrapper.conf: wrapper.java.classpath.1=../lib/*.jar wrapper.java.classpath.2=../bin/run.jar wrapper.java.classpath.3=%JAVA_HOME%/lib/tools.jar -----Original Message----- From: wra...@li... [mailto:wra...@li...]On Behalf Of Jeff Wishnie Sent: Monday, November 17, 2003 6:32 PM To: wra...@li... Subject: [Wrapper-user] Specifiying ClassPath in a single line? 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=../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? e.g. wrapper.java.classpathdir=../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=-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 |