cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reinh...@apache.org
Subject svn commit: r628338 - /cocoon/trunk/tools/cocoon-maven-plugin/src/main/java/org/apache/cocoon/maven/rcl/ReloadingWebappMojo.java
Date Sat, 16 Feb 2008 16:04:39 GMT
Author: reinhard
Date: Sat Feb 16 08:04:39 2008
New Revision: 628338

URL: http://svn.apache.org/viewvc?rev=628338&view=rev
Log:
make the usage of the reloading classloader configureable

Modified:
    cocoon/trunk/tools/cocoon-maven-plugin/src/main/java/org/apache/cocoon/maven/rcl/ReloadingWebappMojo.java

Modified: cocoon/trunk/tools/cocoon-maven-plugin/src/main/java/org/apache/cocoon/maven/rcl/ReloadingWebappMojo.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/cocoon-maven-plugin/src/main/java/org/apache/cocoon/maven/rcl/ReloadingWebappMojo.java?rev=628338&r1=628337&r2=628338&view=diff
==============================================================================
--- cocoon/trunk/tools/cocoon-maven-plugin/src/main/java/org/apache/cocoon/maven/rcl/ReloadingWebappMojo.java
(original)
+++ cocoon/trunk/tools/cocoon-maven-plugin/src/main/java/org/apache/cocoon/maven/rcl/ReloadingWebappMojo.java
Sat Feb 16 08:04:39 2008
@@ -138,6 +138,13 @@
     private boolean reloadingSpringEnabled = true;
 
     /**
+     * Enable the reloading class loader. Default value is <code>true</code>.
+     *
+     * @parameter
+     */
+    private boolean reloadingClassLoaderEnabled = true;
+
+    /**
      * Logging: Use a custom log4j xml configuration file=
      *
      * @parameter expression="${cocoon.rcl.log4j.conf}"
@@ -197,6 +204,7 @@
      */
     private MavenProject project;
 
+
     public void execute() throws MojoExecutionException {
         // check if this plugin is useful at all
         if(!project.getPackaging().equals("jar") ||
@@ -349,6 +357,7 @@
         try {
             Properties props = new Properties();
             props.setProperty("reloading.spring.enabled", Boolean.toString(this.reloadingSpringEnabled));
+            props.setProperty("reloading.classloader.enabled", Boolean.toString(this.reloadingClassLoaderEnabled));
             props.save(new FileOutputStream(rclProps), "Reloading Classloader Properties");
         } catch (IOException e) {
             throw new MojoExecutionException("Can't write to  " + rclProps.getAbsolutePath(),
e);



Mime
View raw message