|
From: Leif M. <le...@ta...> - 2008-07-30 17:04:12
|
Peter, It is possible, but the default shell script will have to be modified. Basically, you have to modify the command line to launch the Wrapper process within the script. Any Wrapper configuration property can be specified from the command line so you would have modify that command line to include the necessary wrapper.java.additional.n properties. http://wrapper.tanukisoftware.org/doc/english/props-command-line.html http://wrapper.tanukisoftware.org/doc/english/prop-java-additional-n.html Granted this would be complicated if the number of possible command line parameters is variable. If you thought you could have up to 10 for example, you would have to give those 10 properties default values like: wrapper.java.additional.1=-Dfoo1=foo wrapper.java.additional.2=-Dfoo2=foo wrapper.java.additional.3=-Dfoo3=foo I will try to think of a cleaner way of allowing this in a future version. Cheers, Leif On Thu, Jul 31, 2008 at 1:53 AM, Hayes, Peter <Pet...@fm...> wrote: > Is it possible to start a wrapper application specifying additional vm > parameters and application arguments to the process on the command line? > > I'd like to do something like this : > > app -Dlog.level=DEBUG start -file path/to/file.txt > > The syntax would be : > > <script> [jvm argument]... (start|console) [argument]... > > Thanks, > > Peter Hayes > Architecture & Shared Technology Services | Fidelity Investments > Management Technology > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > |