From: dion g. <dio...@us...> - 2004-07-28 15:02:03
|
diongillard 04/07/28 08:01:50 Modified: was5 plugin.properties plugin.jelly Log: Reinstall app goal Revision Changes Path 1.2 +6 -0 maven-plugins/was5/plugin.properties Index: plugin.properties =================================================================== RCS file: /cvsroot/maven-plugins/maven-plugins/was5/plugin.properties,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- plugin.properties 9 Mar 2004 11:36:23 -0000 1.1 +++ plugin.properties 28 Jul 2004 15:01:50 -0000 1.2 @@ -93,3 +93,9 @@ maven.was5.stopApp.port=${maven.was5.port} maven.was5.stopApp.username=${maven.was5.username} maven.was5.stopApp.password=${maven.was5.password} + +# +# reinstall sleep properties +# +maven.was5.sleep.start=60 +maven.was5.sleep.stop=30 1.2 +15 -1 maven-plugins/was5/plugin.jelly Index: plugin.jelly =================================================================== RCS file: /cvsroot/maven-plugins/maven-plugins/was5/plugin.jelly,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- plugin.jelly 9 Mar 2004 11:36:23 -0000 1.1 +++ plugin.jelly 28 Jul 2004 15:01:50 -0000 1.2 @@ -120,7 +120,7 @@ </goal> <goal name="was5:installApp" description="Install an application on a WebSphere Appserver"> - <ant:fail unless="maven.was5.installApp.ear">maven.was.installApp.ear must be specified</ant:fail> + <ant:fail unless="maven.was5.installApp.ear">maven.was5.installApp.ear must be specified</ant:fail> <taskdef name="wasInstallApp" classname="com.ibm.websphere.ant.tasks.InstallApplication" classpath="${maven.was5.home}/lib/wsanttasks.jar"/> <ant:wasInstallApp ear="${maven.was5.installApp.ear}"> @@ -189,4 +189,18 @@ </goal> + <!-- reinstall an app --> + <goal name="was5:reinstallApp" description="Reinstall an application on a WebSphere Appserver"> + <attainGoal name="was5:stopApp"/> + <sleep seconds="${maven.was5.sleep.stop}"/> + <attainGoal name="was5:stopServer"/> + <sleep seconds="${maven.was5.sleep.stop}"/> + <attainGoal name="was5:uninstallApp"/> + <sleep seconds="${maven.was5.sleep.stop}"/> + <attainGoal name="was5:installApp"/> + <attainGoal name="was5:startServer"/> + <sleep seconds="${maven.was5.sleep.start}"/> + <attainGoal name="was5:startApp"/> + <sleep seconds="${maven.was5.sleep.start}"/> + </goal> </project> \ No newline at end of file |