geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r527285 - /geronimo/server/trunk/maven-plugins/geronimo-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/geronimo/server/StartServerMojo.java
Date Tue, 10 Apr 2007 20:34:27 GMT
Author: jdillon
Date: Tue Apr 10 13:34:26 2007
New Revision: 527285

URL: http://svn.apache.org/viewvc?view=rev&rev=527285
Log:
Add flag to skip assembly installation for geronimo:start, this prevents extra work when geronimo:install
has already been invoked

Modified:
    geronimo/server/trunk/maven-plugins/geronimo-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/geronimo/server/StartServerMojo.java

Modified: geronimo/server/trunk/maven-plugins/geronimo-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/geronimo/server/StartServerMojo.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/maven-plugins/geronimo-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/geronimo/server/StartServerMojo.java?view=diff&rev=527285&r1=527284&r2=527285
==============================================================================
--- geronimo/server/trunk/maven-plugins/geronimo-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/geronimo/server/StartServerMojo.java
(original)
+++ geronimo/server/trunk/maven-plugins/geronimo-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/geronimo/server/StartServerMojo.java
Tue Apr 10 13:34:26 2007
@@ -52,6 +52,14 @@
     extends InstallerMojoSupport
 {
     /**
+     * Set the false to skip the installation of the assembly, re-using anything
+     * that is already there.
+     *
+     * @parameter expression="${install}" default-value="true"
+     */
+    private boolean install = true;
+    
+    /**
      * Flag to control if we background the server or block Maven execution.
      *
      * @parameter expression="${background}" default-value="false"
@@ -132,8 +140,17 @@
     private Timer timer = new Timer(true);
 
     protected void doExecute() throws Exception {
-        installAssembly();
-
+        if (install) {
+            installAssembly();
+        }
+        else {
+            log.info("Skipping assembly installation");
+            
+            if (!geronimoHome.exists()) {
+                throw new MojoExecutionException("Missing pre-installed assembly directory:
" + geronimoHome);
+            }
+        }
+        
         log.info("Starting Geronimo server...");
         
         // Setup the JVM to start the server with



Mime
View raw message