wsadmin goal does not find script when full path to <script> contains spaces
----------------------------------------------------------------------------

                 Key: MWAS-41
                 URL: http://jira.codehaus.org/browse/MWAS-41
             Project: Maven 2.x WebSphere 6 Plugin
          Issue Type: Bug
    Affects Versions: 1.1
         Environment: Windows
            Reporter: Jason Peck
            Assignee: David J. M. Karlsen
            Priority: Minor


When using the wsadmin goal to execute a custom script as defined by the 
<script> parameter, the command line built by the plugin does not seem to quote 
the command line options to the wsadmin utility.  When the full path to the 
script contains spaces, wsadmin is unable to fine the specified script.

pom.xml

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>was6-maven-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<id>Restart App</id>
<phase>pre-integration-test</phase>
<goals>
<goal>wsAdmin</goal>
</goals>
</execution>
</executions>
<configuration>
<wasHome>${websphere.home.dir}</wasHome>
<user>${websphere.username}</user>
<password>${websphere.password}</password>
<updateExisting>false</updateExisting>
<language>jython</language>
<script>websphere-deploy.jython</script>
<args>
<param>restartApp</param>
<param>${project.build.finalName}</param>
<param>../${project.build.finalName}.ear</param>
</args>
</configuration>
</plugin>

full path to websphere-deploy.jython

C:\cc views\biz.ws.utility\UtilityWebServiceEAR\websphere-deploy.jython

error:

[INFO] [was6:wsAdmin {execution: Restart App}]
[INFO] Buildfile: C:\cc does not exist!
[ERROR] Build failed
[INFO] Return code: 0

-- 
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