You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by re...@apache.org on 2007/03/29 21:48:58 UTC

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

Author: reinhard
Date: Thu Mar 29 12:48:57 2007
New Revision: 523817

URL: http://svn.apache.org/viewvc?view=rev&rev=523817
Log:
it doesn't make sense to run the plugin without rcl.properties

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

Modified: cocoon/trunk/tools/cocoon-rcl/cocoon-rcl-plugin/src/main/java/org/apache/cocoon/maven/rcl/ReloadingWebappMojo.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/cocoon-rcl/cocoon-rcl-plugin/src/main/java/org/apache/cocoon/maven/rcl/ReloadingWebappMojo.java?view=diff&rev=523817&r1=523816&r2=523817
==============================================================================
--- cocoon/trunk/tools/cocoon-rcl/cocoon-rcl-plugin/src/main/java/org/apache/cocoon/maven/rcl/ReloadingWebappMojo.java (original)
+++ cocoon/trunk/tools/cocoon-rcl/cocoon-rcl-plugin/src/main/java/org/apache/cocoon/maven/rcl/ReloadingWebappMojo.java Thu Mar 29 12:48:57 2007
@@ -172,9 +172,11 @@
     public void execute() throws MojoExecutionException {
         // check if this plugin is useful at all
         if(!project.getPackaging().equals("jar") || 
-                !(new File(project.getBasedir(), "src/main/resources/COB-INF").exists())) {
+                !(new File(project.getBasedir(), "src/main/resources/COB-INF").exists()) ||
+                !rclPropertiesFile.exists()) {
             getLog().info("Don't execute the Cocoon RCL plugin becaues either its packaging " + 
-                    "type is not 'jar' or it doesn't have a directory 'src/main/resources/COB-INF'.");
+                    "type is not 'jar' or it doesn't have a directory 'src/main/resources/COB-INF' or " + 
+                    "there is no rcl.properties file in the block's base directory.");
             return;
         }