Author: michiel Date: 2009-05-02 08:23:54 +0200 (Sat, 02 May 2009) New Revision: 34904
Modified: mmbase/trunk/maven/maven-mmbase-plugin/src/main/java/org/mmbase/mojo/IncludeDefaultExcludesMojo.java Log: File#setWritable only java 6, hoping that FileUtils can do it Modified: mmbase/trunk/maven/maven-mmbase-plugin/src/main/java/org/mmbase/mojo/IncludeDefaultExcludesMojo.java =================================================================== --- mmbase/trunk/maven/maven-mmbase-plugin/src/main/java/org/mmbase/mojo/IncludeDefaultExcludesMojo.java 2009-05-01 17:43:07 UTC (rev 34903) +++ mmbase/trunk/maven/maven-mmbase-plugin/src/main/java/org/mmbase/mojo/IncludeDefaultExcludesMojo.java 2009-05-02 06:23:54 UTC (rev 34904) @@ -100,11 +100,7 @@ if (sub.isDirectory()) { tot += copyDirectory(sub, subDest); } else { - if (! subDest.exists() || sub.lastModified() > subDest.lastModified()) { - subDest.setWritable(true); - FileUtils.copyFile(sub, subDest); - tot++; - } + if (FileUtils.copyFileIfModified(sub, subDest)) tot++; } } return tot; _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs