From: dion g. <dio...@us...> - 2004-08-11 05:37:16
|
diongillard 04/08/10 22:37:10 Modified: was5/xdocs properties.xml was5 plugin.jelly plugin.properties Log: Add script args Revision Changes Path 1.2 +76 -0 maven-plugins/was5/xdocs/properties.xml Index: properties.xml =================================================================== RCS file: /cvsroot/maven-plugins/maven-plugins/was5/xdocs/properties.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- properties.xml 9 Mar 2004 11:36:25 -0000 1.1 +++ properties.xml 11 Aug 2004 05:37:10 -0000 1.2 @@ -39,5 +39,81 @@ </tr> </table> </section> + <section name="Script settings"> + <table> + <tr> + <th>Property</th> + <th>Optional?</th> + <th>Description</th> + </tr> + <tr> + <td>maven.was5.script.args</td> + <td>Yes</td> + <td> + A list of variables (space delimited) whose values will be passed + as arguments to the script. + </td> + </tr> + <tr> + <td>maven.was5.script.conntype</td> + <td>Yes</td> + <td> + The type of connection to be used. The Default type is SOAP. The + valid values are SOAP, RMI, and NONE. NONE means that no server + connection is made. + </td> + </tr> + <tr> + <td>maven.was5.script.host</td> + <td>Yes</td> + <td> + Only specified if the conntype is specified. It contains the hostname of the machine to connect to. + </td> + </tr> + <tr> + <td>maven.was5.script.lang</td> + <td>Yes</td> + <td> + the language to be used to interpret scripts. + The supported values are <code>jacl</code>, <code>javascript</code>, + and <code>jpython</code>. + </td> + </tr> + <tr> + <td>maven.was5.script.password</td> + <td>Yes</td> + <td> + The password to authenticate with the server. + </td> + </tr> + <tr> + <td>maven.was5.script.port</td> + <td>Yes</td> + <td> + Only specified if the conntype is specified. This is the port on the host to connect to. + </td> + </tr> + <tr> + <td>maven.was5.script.profile</td> + <td>Yes</td> + <td> + A script file to be executed before processing begins. + </td> + </tr> + <tr> + <td>maven.was5.script.properties</td> + <td>Yes</td> + <td> + A java properties file containing attributes to set in the JVM System properties. + </td> + </tr> + <tr> + <td>maven.was5.script.username</td> + <td>Yes</td> + <td> + The user ID to authenticate with the server. + </td> + </tr> + </table> </body> </document> \ No newline at end of file 1.9 +10 -0 maven-plugins/was5/plugin.jelly Index: plugin.jelly =================================================================== RCS file: /cvsroot/maven-plugins/maven-plugins/was5/plugin.jelly,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- plugin.jelly 4 Aug 2004 07:15:16 -0000 1.8 +++ plugin.jelly 11 Aug 2004 05:37:10 -0000 1.9 @@ -1,5 +1,6 @@ <project default="serverStatus" xmlns:j="jelly:core" + xmlns:u="jelly:util" xmlns:ant="jelly:ant" xmlns:assert="assert" xmlns:maven="jelly:maven"> @@ -229,6 +230,8 @@ <maven:paramCheck fail="yes" value="${script}" message="ERROR: the 'script' variable is not set"/> <maven:paramCheck fail="yes" value="${maven.was5.home}" message="ERROR: maven.was5.home is not set"/> <assert:assertFileExists file="${maven.was5.home}" msg=" ERROR: maven.was5.home is not a valid directory"/> + <!-- grab args into a non dotted variable --> + <j:set var="args" value="${maven.was5.script.args}"/> <ant:taskdef name="wsAdmin" classname="com.ibm.websphere.ant.tasks.WsAdmin" classpath="${maven.was5.home}/lib/wsanttasks.jar"/> <ant:wsAdmin> <ant:setProperty name="conntype" value="${maven.was5.script.conntype}"/> @@ -241,6 +244,13 @@ <ant:setProperty name="script" value="${script}"/> <ant:setProperty name="username" value="${maven.was5.script.username}"/> <ant:setProperty name="wasHome" value="${maven.was5.home}"/> + <!-- set args --> + <j:if test="${!empty(args)}"> + <u:tokenize var="argList" delim=" ">${args}</u:tokenize> + <j:forEach var="arg" items="${argList}"> + <ant:arg value="${context.getVariable(arg)}"/> + </j:forEach> + </j:if> </ant:wsAdmin> </goal> </project> \ No newline at end of file 1.4 +1 -0 maven-plugins/was5/plugin.properties Index: plugin.properties =================================================================== RCS file: /cvsroot/maven-plugins/maven-plugins/was5/plugin.properties,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- plugin.properties 30 Jul 2004 06:03:21 -0000 1.3 +++ plugin.properties 11 Aug 2004 05:37:10 -0000 1.4 @@ -101,6 +101,7 @@ maven.was5.sleep.stop=30 # run script +maven.was5.script.args= maven.was5.script.conntype=${maven.was5.conntype} maven.was5.script.host=${maven.was5.host} maven.was5.script.lang=jython |