cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reinh...@apache.org
Subject svn commit: r523817 - /cocoon/trunk/tools/cocoon-rcl/cocoon-rcl-plugin/src/main/java/org/apache/cocoon/maven/rcl/ReloadingWebappMojo.java
Date Thu, 29 Mar 2007 19:48:58 GMT
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;
         }
         



Mime
View raw message