Is it possible to set java properties from within ruby?
like setting the XULRunnerPath in this example
jruby --server --fast
-J-Dorg.eclipse.swt.browser.XULRunnerPath=“e:\installs\xulrunner”
but within a .rb file?
Thanks.
-r
Is it possible to set java properties from within ruby?
like setting the XULRunnerPath in this example
jruby --server --fast
-J-Dorg.eclipse.swt.browser.XULRunnerPath=“e:\installs\xulrunner”
but within a .rb file?
Thanks.
-r
It is too late to set those from within a .rb file, since Java VM is
already running and its initial settings are already set.
–Vladimir
On Tue, Feb 23, 2010 at 1:38 AM, Roger P. [email protected]
wrote:
-r
Posted via http://www.ruby-forum.com/.
To unsubscribe from this list, please visit:
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Perhaps I’m missing something, but can’t you just do something like
this?
java.lang.System.setProperty('org.eclipse.swt.browser.XULRunnerPath',
'e:\installs\xulrunner')
As long as you start whatever is going to end up looking at that
property
after calling setProperty, everything should work, in theory. I use
this
same set-up for Solr…
2010/2/23 Vladimir S. [email protected]
Ah, indeed! I misread the question and thought that Roger wanted to
set not only the property, but also --server and --fast modes…
For properties, that’s not problem (assuming that you set them early
enough).
–Vladimir
On Tue, Feb 23, 2010 at 8:40 AM, Don W. [email protected] wrote:
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Yes, setting them early enough is the key; most libraries will only
try to read them once and never look at them again.
On Tue, Feb 23, 2010 at 1:58 AM, Vladimir S. [email protected]
wrote:
     ‘e:\installs\xulrunner’)
On Tue, Feb 23, 2010 at 1:38 AM, Roger P. [email protected] wrote:
-r
To unsubscribe from this list, please visit:
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs