[jboss-jira] [JBoss JIRA] Commented: (JBAS-5234) Include the Windows Service Runner binary (jbossvc.exe) in the distro

Mladen Turk (JIRA) jira-events at lists.jboss.org
Mon Mar 17 12:21:51 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBAS-5234?page=comments#action_12403181 ] 
            
Mladen Turk commented on JBAS-5234:
-----------------------------------

Fixed run.bat

We had few problems with run.bat

1. Any java option that is enclosed in quotes and contains PATH if the PATH ends up with trailing backslash (valid)
    is failing. -Djava.xxx="%PATH%" was evaluated in that case to "C:\path\" and that breaks because java.exe
    is parsing the quotes and finds eacape '\' char. The fix is to add the JBOSS_HOME\bin to the end of the
   PATH (implied by default anyhow) that assuers that it doesn't end with \.
2. Make run.bat variable set uniform inside if clause
    Instead using SET FOO=%BAR% use SET "FOO=%BAR%".
    This fixes the evaluation of BAR which value contains ( or ) chars.
3. Fix -server option testing.
    java -version on new JVM's always returns HotSpot string we used for figuring
    if the JVM supports -server. Instead use java -server -version and check if there
    is valid version string returned.
4. Allow paralell native installations and use the one corresponding to the JVM used
    and host CPU. If we are on the 64-bit system detect if the JVM is 64 or 32 bit
    (reported from java -version)  and construct the path to the native according to that.
    This allows a single native binary for windows that has multiple CPU builds.
5. Beautify the run.bat so it's consistent about syntax and code style used


> Include the Windows Service Runner binary (jbossvc.exe) in the distro
> ---------------------------------------------------------------------
>
>                 Key: JBAS-5234
>                 URL: http://jira.jboss.com/jira/browse/JBAS-5234
>             Project: JBoss Application Server
>          Issue Type: Task
>      Security Level: Public(Everyone can see) 
>          Components: Other
>            Reporter: Dimitris Andreadis
>         Assigned To: Dimitris Andreadis
>            Priority: Critical
>             Fix For: JBossAS-5.0.0.CR1
>
>
> Include jbossvc.exe in the bin directory to allow jboss to start/stop as a windows service.
> http://labs.jboss.com/jbossweb/install/service.html

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list