Start work on v1.1

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114681 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
dion 2004-02-05 05:50:23 +00:00
parent 797f8c0543
commit 578cf58268
6 changed files with 141 additions and 81 deletions

View File

@ -1,23 +1,28 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<project <project
xmlns:define="jelly:define" xmlns:define="jelly:define"
xmlns:j="jelly:core" xmlns:j="jelly:core"
xmlns:u="jelly:util" xmlns:u="jelly:util"
xmlns:was40wscp="was40wscp"> xmlns:was40wscp="was40wscp">
<!-- set up maven.was40.script --> <!-- set up maven.was40.script -->
<j:choose> <j:choose>
<j:when test="${systemScope['os.name'].startsWith('Windows')}"> <j:when test="${systemScope['os.name'].startsWith('Windows')}">
<j:set var="maven.was40.script" value="${maven.was40.wscpExe}.bat"/> <j:set var="maven.was40.script" value="${maven.was40.wscpExe}.bat"/>
<j:set var="maven.was40.startServer.script" <j:set var="maven.was40.startServer.script"
value="${maven.was40.bin}/adminserver.bat" /> value="${maven.was40.bin}/adminserver.bat" />
<j:set var="maven.was40.plugin" value="${maven.was40.bin}/GenPluginCfg.bat" />
<j:set var="maven.was40.dumpNameSpace" value="${maven.was40.bin}/dumpNameSpace.bat" />
<j:set var="maven.was40.earExpander" value="${maven.was40.bin}/EARExpander.bat" />
</j:when> </j:when>
<j:otherwise> <j:otherwise>
<j:set var="maven.was40.script" value="${maven.was40.wscpExe}.sh"/> <j:set var="maven.was40.script" value="${maven.was40.wscpExe}.sh"/>
<j:set var="maven.was40.startServer.script" <j:set var="maven.was40.startServer.script"
value="${maven.was40.startNode}.sh" /> value="${maven.was40.startNode}.sh" />
<j:set var="maven.was40.plugin" value="${maven.was40.bin}/GenPluginCfg.sh" />
<j:set var="maven.was40.hackplug.hic" value="${maven.was40.bin}/hackplug.sh" />
<j:set var="maven.was40.dumpNameSpace" value="${maven.was40.bin}/dumpNameSpace.sh" />
<j:set var="maven.was40.earExpander" value="${maven.was40.bin}/EARExpander.sh" />
</j:otherwise> </j:otherwise>
</j:choose> </j:choose>
@ -34,15 +39,38 @@
<fail>attribute command must be provided</fail> <fail>attribute command must be provided</fail>
</j:if> </j:if>
<!--
wscp.qualifyHomeName=true
wscp.remotePasswordFile=
wscp.remoteConnectionTimeout=300
wscp.remoteConnectionsAllowed=true
wscp.remoteHostListAccept=
wscp.remoteHostListReject=
#
# set traceString to enable tracing
#
# wscp.traceString=com.ibm.ejs.sm.client.ui.desc.*=all=enabled
# wscp.traceString=com.ibm.ejs.sm.ejscp.*=all=enabled
##
# Typically, these need to be set if only ContextExtension is loaded
# (otherwise, EjscpExtension sets them as noted above)
#
# com.ibm.CORBA.BootstrapHost=pc-dev1
# com.ibm.CORBA.BootstrapPort=900
# java.naming.factory.initial=com.ibm.ejs.ns.jndi.CNInitialContextFactory
-->
<!-- delete the properties file here and recreate it --> <!-- delete the properties file here and recreate it -->
<delete file="${java.io.tmpdir}/was40.properties" /> <delete file="${java.io.tmpdir}/was40.properties" />
<j:file name="${java.io.tmpdir}/was40.properties" omitXmlDeclaration="true" escapeText="false"> <j:file name="${java.io.tmpdir}/was40.properties" omitXmlDeclaration="true" escapeText="false">
wscp.hostName=${maven.was40.node} wscp.hostName=${maven.was40.node}
wscp.hostPort=${maven.was40.hostPort}
wscp.primaryNode=${maven.was40.primaryNode}
</j:file> </j:file>
<!-- properties file -->
<u:file name="${java.io.tmpdir}/was40.properties" var="props" /> <u:file name="${java.io.tmpdir}/was40.properties" var="props" />
<echo>Executing '${command}' using wscp</echo> <echo>Executing '${command}' using wscp</echo>
<exec executable="${maven.was40.script}" outputproperty="results"> <exec executable="${maven.was40.script}" outputproperty="results">
<arg value="-p" /> <arg value="-p" />
<arg value="${props.canonicalPath}" /> <arg value="${props.canonicalPath}" />
@ -50,15 +78,14 @@
<arg value="${command}" /> <arg value="${command}" />
</exec> </exec>
<!-- test if arguments have been passed -->
<j:if test="${empty(var)}"> <j:if test="${empty(var)}">
<echo>Result: ${results}</echo> <echo>${results}</echo>
</j:if> </j:if>
<j:if test="${!empty(var)}"> <j:if test="${!empty(var)}">
<j:set scope="parent" var="${var}" value="${results}" /> <j:set scope="parent" var="${var}" value="${results}" />
</j:if> </j:if>
</define:tag> </define:tag>
</define:taglib> </define:taglib>
<!-- default goal --> <!-- default goal -->
@ -68,98 +95,121 @@
</goal> </goal>
<goal name="was40:start" <goal name="was40:start"
description="Starts was40 Application Server"> description="Starts the specified node.">
<echo>Staring Node: '${maven.was40.node}'</echo>
<echo>Please Wait... Starting node</echo>
<exec executable="${maven.was40.startServer.script}" /> <exec executable="${maven.was40.startServer.script}" />
</goal> </goal>
<goal name="was40:stop" <goal name="was40:stop"
description="Stops a websphere node"> description="Stops the specified websphere node.">
<echo>Stopping node: '${maven.was40.node}'</echo>
<echo>Please Wait... Stopping node</echo> <was40wscp:exec command="${maven.was40.stopNode}" />
<was40wscp:exec command="${maven.was40.stopNode} /${maven.was40.cmd.node}:${maven.was40.node}/" />
</goal> </goal>
<goal name="was40:list-node" description="Obtain the list of nodes on the WebSphere Application Server"> <goal name="was40:list-node" description="Obtain the list of nodes on the WebSphere Application Server">
<echo>Retreiving a list of available Nodes...</echo>
<echo>Obtaining node name ...Please Wait.</echo>
<was40wscp:exec command="${maven.was40.listNode}"/> <was40wscp:exec command="${maven.was40.listNode}"/>
<!-- uncomment to view results and change the above to have var="results"
<u:tokenize var="nodeName" delim=":">${results}</u:tokenize>
<u:tokenize var="node" delim="/">${nodeName[1]}</u:tokenize>
<j:set var="maven.was40.node" value="${node[0]}" />
<echo>variable: maven.was40.node=${maven.was40.node}</echo>
-->
</goal> </goal>
<goal name="was40:deploy-ear" <goal name="was40:deploy-ear"
description="Deploy an enterprise application"> description="Deploy an enterprise application">
<echo>Please Wait... Deploying enterprise application</echo> <echo>Deploying enterprise application: '${maven.was40.enterprise.app.name}'</echo>
<was40wscp:exec command="${maven.was40.deployApp}" /> <was40wscp:exec command="${maven.was40.deployApp}" />
</goal> </goal>
<goal name="was40:app-stop" <goal name="was40:app-stop"
description="Stop an enterprise application"> description="Stop an enterprise application">
<echo>Stopping enterprise application</echo> <echo>Stopping enterprise application: '${maven.was40.enterprise.app.name}'</echo>
<was40wscp:exec command="${maven.was40.stopApp}" /> <was40wscp:exec command="${maven.was40.stopApp}" />
</goal> </goal>
<goal name="was40:undeploy-ear" <goal name="was40:undeploy-ear"
description="Remove an enterprise application"> description="Remove an enterprise application">
<echo>Removing enterprise application: '${maven.was40.enterprise.app.name}'</echo>
<echo>Please Wait... Removing enterprise application</echo>
<was40wscp:exec command="${maven.was40.removeApp}" /> <was40wscp:exec command="${maven.was40.removeApp}" />
</goal> </goal>
<goal name="was40:app-start" <goal name="was40:app-start"
description="Start enterprise application"> description="Start enterprise application">
<echo>Starting enterprise application: '${maven.was40.enterprise.app.name}'</echo>
<echo>Please Wait... Starting enterprise application</echo>
<was40wscp:exec command="${maven.was40.startApp}" /> <was40wscp:exec command="${maven.was40.startApp}" />
</goal> </goal>
<goal name="was40:deploy-to-servergroup" <goal name="was40:deploy-to-servergroup"
description="Deploy an application to a server group"> description="Deploy an application to a server group">
<echo>Deploying enterprise application to server group: '${maven.was40.serverGroup.name}'</echo>
<echo>Please Wait... Deploying enterprise application to server group</echo>
<was40wscp:exec command="${maven.was40.servergroup.install}" /> <was40wscp:exec command="${maven.was40.servergroup.install}" />
</goal> </goal>
<goal name="was40:start-appserver" <goal name="was40:start-appserver"
description="Start a websphere application server"> description="Start a websphere application server">
<echo>Starting Application Server: '${maven.was40.appserver.name}'</echo>
<was40wscp:exec command="${maven.was40.appserver.start}" /> <was40wscp:exec command="${maven.was40.appserver.start}" />
</goal> </goal>
<goal name="was40:stop-appserver" <goal name="was40:stop-appserver"
description="Stop a websphere application server"> description="Stop a websphere application server">
<echo>Stopping Application Server: '${maven.was40.appserver.name}'</echo>
<was40wscp:exec command="${maven.was40.appserver.stop}" /> <was40wscp:exec command="${maven.was40.appserver.stop}" />
</goal> </goal>
<goal name="was40:start-servergroup" <goal name="was40:start-servergroup"
description="Start a websphere server group"> description="Start a websphere server group">
<echo>Starting ServerGroup: '${maven.was40.serverGroup.name}'</echo>
<was40wscp:exec command="${maven.was40.servergroup.start}" /> <was40wscp:exec command="${maven.was40.servergroup.start}" />
</goal> </goal>
<goal name="was40:stop-servergroup" <goal name="was40:stop-servergroup"
description="Stop a websphere server group"> description="Stop a websphere server group">
<echo>Stopping ServerGroup: '${maven.was40.serverGroup.name}'</echo>
<was40wscp:exec command="${maven.was40.servergroup.stop}" /> <was40wscp:exec command="${maven.was40.servergroup.stop}" />
</goal> </goal>
<goal name="was40:list-apps" description="List the applications installed on this node">
<echo>Obtaining a list of Enterprise applications for node: '${maven.was40.node}'</echo>
<was40wscp:exec command="${maven.was40.listEnterpriseApps}" />
</goal>
<goal name="was40:app-show" description="Display extra information about the EAR">
<echo>Obtaining Details about EAR: '${maven.was40.enterprise.app.name}'</echo>
<was40wscp:exec command="${maven.was40.enterpriseAppShow}" />
</goal>
<goal name="was40:regen" description="Regenerate the Plugin">
<echo>Regenerating Plugin for node: '${maven.was40.node}'</echo>
<exec executable="${maven.was40.plugin}" outputproperty="results">
<arg value="-adminNodeName" />
<arg value="${maven.was40.primaryNode}" />
<arg value="-nodeName" />
<arg value="${maven.was40.node}" />
</exec>
<echo>${results}</echo>
</goal>
<goal name="was40:jndi-dump" description="Dump the appserver's JNDI namespace">
<echo>Dumping [jndi] Namespace for node: '${maven.was40.node}'</echo>
<exec executable="${maven.was40.dumpNameSpace}" outputproperty="result">
<arg value="-host" />
<arg value="${maven.was40.node}" />
<arg value="-port" />
<arg value="${maven.was40.hostPort}" />
</exec>
<echo>${result}</echo>
</goal>
<goal name="was40:expand" description="Expand EAR into the ../installedApps/appName.ear directory">
<echo>Expanding EAR: '${maven.was40.enterprise.app.name}' into '${maven.was40.expandDir}/${maven.was40.enterprise.app.name}.ear'</echo>
<exec executable="${maven.was40.earExpander}" outputproperty="results">
<arg value="-ear" />
<arg value="${maven.was40.enterprise.app}" />
<arg value="-expandDir" />
<arg value="${maven.was40.expandDir}/${maven.was40.enterprise.app.name}.ear" />
<arg value="-operation" />
<arg value="expand" />
<arg value="-expansionFlags" />
<arg value="all" />
</exec>
<echo>${results}</echo>
</goal>
</project> </project>

View File

@ -66,5 +66,12 @@ maven.was40.servergroup.stop=${maven.was40.cmd.serverGroup} stop {/${maven.was40
maven.was40.servergroup.list=${maven.was40.cmd.serverGroup} list maven.was40.servergroup.list=${maven.was40.cmd.serverGroup} list
maven.was40.servergroup.show=${maven.was40.cmd.serverGroup} show {/${maven.was40.cmd.serverGroup}:${maven.was40.serverGroup.name}/} maven.was40.servergroup.show=${maven.was40.cmd.serverGroup} show {/${maven.was40.cmd.serverGroup}:${maven.was40.serverGroup.name}/}
#
## Various tasks on an enterprise app level
#
maven.was40.listEnterpriseApps=${maven.was40.cmd.enterprise} list
maven.was40.enterpriseAppShow=${maven.was40.cmd.enterprise} show {/${maven.was40.cmd.enterprise}:${maven.was40.enterprise.app.name}/}
############################### Do not put these in "Quotes" ############################### ############################### Do not put these in "Quotes" ###############################

View File

@ -1,4 +1,4 @@
maven.xdoc.date=left maven.xdoc.date=left
## maven.xdoc.version=${pom.currentVersion} maven.xdoc.version=${pom.currentVersion}
maven.license.licenseFile=${basedir}/../LICENSE.txt maven.license.licenseFile=${basedir}/../../../LICENSE.txt

View File

@ -5,14 +5,14 @@
<pomVersion>3</pomVersion> <pomVersion>3</pomVersion>
<id>maven-was40-plugin</id> <id>maven-was40-plugin</id>
<name>Maven WebSphere 4.0 Plug-in</name> <name>Maven WebSphere 4.0 Plug-in</name>
<currentVersion>1.0</currentVersion> <currentVersion>1.1-SNAPSHOT</currentVersion>
<description>A plugin to manage a WebSphere AppServer 4 installation</description> <description>A plugin to manage a WebSphere AppServer 4 installation</description>
<shortDescription>Manipulate WAS 4</shortDescription> <shortDescription>Manipulate WAS 4</shortDescription>
<url>http://maven.apache.org/reference/plugins/was40/</url> <url>http://maven.apache.org/reference/plugins/was40/</url>
<siteDirectory>/www/maven.apache.org/reference/plugins/was40/</siteDirectory> <siteDirectory>/www/maven.apache.org/reference/plugins/was40/</siteDirectory>
<repository> <repository>
<connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven-plugins/was40/</connection> <connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven/src/plugins-build/was40/</connection>
<url>http://cvs.apache.org/viewcvs/maven-plugins/was40/</url> <url>http://cvs.apache.org/viewcvs/maven/src/plugins-build/was40/</url>
</repository> </repository>
<developers> <developers>
<developer> <developer>

View File

@ -7,7 +7,13 @@
<body> <body>
<release version="1.0" date="in CVS"> <release version="1.1" date="in CVS">
<action dev="dion" type="update">
Added expand, jndi-dump, regen, app-show, list-apps goals
</action>
</release>
<release version="1.0" date="Unknown">
<action dev="dion" type="add"> <action dev="dion" type="add">
Added plugin provided by Kristen Gillard Added plugin provided by Kristen Gillard
</action> </action>

View File

@ -4,14 +4,11 @@
<title>Maven WebSphere 4.0 Plug-in</title> <title>Maven WebSphere 4.0 Plug-in</title>
<body> <body>
<links> <links>
<item href="http://maven.apache.org/" name="Maven"> <item href="http://maven.apache.org/" name="Maven" />
</item>
</links> </links>
<menu name="Overview"> <menu name="Overview">
<item href="/goals.html" name="Goals"> <item href="/goals.html" name="Goals" />
</item> <item href="/properties.html" name="Properties" />
<item href="/properties.html" name="Properties">
</item>
</menu> </menu>
</body> </body>
</project> </project>