[ 
http://jira.codehaus.org/browse/MJBOSS-52?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=247261#action_247261
 ] 

Paul Gier commented on MJBOSS-52:
---------------------------------

In Linux the best way seems to be using the envp parameter and running the 
shell script directly as you mentioned.  For Windows the first problem I ran 
into is that a .bat file cannot be called directly, so you have to call 
"cmd.exe /C run.bat".  The other problem is that the envp parameter to 
Runtime.exec() didn't seem to work on Windows, so I had to add the "set 
JBOSS_HOME=/path" like it was before.  Since there are so many differences I 
decided to just split the Windows and Unix command handling.

The changes are in 
[r13279|http://fisheye.codehaus.org/changelog/mojo/trunk/mojo/jboss-maven-plugin?cs=13279]
 and 
[r13280|http://fisheye.codehaus.org/changelog/mojo/trunk/mojo/jboss-maven-plugin?cs=13280].

> Command arguments not passed correctly to run.sh/shutdown.sh on unix
> --------------------------------------------------------------------
>
>                 Key: MJBOSS-52
>                 URL: http://jira.codehaus.org/browse/MJBOSS-52
>             Project: Maven 2.x JBoss Plugin
>          Issue Type: Bug
>    Affects Versions: 1.4.1
>         Environment: java version "1.6.0_20"
> Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065)
> Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode)
> and 
> java version "1.5.0_24"
> Java(TM) 2 Runtime Environment, Standard Edition (build 
> 1.5.0_24-b02-357-10M3065)
> Java HotSpot(TM) Client VM (build 1.5.0_24-149, mixed mode, sharing)
> MacOS X 10.6.4
>            Reporter: Stephen Coy
>            Assignee: Paul Gier
>             Fix For: 1.5.0
>
>         Attachments: jboss-maven-plugin.patch
>
>
> The current code base passes arguments to the shell scripts as a single space 
> delimited string. This is interpreted as a single argument in a unix 
> environment.

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

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to