On Tuesday 25 March 2003 7:40 pm, Ricardo Argüello wrote:
> I know IBM's JVM doesn't support it, so the question here is how do we take
> advantage of this option, present only in Sun's JVM, without stoping JBoss
> to work with other JVMs?
>
> 1) Comment the option, and document its use.
> 2) Autodetect which JVM are we using.

This is my first bit of windows scripting in nearly 10 years, but I was able 
to simulate the test using this:

        java -version 2>hotspot.txt
        find /I "HotSpot" hotspot.txt
        if errorlevel 0 set HOTSPOT="-server"

Be sure you pickup the windows version of find, and not the cygwin version if 
you do this.

I did this on Windows2000, so it should at least work there.I don't know about 
earlier versions of windows. I found references on the web saying that you 
can't redirect STDERR on some version of windows. If that is the case, then 
maybe you could incorporate this as well:

        http://www.teaser.fr/~amajorel/stderr/

Wow. I just posted Windows code... I feel unclean.  :)

-- Ian

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ian Duggan      [EMAIL PROTECTED]       http://www.demandtec.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

DemandTec, Inc.
1 Circle Star Way Suite 200 
San Carlos, CA 94070 




-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to