Author: tchemit Date: 2010-04-04 11:51:45 +0200 (Sun, 04 Apr 2010) New Revision: 1703 Log: Evolution #454: Use maven-helper-plugin 1.2.3 Modified: trunk/pom.xml trunk/src/test/java/org/nuiton/license/plugin/AddLicenseFileMojoTest.java Modified: trunk/pom.xml =================================================================== --- trunk/pom.xml 2010-04-04 07:55:41 UTC (rev 1702) +++ trunk/pom.xml 2010-04-04 09:51:45 UTC (rev 1703) @@ -288,7 +288,8 @@ <properties> <processor.version>1.0.2</processor.version> - + <helper.version>1.2.3-SNAPSHOT</helper.version> + <!-- documentation is in english --> <siteLocales>en</siteLocales> Modified: trunk/src/test/java/org/nuiton/license/plugin/AddLicenseFileMojoTest.java =================================================================== --- trunk/src/test/java/org/nuiton/license/plugin/AddLicenseFileMojoTest.java 2010-04-04 07:55:41 UTC (rev 1702) +++ trunk/src/test/java/org/nuiton/license/plugin/AddLicenseFileMojoTest.java 2010-04-04 09:51:45 UTC (rev 1703) @@ -22,6 +22,7 @@ import org.junit.Test; import org.nuiton.plugin.AbstractMojoTest; +import org.nuiton.plugin.PluginHelper; import java.io.File; import java.io.IOException; @@ -68,11 +69,7 @@ // always assume pom is older than any file // since we can not ensure order of copy test resources - File file = mojo.getProject().getFile(); - boolean b = file.setLastModified(0); - if (!b) { - throw new IOException("could not change lastModified on " + file); - } + PluginHelper.setLastModified(mojo.getProject().getFile(), 0); // then executing the mojo, will do NOT change the licence file mojo.execute(); @@ -99,11 +96,7 @@ // always assume pom is older than any file // since we can not ensure order of copy test resources - File file = mojo.getProject().getFile(); - boolean b = file.setLastModified(0); - if (!b) { - throw new IOException("could not changed lastModified on " + file); - } + PluginHelper.setLastModified(mojo.getProject().getFile(), 0); // then executing the mojo, will do NOT change the licence file mojo.execute();