It looks like I'm effectively calling wsAdmin with my script and parameters
specified. However my arguments are not passed to the script. I saw this issue
was created in http://jira.codehaus.org/browse/MWAS-3 but all it says is that
the issue was fixed (not sure how).
I have the following pom.xml:
...<snip>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>was6-maven-plugin</artifactId>
<version>1.1.1</version>
<executions>
<execution>
<id>stop-clones</id>
<phase>integration-test</phase>
<goals>
<goal>wsAdmin</goal>
</goals>
<configuration>
<wasHome>${was6.wasHome}</wasHome>
<language>${was6.language}</language>
<username>${was6.username}</username>
<password>${was6.password}</password>
<server>${was6.server}</server>
<node>${was6.node}</node>
<targetCluster>${was6.targetCluster}</targetCluster>
<targetCell>${was6.targetCell}</targetCell>
<targetNode>${was6.targetNode}</targetNode>
<targetServer>${was6.targetServer}</targetServer>
<failOnError>${was6.failOnError}</failOnError>
<updateExisting>${was6.updateExisting}</updateExisting>
<conntype>${was6.conntype}</conntype>
<port>${was6.port}</port>
<verbose>${was6.verbose}</verbose>
<language>${was6.language}</language>
<script>${was6.scriptFile}</script>
<args>
<param>${was6.targetCluster}</param>
<param>${was6.targetCell}</param>
</args>
</configuration>
</execution>
</executions>
</plugin>
...<snip>
the wsant file contains the args:
<snip>...
<target name="wsAdmin">
<taskdef name="wsAdmin" classname="com.ibm.websphere.ant.tasks.WsAdmin"/>
<!--
fileEncoding=""
-->
<wsAdmin wasHome="C:\Program Files\IBM\SDP\runtimes\base_v61"
script=""C:\Program Files\IBM\SDP\runtimes\base_v61\profiles\AppS
vr01\scripts\stopClones.py"" lang="jython" conntype="SOAP"
host="xxx.xxx.xxx.xxxx" port="10003" jvmMaxMemory="256M" failonerror="true">
<arg value="MyCluster"/>
<arg value="MyCell"/>
</wsAdmin>
</target>
...</snip>
and the following output from the maven execution where my script and arguments
look like their being read:
[INFO] [wsadmin] 'com.ibm.wsspi.bootstrap.WSPreLauncher'
[INFO] [wsadmin] '-nosplash'
[INFO] [wsadmin] '-application'
[INFO] [wsadmin] 'com.ibm.ws.bootstrap.WSLauncher'
[INFO] [wsadmin] 'com.ibm.ws.runtime.WsAdmin'
[INFO] [wsadmin] '-f'
[INFO] [wsadmin] '"C:\Program
Files\IBM\SDP\runtimes\base_v61\profiles\AppSvr01\scripts\stopClones.py"'
[INFO] [wsadmin] '-lang'
[INFO] [wsadmin] 'jython'
[INFO] [wsadmin] '-conntype'
[INFO] [wsadmin] 'SOAP'
[INFO] [wsadmin] '-host'
[INFO] [wsadmin] 'was01.lab01.fls01.consert.com'
[INFO] [wsadmin] '-port'
[INFO] [wsadmin] '10003'
[INFO] [wsadmin] 'Consert01OpsCenterCluster'
[INFO] [wsadmin] 'Consert01Cell'
[INFO] [wsadmin]
[INFO] [wsadmin] The ' characters around the executable and arguments are
[INFO] [wsadmin] not part of the command.
It's just that nothing gets passed to the script apparently. Is there a
fix/workaround for this?
Thanks,
Matt