geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r506929 - /geronimo/server/trunk/maven-plugins/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/PackageMojo.java
Date Tue, 13 Feb 2007 09:32:32 GMT
Author: djencks
Date: Tue Feb 13 01:32:30 2007
New Revision: 506929

URL: http://svn.apache.org/viewvc?view=rev&rev=506929
Log:
GERONIMO-2829 start a new kernel for each invocation

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

Modified: geronimo/server/trunk/maven-plugins/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/PackageMojo.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/maven-plugins/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/PackageMojo.java?view=diff&rev=506929&r1=506928&r2=506929
==============================================================================
--- geronimo/server/trunk/maven-plugins/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/PackageMojo.java
(original)
+++ geronimo/server/trunk/maven-plugins/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/PackageMojo.java
Tue Feb 13 01:32:30 2007
@@ -437,15 +437,15 @@
      * Reference to the kernel that will last the lifetime of this classloader.
      * The KernelRegistry keeps soft references that may be garbage collected.
      */
-    private static Kernel kernel;
+    private  Kernel kernel;
 
-    private static AbstractName targetConfigStoreAName;
+    private  AbstractName targetConfigStoreAName;
 
-    private static AbstractName targetRepositoryAName;
+    private  AbstractName targetRepositoryAName;
 
     private boolean targetSet;
 
-    private static DependencyTree dependencies = new DependencyTree();
+    private  DependencyTree dependencies = new DependencyTree();
 
     public void buildPackage() throws Exception {
         log.info("Packaging module configuration: " + planFile);
@@ -485,7 +485,9 @@
 
         AbstractName deployer = locateDeployer(kernel);
         invokeDeployer(kernel, deployer, targetConfigStoreAName.toString());
-//        kernel.shutdown();
+        //use a fresh kernel for each module
+        kernel.shutdown();
+        kernel = null;
     }
 
     /**



Mime
View raw message