Unable to pass windows-path as an argument to jython script
-----------------------------------------------------------

                 Key: MWAS-66
                 URL: http://jira.codehaus.org/browse/MWAS-66
             Project: Maven 2.x WebSphere 6 Plugin
          Issue Type: Bug
    Affects Versions: 1.1.1
            Reporter: Igor Nikolaev
            Assignee: David J. M. Karlsen


I'm trying to execute wsAdmin task and pass it a script and args configuration 
options.

Here is sample (some configuration options skipped):

<plugin>
  <groupId>org.codehaus.mojo</groupId>
  <artifactId>was6-maven-plugin</artifactId>
  <version>1.1.1</version>
  <executions>
    <execution>
      <id>ear-deploy</id>
      <phase>pre-integration-test</phase>
      <goals>
        <goal>wsAdmin</goal>
      </goals>
    </execution>
  </executions>
  <configuration>
    <applicationName>dep-ear</applicationName>
    <wasHome>skipped</wasHome>
    <verbose>true</verbose>
    <!-- more options skipped -->
    <language>jython</language>
    <script>${basedir}/src/main/scripts/redeploy.py</script>
    <args>
      <arg>${basedir}/target/${project.build.finalName}.ear</arg>
    </args>
  </configuration>
</plugin>

This will execute with an error if ${basedir} contains \x sequence which is 
treated as the beginning of hexadecimal number. For example: ${basedir} = 
D:\project\xProject\

My proposal is to escape backslashes in arguments.

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