RFC: Netx - Support VM arguments specified in the JNLP file
Omair Majid
omajid at redhat.com
Thu Jun 4 07:37:04 PDT 2009
Deepak Bhole wrote:
> * Omair Majid <omajid at redhat.com> [2009-06-03 13:41]:
>
> Looks good. Couple of things though:
>
> 1. getForksAlowed() is spelled incorrectly..
Fixed.
> 2. There is a lot of unnecessary wrapping/unwrapping going on with the
> whole convert array to list, add to list, convert list to array and
> iterate over array. Why not just change initialArgs to be a list, and
> then just use that list everywhere and iterate over it when launching the
> new vm?
Does the new patch look ok?
ChangeLog:
2009-06-04 Omair Majid <omajid at redhat.com>
* rt/net/sourceforge/jnlp/JNLPFile.java
(needsNewJVM): New function. Returns true if the JNLP file requires
creating a new JVM.
(getNewVMArgs): New function. Returns arguments to pass to the new
JVM.
* rt/net/sourceforge/jnlp/Launcher.java
(launchExternal): Modify to take in arguments to pass to the JVM and
arguments to pass to the Java program. Try to use the local file to
launch this instance if possible.
(launchExternal): Modify to take in arguments to pass to the JVM and
arguments to pass to the Java program. Launch Netx with the with the
appropriate arguments.
(launchApplication): If needed, launch a new JVM and pass along the
Netx arguments.
* rt/net/sourceforge/jnlp/resources/Messages.properties:
Add BXnofork.
* rt/net/sourceforge/jnlp/runtime/Boot/java:
Add -Xnofork to helpMessage
(main): Check for '-Xnofork'. Set initial arguments.
* rt/net/sourceforge/jnlp/runtime/JNLPRuntime.java:
Add forksAllowed to store whether creating a new JVM is allowed. Add
initialArguments to store the arguments to Netx.
(getForksAllowed): New function. Check if creating a new JVM is
allowed.
(setForksAllowed): New function. Set whether creating a JVM is
allowed.
(setInitialArguments): New function. Store the arguments to Netx.
(getInitialArguments): New function. Return the arguments passed to
Netx.
* rt/net/sourceforge/jnlp/services/XBasicService.java
(showDocument): Fix call to launchExternal to match the new
semantics.
Cheers,
Omair
-------------- next part --------------
A non-text attachment was scrubbed...
Name: netx-jvm-args.patch
Type: text/x-patch
Size: 12869 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20090604/236aad18/netx-jvm-args.patch
More information about the distro-pkg-dev
mailing list