|
From: Leif M. <le...@ta...> - 2007-06-24 00:42:17
|
Merri, The Wrapper is not able to read the values from your ini file. But it will work off of a master configuration file. You may be able to do something where you generate a wrapper-master.conf file with the values in your ini file to avoid having to make changes in two places. wrapper-master.conf: --- set.JRE_PATH=C:/jre/bin/java.exe set.PROP_1=C:/some_path/to_some_file set.PROP_2=C:/another_path/1.0 --- wrapper.conf: --- #include ../conf/wrapper-master.conf wrapper.java.command=%JRE_PATH% wrapper.java.classpath.1=%PROP_2%/wrapper.jar wrapper.java.classpath.2=%PROP_2%/xyz.jar wrapper.java.additional.1=-Dcom.testing.value=%PROP_1%/abc/xyz --- Cheers, Leif Merri Jensen wrote: > I'm not sure of the appropriate forum for this question so I thought I would start here first. > > The java applications I support use a common launcher.exe and launcher.sh file to execute. We have an ini formatted file that drives the generic launcher where we list the java location, the command line arguments, and the working directory. We also use the Service Wrapper to start some of these applications as a service. > > We may have multiple apps deployed on the same machine, so we have implemented the launchers in such a way as to allow us to use a master config file. Basically, it's a file that contains a list of variables and their values (they are mostly paths) that we can then reference by variable name in the ini files for each of the app launchers. This creates a kind of lookthrough so that our customers are able to update the value of a common variable in the master config file without having to go and update each individual application ini file. > > I need to be able to do this same kind of "lookthrough" with the wrapper.conf files we have created for the service launchers. I have read the information about the cascading configuration files, but I'm not sure if the options have to match exactly in the included file. Our options do not match, so I'm trying to see if there is a way to make this work without having to make code changes. I've included a sample of what I am looking to do is below. > > Master.config file: > > [properties] > JRE_PATH=C:/jre/bin/java.exe > PROP_1=C:/some_path/to_some_file > PROP_2=C:/another_path/1.0 > > > Wrapper.conf: > > wrapper.java.command=<JRE_PATH> > wrapper.java.classpath.1=<PROP_2>/wrapper.jar > wrapper.java.classpath.2=<PROP_2>/xyz.jar > wrapper.java.additional.1=-Dcom.testing.value=<PROP_1>/abc/xyz > > > Is this even possible? > > Thanks for any and all assistance with this. > -Merri > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > |