jboss plugin incompatible with jboss AS 6 - mojo produces incorrect cmd
invocation when starting
------------------------------------------------------------------------------------------------
Key: MJBOSS-55
URL: http://jira.codehaus.org/browse/MJBOSS-55
Project: Maven 2.x JBoss Plugin
Issue Type: Bug
Affects Versions: 1.4.1
Environment: windows xp, JDK 6
Reporter: hatchetman82
AbstractJBossServerMojo.java, line 113.
the code is constructing the cmd invocation to launch jboss. the string
produced is something along the lines of: ...set JBOSS_HOME="whatever" &
run.bat ... notice the space between the "&" seperator.
now, combine this with the following "feature" of the window command shell (at
least on xp):
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\>set A="123" & set B="456"
C:\>echo x%A%x
x"123" x
C:\>
notice the space that made its way into A. the same effect causes the
JBOSS_HOME produced by the above java code to contain a space AFTER the closing
quote of JBOSS_HOME and it goes downhill from there (run.bat fails to locate
run.jar because the path to it suddenly has a space and quote in it).
the simplest way to solve this whild be to have the "&" directly after the
closing quote of JBOSS_HOME (i've tested it and this indeed solves the issue).
a demonstration:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\>set A="abc"&set B="def"
C:\>echo x%A%x
x"abc"x
C:\>
--
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