Update of /var/cvs/applications/app-base/plugin/src/main/java/org/mmbase/mojo
In directory james.mmbase.org:/tmp/cvs-serv27848

Modified Files:
        InstallResources.java 
Log Message:
Install also an 'mmbase' dir of that it present (e.g. richtext app has that)


See also: 
http://cvs.mmbase.org/viewcvs/applications/app-base/plugin/src/main/java/org/mmbase/mojo


Index: InstallResources.java
===================================================================
RCS file: 
/var/cvs/applications/app-base/plugin/src/main/java/org/mmbase/mojo/InstallResources.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- InstallResources.java       16 Feb 2009 23:29:34 -0000      1.3
+++ InstallResources.java       8 Mar 2009 09:55:36 -0000       1.4
@@ -90,7 +90,6 @@
         if (packaging.equals("war") || packaging.equals("jar")) {
             try {
                 File configDir = new File(project.getBasedir(), "config");
-
                 File dest      = new File(project.getBuild().getDirectory(),
                                           "generated-resources" + 
File.separator + "org" + File.separator + "mmbase" + File.separator + "config");
                 if (configDir.isDirectory()) {
@@ -129,6 +128,13 @@
                     int[] result = copyDirectory(blocks, target, true);
                     getLog().info("Copied " + result[0]+ " files. " + 
result[1] + " files were not modified");
                 }
+                File mmbase = new File(project.getBasedir(), "mmbase");
+                if (mmbase.isDirectory()) {
+                    File target = new File(webapp, "mmbase");
+                    getLog().info("Copying " + blocks + " to " + target);
+                    int[] result = copyDirectory(mmbase, target, true);
+                    getLog().info("Copied " + result[0]+ " files. " + 
result[1] + " files were not modified");
+                }
             } catch (IOException ioe) {
                 throw new MojoExecutionException(ioe.getMessage(), ioe);
             }
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to