Author: tchemit Date: 2010-10-15 09:10:24 +0200 (Fri, 15 Oct 2010) New Revision: 1843 Url: http://nuiton.org/repositories/revision/maven-license-plugin/1843 Log: fix its + add more logs Modified: trunk/src/it/evol-884/update-file-header/pom.xml trunk/src/it/evol-884/update-project-license/pom.xml trunk/src/main/java/org/nuiton/license/plugin/AbstractLicenseWithDescriptorMojo.java Modified: trunk/src/it/evol-884/update-file-header/pom.xml =================================================================== --- trunk/src/it/evol-884/update-file-header/pom.xml 2010-10-14 16:37:57 UTC (rev 1842) +++ trunk/src/it/evol-884/update-file-header/pom.xml 2010-10-15 07:10:24 UTC (rev 1843) @@ -18,7 +18,7 @@ </organization> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> - <licenseName>gpl_v3</licenseName> + <license.licenseName>gpl_v3</license.licenseName> </properties> <build> Modified: trunk/src/it/evol-884/update-project-license/pom.xml =================================================================== --- trunk/src/it/evol-884/update-project-license/pom.xml 2010-10-14 16:37:57 UTC (rev 1842) +++ trunk/src/it/evol-884/update-project-license/pom.xml 2010-10-15 07:10:24 UTC (rev 1843) @@ -23,7 +23,7 @@ <license.generateBundle>true</license.generateBundle> <license.bundleLicensePath>META-INF/bundleLicense.txt</license.bundleLicensePath> <license.verbose>true</license.verbose> - <licenseName>gpl_v3</licenseName> + <license.licenseName>gpl_v3</license.licenseName> </properties> <build> Modified: trunk/src/main/java/org/nuiton/license/plugin/AbstractLicenseWithDescriptorMojo.java =================================================================== --- trunk/src/main/java/org/nuiton/license/plugin/AbstractLicenseWithDescriptorMojo.java 2010-10-14 16:37:57 UTC (rev 1842) +++ trunk/src/main/java/org/nuiton/license/plugin/AbstractLicenseWithDescriptorMojo.java 2010-10-15 07:10:24 UTC (rev 1843) @@ -151,7 +151,8 @@ private LicenseProjectDescriptor licenseProjectDescriptor; /** Map that contains each files indexed by their CommentStyle **/ - Map<String, List<File>> universe; + private Map<String, List<File>> universe; + /** * When is sets to {@code true}, will skip execution. * <p/> @@ -221,6 +222,7 @@ // Init default value for roots and includes if (roots == null || roots.length == 0) { roots = new String[]{"src"}; + getLog().info("Will use default roots "+ Arrays.toString(roots)); } List<String> rootsList = Arrays.asList(getRoots()); @@ -244,11 +246,12 @@ treatFilesByCommentStyle(filesToTreat, licenseStore, getTransformers()); - return; } + // Will use the deprecated license project descriptor + getLog().warn("\n"); getLog().warn("----------------------------------------------------------"); getLog().warn("The use of Descriptor File will be obsolete from version 3");