Maven-license-plugin-commits
Threads by month
- ----- 2026 -----
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- 268 discussions
Author: tchemit
Date: 2010-10-14 17:46:26 +0200 (Thu, 14 Oct 2010)
New Revision: 1841
Url: http://nuiton.org/repositories/revision/maven-license-plugin/1841
Log:
[maven-release-plugin] prepare for next development iteration
Modified:
trunk/pom.xml
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2010-10-14 15:46:24 UTC (rev 1840)
+++ trunk/pom.xml 2010-10-14 15:46:26 UTC (rev 1841)
@@ -38,7 +38,7 @@
</parent>
<artifactId>maven-license-plugin</artifactId>
- <version>2.4</version>
+ <version>2.4.1-SNAPSHOT</version>
<dependencies>
@@ -319,9 +319,9 @@
<!-- Source control management. -->
<scm>
- <connection>scm:svn:http://svn.nuiton.org/svn/maven-license-plugin/tags/maven-license-p…</connection>
- <developerConnection>scm:svn:http://svn.nuiton.org/svn/maven-license-plugin/tags/maven-license-p…</developerConnection>
- <url>http://www.nuiton.org/repositories/browse/maven-license-plugin/tags/maven-l…</url>
+ <connection>scm:svn:http://svn.nuiton.org/svn/maven-license-plugin/trunk</connection>
+ <developerConnection>scm:svn:http://svn.nuiton.org/svn/maven-license-plugin/trunk</developerConnection>
+ <url>http://www.nuiton.org/repositories/browse/maven-license-plugin/trunk</url>
</scm>
<!-- ************************************************************* -->
1
0
Author: tchemit
Date: 2010-10-14 17:46:24 +0200 (Thu, 14 Oct 2010)
New Revision: 1840
Url: http://nuiton.org/repositories/revision/maven-license-plugin/1840
Log:
[maven-release-plugin] copy for tag maven-license-plugin-2.4
Added:
tags/maven-license-plugin-2.4/
Property changes on: tags/maven-license-plugin-2.4
___________________________________________________________________
Added: svn:ignore
+ target
.settings
.classpath
.project
*.iml
*.ipr
*.iws
Added: svn:mergeinfo
+
1
0
Author: tchemit
Date: 2010-10-14 17:46:22 +0200 (Thu, 14 Oct 2010)
New Revision: 1839
Url: http://nuiton.org/repositories/revision/maven-license-plugin/1839
Log:
[maven-release-plugin] prepare release maven-license-plugin-2.4
Modified:
trunk/pom.xml
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2010-10-08 23:50:33 UTC (rev 1838)
+++ trunk/pom.xml 2010-10-14 15:46:22 UTC (rev 1839)
@@ -38,7 +38,7 @@
</parent>
<artifactId>maven-license-plugin</artifactId>
- <version>2.4-SNAPSHOT</version>
+ <version>2.4</version>
<dependencies>
@@ -319,9 +319,9 @@
<!-- Source control management. -->
<scm>
- <connection>scm:svn:http://svn.nuiton.org/svn/maven-license-plugin/trunk</connection>
- <developerConnection>scm:svn:http://svn.nuiton.org/svn/maven-license-plugin/trunk</developerConnection>
- <url>http://www.nuiton.org/repositories/browse/maven-license-plugin/trunk</url>
+ <connection>scm:svn:http://svn.nuiton.org/svn/maven-license-plugin/tags/maven-license-p…</connection>
+ <developerConnection>scm:svn:http://svn.nuiton.org/svn/maven-license-plugin/tags/maven-license-p…</developerConnection>
+ <url>http://www.nuiton.org/repositories/browse/maven-license-plugin/tags/maven-l…</url>
</scm>
<!-- ************************************************************* -->
1
0
Author: tchemit
Date: 2010-10-09 01:50:33 +0200 (Sat, 09 Oct 2010)
New Revision: 1838
Url: http://nuiton.org/repositories/revision/maven-license-plugin/1838
Log:
Update mavenpom4redmineAndCentral to 2.3.1.
Modified:
trunk/pom.xml
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2010-10-08 23:20:36 UTC (rev 1837)
+++ trunk/pom.xml 2010-10-08 23:50:33 UTC (rev 1838)
@@ -34,7 +34,7 @@
<parent>
<groupId>org.nuiton</groupId>
<artifactId>mavenpom4redmineAndCentral</artifactId>
- <version>2.3</version>
+ <version>2.3.1</version>
</parent>
<artifactId>maven-license-plugin</artifactId>
1
0
Author: tchemit
Date: 2010-10-09 01:20:36 +0200 (Sat, 09 Oct 2010)
New Revision: 1837
Url: http://nuiton.org/repositories/revision/maven-license-plugin/1837
Log:
reformat pom
Modified:
trunk/pom.xml
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2010-10-08 23:07:12 UTC (rev 1836)
+++ trunk/pom.xml 2010-10-08 23:20:36 UTC (rev 1837)
@@ -449,7 +449,7 @@
<pomInclude>update-project-license/pom.xml</pomInclude>
<pomInclude>evol-884/update-project-license/pom.xml</pomInclude>
<pomInclude>evol-884/update-file-header/pom.xml</pomInclude>
- <pomInclude>evol-884/update-file-header-specific/pom.xml</pomInclude>
+ <pomInclude>evol-884/update-file-header-specific/pom.xml</pomInclude>
</pomIncludes>
<postBuildHookScript>verify</postBuildHookScript>
<localRepositoryPath>${basedir}/target/local-repo</localRepositoryPath>
1
0
Author: tchemit
Date: 2010-10-09 01:07:12 +0200 (Sat, 09 Oct 2010)
New Revision: 1836
Url: http://nuiton.org/repositories/revision/maven-license-plugin/1836
Log:
updates dependencies
Modified:
trunk/pom.xml
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2010-10-03 15:51:59 UTC (rev 1835)
+++ trunk/pom.xml 2010-10-08 23:07:12 UTC (rev 1836)
@@ -159,7 +159,7 @@
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
- <version>1.2.14</version>
+ <version>1.2.16</version>
</dependency>
<!-- tests dependencies -->
@@ -213,11 +213,6 @@
</exclusion>
<exclusion>
- <groupId>org.apache.velocity</groupId>
- <artifactId>velocity</artifactId>
- </exclusion>
-
- <exclusion>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-velocity</artifactId>
</exclusion>
@@ -341,7 +336,8 @@
<processor.version>1.0.2</processor.version>
<!-- helper version -->
- <helper.version>1.2.7-SNAPSHOT</helper.version>
+ <helper.version>1.2.8</helper.version>
+ <jredmine.version>1.1.4</jredmine.version>
<!-- license project descriptor model version -->
<mdoVersion>1.0.0</mdoVersion>
@@ -413,6 +409,15 @@
</plugins>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <artifactId>maven-release-plugin</artifactId>
+ <version>2.1</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+
</build>
<profiles>
1
0
Author: tchemit
Date: 2010-10-03 17:51:59 +0200 (Sun, 03 Oct 2010)
New Revision: 1835
Url: http://nuiton.org/repositories/revision/maven-license-plugin/1835
Log:
Update mavenpom4redmineAndCentral to 2.3.
Modified:
trunk/pom.xml
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2010-10-01 16:19:39 UTC (rev 1834)
+++ trunk/pom.xml 2010-10-03 15:51:59 UTC (rev 1835)
@@ -33,8 +33,8 @@
<parent>
<groupId>org.nuiton</groupId>
- <artifactId>mavenpom4redmine</artifactId>
- <version>2.2.6</version>
+ <artifactId>mavenpom4redmineAndCentral</artifactId>
+ <version>2.3</version>
</parent>
<artifactId>maven-license-plugin</artifactId>
@@ -352,13 +352,6 @@
<!-- documentation is in english then french -->
<locales>en,fr</locales>
- <!-- release config -->
-
- <!-- activate this profile while doing release:prepare -->
- <arguments>-DperformRelease -Pcentral-safe</arguments>
-
- <!-- activate this profile while doing release:perform -->
- <releaseProfiles>central-safe</releaseProfiles>
</properties>
<build>
1
0
Author: ymartel
Date: 2010-10-01 18:19:39 +0200 (Fri, 01 Oct 2010)
New Revision: 1834
Url: http://nuiton.org/repositories/revision/maven-license-plugin/1834
Log:
Add documentation on maven site about the new update-file-header processus,
without descriptor file
Added:
trunk/src/site/apt/update-file-header-config.apt
trunk/src/site/fr/apt/update-file-header-config.apt
Modified:
trunk/src/site/apt/descriptor.apt
trunk/src/site/apt/usage.apt
trunk/src/site/fr/apt/descriptor.apt
trunk/src/site/fr/apt/usage.apt
Modified: trunk/src/site/apt/descriptor.apt
===================================================================
--- trunk/src/site/apt/descriptor.apt 2010-10-01 09:33:48 UTC (rev 1833)
+++ trunk/src/site/apt/descriptor.apt 2010-10-01 16:19:39 UTC (rev 1834)
@@ -26,6 +26,11 @@
License project descriptor
----
+Warning
+
+ <Since version 2.4>, <<the descriptor file is no more mandatory. It will be removed
+ from version 3.>>
+
Abstract
Added: trunk/src/site/apt/update-file-header-config.apt
===================================================================
--- trunk/src/site/apt/update-file-header-config.apt (rev 0)
+++ trunk/src/site/apt/update-file-header-config.apt 2010-10-01 16:19:39 UTC (rev 1834)
@@ -0,0 +1,189 @@
+~~~
+~~ #%L
+~~ Maven License Plugin
+~~
+~~ $Id$
+~~ $HeadURL$
+~~ %%
+~~ Copyright (C) 2008 - 2010 CodeLutin
+~~ %%
+~~ This program is free software: you can redistribute it and/or modify
+~~ it under the terms of the GNU Lesser General Public License as
+~~ published by the Free Software Foundation, either version 3 of the
+~~ License, or (at your option) any later version.
+~~
+~~ This program is distributed in the hope that it will be useful,
+~~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+~~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+~~ GNU General Lesser Public License for more details.
+~~
+~~ You should have received a copy of the GNU General Lesser Public
+~~ License along with this program. If not, see
+~~ <http://www.gnu.org/licenses/lgpl-3.0.html>.
+~~ #L%
+~~~
+----
+Update File Header: Configuration
+----
+
+ <Since version 2.4>, without a descriptor file, we can configure the
+ update-file-header goal with four parameters:
+
+ * licenseName : it is the name of the license to add on file header. It is mandatory,
+
+ * roots : it is a list of the main directories from which we apply the
+ license on files. The default roots is <src>,
+
+ * includes : List of files to include, gived by a regexp (for example: <*Dao.java>).
+ The default include is **/*,
+
+ * excludes: List of files to exclude, gived by a regexp (for example: <*Test.java>).
+ The default excludes are i18n properties (**/i18n/*.properties).
+
+ The treated extensions are: java, xml, rst, properties and apt.
+
+Roots
+
+ By default, All the files in <src> are treated. This could be changed with the
+ property <roots>. The roots property is a list of based directory from which the
+ update-file-header will be applied.
+
+* Exemple
+
+ Given a pom with these plugin configuration
+
+-------------------------------------------------------------------------------
+
+ <plugins>
+ <plugin>
+ <groupId>org.nuiton</groupId>
+ <artifactId>maven-license-plugin</artifactId>
+ <version>2.4</version>
+ <configuration>
+ <verbose>false</verbose>
+ <addSvnKeyWords>true</addSvnKeyWords>
+ </configuration>
+ <executions>
+ <execution>
+ <id>first</id>
+ <goals>
+ <goal>update-file-header</goal>
+ </goals>
+ <phase>process-sources</phase>
+ <configuration>
+ <licenseName>gpl_v3</licenseName>
+ <roots>
+ <param>src/main/java</param>
+ <param>src/test</param>
+ </roots>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+
+-------------------------------------------------------------------------------
+
+-------------------------------------------------------------------------------
+ Considering we have the following arborescence:
+ src/main/java
+ src/main/resources
+ src/test/java
+ src/test/resources
+-------------------------------------------------------------------------------
+ Only files from src/main/java, src/test/java and src/test/resources will be treated.
+
+
+Includes
+
+ Par défault, Tous les fichiers depuis le(s) roots et avec la bonne extension
+ sont traités. Avec le parametre de type Liste <includes>, il est possible de
+ spécifier avec plus de precision quels fichiers on désire traiter.
+
+* Exemple
+
+ Soit un pom avec la configuration de plugin suivante:
+
+-------------------------------------------------------------------------------
+
+ <plugins>
+ <plugin>
+ <groupId>org.nuiton</groupId>
+ <artifactId>maven-license-plugin</artifactId>
+ <version>2.4</version>
+ <configuration>
+ <verbose>false</verbose>
+ <addSvnKeyWords>true</addSvnKeyWords>
+ </configuration>
+ <executions>
+ <execution>
+ <id>first</id>
+ <goals>
+ <goal>update-file-header</goal>
+ </goals>
+ <phase>process-sources</phase>
+ <configuration>
+ <licenseName>gpl_v3</licenseName>
+ <includes>
+ <param>*Dao.java</param>
+ <param>*Bean.java</param>
+ <param>.*entities.*.xml</param>
+ </includes>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+
+-------------------------------------------------------------------------------
+
+ Le goal update-file-header sera appliqué uniquement aux fichiers java (depuis
+ "src") dont le nom se termine par <"Dao"> ou <"Bean"> et aux fichiers xml contenant
+ <"entities"> dans leur nom.
+
+
+Excludes
+
+ Le parametre <excludes> permet d'ignorer certains fichiers lors du processus
+ update-file-header.
+
+* Exemple
+
+ Soit un pom avec la configuration de plugin suivante:
+
+-------------------------------------------------------------------------------
+
+ <plugins>
+ <plugin>
+ <groupId>org.nuiton</groupId>
+ <artifactId>maven-license-plugin</artifactId>
+ <version>2.4</version>
+ <configuration>
+ <verbose>false</verbose>
+ <addSvnKeyWords>true</addSvnKeyWords>
+ </configuration>
+ <executions>
+ <execution>
+ <id>first</id>
+ <goals>
+ <goal>update-file-header</goal>
+ </goals>
+ <phase>process-sources</phase>
+ <configuration>
+ <licenseName>gpl_v3</licenseName>
+ <excludes>
+ <param>*.png</param>
+ <param>*.txt</param>
+ <param>*Test.java</param>
+ </excludes>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+
+-------------------------------------------------------------------------------
+
+ Les fichiers Java dont le nom se terminent par "Test", les fichiers png et txt
+ seront ignorés.
+
Modified: trunk/src/site/apt/usage.apt
===================================================================
--- trunk/src/site/apt/usage.apt 2010-10-01 09:33:48 UTC (rev 1833)
+++ trunk/src/site/apt/usage.apt 2010-10-01 16:19:39 UTC (rev 1834)
@@ -47,6 +47,14 @@
for full detail see {{{./update-file-header-mojo.html}detail page}}.
+* configuration
+
+ In case of any descriptor file, all the <*.java *.rst *.xml et *.properties>
+ files from <"src/**/*"> are treated. However, it is necessary to give the license
+ to use, with the parameter <licenseName>.
+
+ for full detail see {{{./update-file-header-config.html}detail page}}.
+
Third-party
The project offers some goals to deal with THIRD-PARTY files in a project.
Modified: trunk/src/site/fr/apt/descriptor.apt
===================================================================
--- trunk/src/site/fr/apt/descriptor.apt 2010-10-01 09:33:48 UTC (rev 1833)
+++ trunk/src/site/fr/apt/descriptor.apt 2010-10-01 16:19:39 UTC (rev 1834)
@@ -26,6 +26,11 @@
License project descriptor
----
+Attention
+
+ <Depuis la version 2.4>, <<le fichier de description n'est plus obligatoire. Il
+ sera supprimé avec la version 3.>>
+
Abstract
Ce document décrit le fichier de description de license introduit dans la
Added: trunk/src/site/fr/apt/update-file-header-config.apt
===================================================================
--- trunk/src/site/fr/apt/update-file-header-config.apt (rev 0)
+++ trunk/src/site/fr/apt/update-file-header-config.apt 2010-10-01 16:19:39 UTC (rev 1834)
@@ -0,0 +1,190 @@
+~~~
+~~ #%L
+~~ Maven License Plugin
+~~
+~~ $Id$
+~~ $HeadURL$
+~~ %%
+~~ Copyright (C) 2008 - 2010 CodeLutin
+~~ %%
+~~ This program is free software: you can redistribute it and/or modify
+~~ it under the terms of the GNU Lesser General Public License as
+~~ published by the Free Software Foundation, either version 3 of the
+~~ License, or (at your option) any later version.
+~~
+~~ This program is distributed in the hope that it will be useful,
+~~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+~~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+~~ GNU General Lesser Public License for more details.
+~~
+~~ You should have received a copy of the GNU General Lesser Public
+~~ License along with this program. If not, see
+~~ <http://www.gnu.org/licenses/lgpl-3.0.html>.
+~~ #L%
+~~~
+----
+Update File Header: Configuration
+----
+
+ <Depuis la version 2.4>, en l'absence de fichier descriptor, il est possible de
+ configurer le goal update-file-header avec quatre four parametres:
+
+ * licenseName : il s'agit du nom de la license à appliquer aux fichiers.
+ Ce parametre est obligatoire,
+
+ * roots : C'est la liste des "main directories" à partir desquels il faut
+ appliquer la licence sur les fichiers. Par défault, il s'agit de <src>,
+
+ * includes : Liste des fichiers à traiter, renseignés à l'air d'une regexp
+ (par exemple: <*Dao.java>). Par défault, les fichiers traités répondent à **/*,
+
+ * excludes: Liste des fichiers à ignorer, renseignés par le biais d'une regexp
+ (par exemple: <*Test.java>). Par défault, les fichier "properties" de i18n
+ (**/i18n/*.properties).
+
+ Les extensiosn traités sont: .java, .xml, .rst, .properties et .apt.
+
+Roots
+
+ Par défault, tous les fichiers contenus dans <src> sont traités. Cela peut se
+ changer en utilisant la propriété <roots>. Cette propriété est une liste de
+ répertoires de bases au sein desquels le goal update-file-header sera appliquée.
+
+* Example
+
+ Soit un pom avec la configuration de plugin suivante:
+
+-------------------------------------------------------------------------------
+
+ <plugins>
+ <plugin>
+ <groupId>org.nuiton</groupId>
+ <artifactId>maven-license-plugin</artifactId>
+ <version>2.4</version>
+ <configuration>
+ <verbose>false</verbose>
+ <addSvnKeyWords>true</addSvnKeyWords>
+ </configuration>
+ <executions>
+ <execution>
+ <id>first</id>
+ <goals>
+ <goal>update-file-header</goal>
+ </goals>
+ <phase>process-sources</phase>
+ <configuration>
+ <licenseName>gpl_v3</licenseName>
+ <roots>
+ <param>src/main/java</param>
+ <param>src/test</param>
+ </roots>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+
+-------------------------------------------------------------------------------
+
+-------------------------------------------------------------------------------
+ En considérant que nous avons l'arboresence suivante:
+ src/main/java
+ src/main/resources
+ src/test/java
+ src/test/resources
+ -------------------------------------------------------------------------------
+ Seuls les fichiers inclus dans src/main/java, src/test/java et src/test/resources
+ seront traités.
+
+
+Includes
+
+ By default, all the files from the roots and with the adequate extension are treated.
+ With the list parameters <includes>, we can specify with more precision which
+ files we want to deals.
+
+* Example
+
+ Soit un pom avec la configuration de plugin suivante:
+
+-------------------------------------------------------------------------------
+
+ <plugins>
+ <plugin>
+ <groupId>org.nuiton</groupId>
+ <artifactId>maven-license-plugin</artifactId>
+ <version>2.4</version>
+ <configuration>
+ <verbose>false</verbose>
+ <addSvnKeyWords>true</addSvnKeyWords>
+ </configuration>
+ <executions>
+ <execution>
+ <id>first</id>
+ <goals>
+ <goal>update-file-header</goal>
+ </goals>
+ <phase>process-sources</phase>
+ <configuration>
+ <licenseName>gpl_v3</licenseName>
+ <includes>
+ <param>*Dao.java</param>
+ <param>*Bean.java</param>
+ <param>.*entities.*.xml</param>
+ </includes>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+
+-------------------------------------------------------------------------------
+
+ The update-file-header will be done only on java files (from "src") ending with
+ <"Dao"> and <"Bean"> and on xml files containing <"entities"> in their file name.
+
+
+Excludes
+
+ The excludes parameter allows to ignore some file in the update-file-header process.
+
+* Example
+
+ Given a pom with these plugin configuration
+
+-------------------------------------------------------------------------------
+
+ <plugins>
+ <plugin>
+ <groupId>org.nuiton</groupId>
+ <artifactId>maven-license-plugin</artifactId>
+ <version>2.4</version>
+ <configuration>
+ <verbose>false</verbose>
+ <addSvnKeyWords>true</addSvnKeyWords>
+ </configuration>
+ <executions>
+ <execution>
+ <id>first</id>
+ <goals>
+ <goal>update-file-header</goal>
+ </goals>
+ <phase>process-sources</phase>
+ <configuration>
+ <licenseName>gpl_v3</licenseName>
+ <excludes>
+ <param>*.png</param>
+ <param>*.txt</param>
+ <param>*Test.java</param>
+ </excludes>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+
+-------------------------------------------------------------------------------
+
+ The java files ending with "Test", the png files and the txt files will be
+ ignored by the update-file-header goal.
+
Modified: trunk/src/site/fr/apt/usage.apt
===================================================================
--- trunk/src/site/fr/apt/usage.apt 2010-10-01 09:33:48 UTC (rev 1833)
+++ trunk/src/site/fr/apt/usage.apt 2010-10-01 16:19:39 UTC (rev 1834)
@@ -50,6 +50,15 @@
Pour plus d'informations, référez-vous à
{{{./update-file-header-mojo.html}la page de détail}}.
+* configuration
+
+ Par défaut, en l'absence de fichier descripteur, tous les fichiers <*.java
+ *.rst *.xml et *.properties> contenus dans <"src/**/*"> sont traités. Il est cependant
+ nécessaire de préciser la license à utiliser, par le parametre <licenseName>.
+
+ Pour plus d'informations, référez-vous à
+ {{{./update-file-header-config.html}la page de détail}}.
+
Third-party
Le projet offre des goals pour traiter les THIRD-PARTY d'un projet.
1
0
Author: ymartel
Date: 2010-10-01 11:33:48 +0200 (Fri, 01 Oct 2010)
New Revision: 1833
Url: http://nuiton.org/repositories/revision/maven-license-plugin/1833
Log:
[third party] update site documentation about include/exclude, add french
version
Modified:
trunk/src/site/apt/usage.apt
trunk/src/site/fr/apt/usage.apt
Modified: trunk/src/site/apt/usage.apt
===================================================================
--- trunk/src/site/apt/usage.apt 2010-09-29 13:49:21 UTC (rev 1832)
+++ trunk/src/site/apt/usage.apt 2010-10-01 09:33:48 UTC (rev 1833)
@@ -262,7 +262,7 @@
** exclude groupIds
- While using configuration's property <<excludeGroupIds>> on third-party goals,
+ While using configuration's property <<excludeGroups>> on third-party goals,
it will remove all the dependencies came from the given groupIds fom the
THIRD-PARTY file.
@@ -306,7 +306,7 @@
** exclude artifactIds
- While using configuration's property <<excludeArtifactIds>> on third-party goals,
+ While using configuration's property <<excludeArtifacts>> on third-party goals,
it will remove all the dependencies came from the given artifactsIds fom the
THIRD-PARTY file.
@@ -351,7 +351,7 @@
** include groupIds
- While using configuration's property <<includeGroupIds>> on third-party goals,
+ While using configuration's property <<includeGroups>> on third-party goals,
it will include only the dependencies came from the given groupIds fom the
THIRD-PARTY file.
@@ -396,8 +396,8 @@
** include artifactIds
- While using configuration's property <<excludeArtifactIds>> on third-party goals,
- it will remove include onlu the dependencies came from the given artifactIds fom the
+ While using configuration's property <<excludeArtifacts>> on third-party goals,
+ it will include only the dependencies came from the given artifactIds fom the
THIRD-PARTY file.
*** Example
Modified: trunk/src/site/fr/apt/usage.apt
===================================================================
--- trunk/src/site/fr/apt/usage.apt 2010-09-29 13:49:21 UTC (rev 1832)
+++ trunk/src/site/fr/apt/usage.apt 2010-10-01 09:33:48 UTC (rev 1833)
@@ -247,6 +247,206 @@
(The Apache Software License, Version 2.0) JHLabs Image Processing Filters (com.jhlabs:filters:2.0.235 - http://www.jhlabs.com/ip/index.html)
-------------------------------------------------------------------------------
+* Filtrer les dépendances
+
+ <Depuis la version 2.3>, il est possible d'utiliser des filtres sur le THIRD-PARY,
+ en n'incluant que certaines dépendances, ou en excluant certaines.
+
+ * Inclure des ArtifactIds ou des GroupIds
+
+ Les propriétés includedArtifacts et includedGroups permettent de ne mentionner
+ que certaines dépendances, renseignées par leur ArtifactId ou le GroupId,
+ dans le fichier THIRD-PARTY.
+
+ * Exclude ArtifactIds or GroupIds
+
+ Les propriétés excludedArtifacts et excludesGroups permettent d'exclure certaines
+ dépendances du fichier de THIRD-PARTY.
+
+ * Inclusion - Exclusion : Priorité.
+
+ Le filtre d'exclusion est prioritaire sur le filtre d'inclusion. Aussi, si un
+ artifact est renseigné en includedArtifacts mais que son groupe est renseigné
+ dans le excludedArtifacts, l'artifact ne sera pas présent dans le fichier
+ THIRD-PARTY.
+
+** excludedgroups
+
+ En utilisant la propriété <<excludeGroups>> avec les goals third-party, cela
+ supprime du fichier THIRD-PARTY toutes les dépendances provenant des groupsIds
+ donnés.
+
+*** Exemple
+
+ Soit un pom avec les dépendances suivantes :
+
+-------------------------------------------------------------------------------
+
+ <dependencies>
+
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <version>1.1.1</version>
+ </dependency>
+
+ <dependency>
+ <groupId>com.jhlabs</groupId>
+ <artifactId>filters</artifactId>
+ <version>2.0.235</version>
+ </dependency>
+
+ <dependency>
+ <groupId>com.jhlabs</groupId>
+ <artifactId>javaproj</artifactId>
+ <version>1.0</version>
+ </dependency<
+
+ </dependencies>
+-------------------------------------------------------------------------------
+
+ En executant <mvn add-third-party -Dlicense.excludedGroups=com\.jhla.*>,
+ on obtient le fichier <<THIRD-PARTY>> suivant :
+
+-------------------------------------------------------------------------------
+List of 2 third-party dependencies.
+
+ (The Apache Software License, Version 2.0) Commons Logging (commons-logging:commons-logging:1.1.1 - http://commons.apache.org/logging)
+-------------------------------------------------------------------------------
+
+** excludedartifacts
+
+ En utilisant la propriété <<excludeArtifacts>> sur les goals third-party, cela
+ supprime du fichier THIRD PARTY toutes les dépendances correspondant artifactsIds renseignés.
+
+*** Exemple
+
+ Soit un pom avec les dependances suivantes :
+
+-------------------------------------------------------------------------------
+
+ <dependencies>
+
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <version>1.1.1</version>
+ </dependency>
+
+ <dependency>
+ <groupId>com.jhlabs</groupId>
+ <artifactId>filters</artifactId>
+ <version>2.0.235</version>
+ </dependency>
+
+ <dependency>
+ <groupId>com.jhlabs</groupId>
+ <artifactId>javaproj</artifactId>
+ <version>1.0</version>
+ </dependency<
+
+ </dependencies>
+-------------------------------------------------------------------------------
+
+ En executant <mvn add-third-party -Dlicense.excludedArtifacts=javaproj>,
+ on obtient le fichier <<THIRD-PARTY>> suivant :
+
+-------------------------------------------------------------------------------
+List of 2 third-party dependencies.
+
+ (Apache License, Version 2.0) JHLabs Image Processing Filters (com.jhlabs:filters:2.0.235 - http://www.jhlabs.com/ip/index.html)
+ (The Apache Software License, Version 2.0) Commons Logging (commons-logging:commons-logging:1.1.1 - http://commons.apache.org/logging)
+-------------------------------------------------------------------------------
+
+** includedGroups
+
+ L'utilisation de la propriété <<includeGroupIds>> avec les goals third-party
+ permet de renseigner le fichier THIRD-PARTY uniquement avec les dépendances
+ provenant des groupsIds donnés.
+
+*** Exemple
+
+ Soit un pom avec les dependances suivantes :
+
+-------------------------------------------------------------------------------
+
+ <dependencies>
+
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <version>1.1.1</version>
+ </dependency>
+
+ <dependency>
+ <groupId>com.jhlabs</groupId>
+ <artifactId>filters</artifactId>
+ <version>2.0.235</version>
+ </dependency>
+
+ <dependency>
+ <groupId>com.jhlabs</groupId>
+ <artifactId>javaproj</artifactId>
+ <version>1.0</version>
+ </dependency<
+
+ </dependencies>
+-------------------------------------------------------------------------------
+
+ En executant <mvn add-third-party -Dlicense.includedGroups=com\.jhlabs>,
+ on obtient le fichier <<THIRD-PARTY>> suivant :
+
+-------------------------------------------------------------------------------
+List of 2 third-party dependencies.
+
+ (Apache License, Version 2.0) JHLabs Image Processing Filters (com.jhlabs:filters:2.0.235 - http://www.jhlabs.com/ip/index.html)
+ (The Apache Software License, Version 2.0) JHlabs Java Projection Library (com.jhlabs:javaproj:1.0 - http://www.jhlabs.com/java/maps/proj/index.html)
+-------------------------------------------------------------------------------
+
+** includedArtifacts
+
+ L'utilisation de la propriété <<excludeArtifactIds>> sur les goals third-party
+ permet de n'inclure dans le fichier THIRD-PARTY que les artifacts renseignés.
+
+*** Example
+
+ Soit un pom avec les dependances suivantes :
+
+-------------------------------------------------------------------------------
+
+ <dependencies>
+
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <version>1.1.1</version>
+ </dependency>
+
+ <dependency>
+ <groupId>com.jhlabs</groupId>
+ <artifactId>filters</artifactId>
+ <version>2.0.235</version>
+ </dependency>
+
+ <dependency>
+ <groupId>com.jhlabs</groupId>
+ <artifactId>javaproj</artifactId>
+ <version>1.0</version>
+ </dependency<
+
+ </dependencies>
+-------------------------------------------------------------------------------
+
+ En executant <mvn add-third-party -Dlicense.includedArtifacts=filters>,
+ on obtient le fichier <<THIRD-PARTY>> suivant :
+
+-------------------------------------------------------------------------------
+List of 2 third-party dependencies.
+
+ (Apache License, Version 2.0) JHLabs Image Processing Filters (com.jhlabs:filters:2.0.235 - http://www.jhlabs.com/ip/index.html)
+-------------------------------------------------------------------------------
+
+
Obtenir des informations
* license-list goal
1
0
Author: ymartel
Date: 2010-09-29 15:49:21 +0200 (Wed, 29 Sep 2010)
New Revision: 1832
Url: http://nuiton.org/repositories/revision/maven-license-plugin/1832
Log:
[evol 884] Add auto detection of the headers to update on UpdateFileHeader Mojo
Become version 2.4
Added:
trunk/src/it/evol-884/
trunk/src/it/evol-884/update-file-header-specific/
trunk/src/it/evol-884/update-file-header-specific/LICENSE.txt
trunk/src/it/evol-884/update-file-header-specific/README.txt
trunk/src/it/evol-884/update-file-header-specific/changelog.txt
trunk/src/it/evol-884/update-file-header-specific/invoker.properties
trunk/src/it/evol-884/update-file-header-specific/pom.xml
trunk/src/it/evol-884/update-file-header-specific/src/
trunk/src/it/evol-884/update-file-header-specific/src/files/
trunk/src/it/evol-884/update-file-header-specific/src/files/apt/
trunk/src/it/evol-884/update-file-header-specific/src/files/apt/index.apt
trunk/src/it/evol-884/update-file-header-specific/src/files/apt/index2.apt
trunk/src/it/evol-884/update-file-header-specific/src/files/other/
trunk/src/it/evol-884/update-file-header-specific/src/files/other/athabaska.jpg
trunk/src/it/evol-884/update-file-header-specific/src/files/other/other.txt
trunk/src/it/evol-884/update-file-header-specific/src/files/properties/
trunk/src/it/evol-884/update-file-header-specific/src/files/properties/test.properties
trunk/src/it/evol-884/update-file-header-specific/src/files/properties/test2.properties
trunk/src/it/evol-884/update-file-header-specific/src/files/rst/
trunk/src/it/evol-884/update-file-header-specific/src/files/rst/index.rst
trunk/src/it/evol-884/update-file-header-specific/src/files/rst/index2.rst
trunk/src/it/evol-884/update-file-header-specific/src/files/xml/
trunk/src/it/evol-884/update-file-header-specific/src/files/xml/test.xml
trunk/src/it/evol-884/update-file-header-specific/src/files/xml/test2.xml
trunk/src/it/evol-884/update-file-header-specific/src/main/
trunk/src/it/evol-884/update-file-header-specific/src/main/java/
trunk/src/it/evol-884/update-file-header-specific/src/main/java/org/
trunk/src/it/evol-884/update-file-header-specific/src/main/java/org/nuiton/
trunk/src/it/evol-884/update-file-header-specific/src/main/java/org/nuiton/license/
trunk/src/it/evol-884/update-file-header-specific/src/main/java/org/nuiton/license/plugin/
trunk/src/it/evol-884/update-file-header-specific/src/main/java/org/nuiton/license/plugin/test/
trunk/src/it/evol-884/update-file-header-specific/src/main/java/org/nuiton/license/plugin/test/MyBean.java
trunk/src/it/evol-884/update-file-header-specific/src/main/java/org/nuiton/license/plugin/test/MyBean2.java
trunk/src/it/evol-884/update-file-header-specific/src/main/java/org/nuiton/license/plugin/test/MyBean3.java
trunk/src/it/evol-884/update-file-header-specific/verify.groovy
trunk/src/it/evol-884/update-file-header/
trunk/src/it/evol-884/update-file-header/LICENSE.txt
trunk/src/it/evol-884/update-file-header/README.txt
trunk/src/it/evol-884/update-file-header/changelog.txt
trunk/src/it/evol-884/update-file-header/invoker.properties
trunk/src/it/evol-884/update-file-header/pom.xml
trunk/src/it/evol-884/update-file-header/src/
trunk/src/it/evol-884/update-file-header/src/files/
trunk/src/it/evol-884/update-file-header/src/files/apt/
trunk/src/it/evol-884/update-file-header/src/files/apt/index.apt
trunk/src/it/evol-884/update-file-header/src/files/apt/index2.apt
trunk/src/it/evol-884/update-file-header/src/files/properties/
trunk/src/it/evol-884/update-file-header/src/files/properties/test.properties
trunk/src/it/evol-884/update-file-header/src/files/properties/test2.properties
trunk/src/it/evol-884/update-file-header/src/files/rst/
trunk/src/it/evol-884/update-file-header/src/files/rst/index.rst
trunk/src/it/evol-884/update-file-header/src/files/rst/index2.rst
trunk/src/it/evol-884/update-file-header/src/files/xml/
trunk/src/it/evol-884/update-file-header/src/files/xml/test.xml
trunk/src/it/evol-884/update-file-header/src/files/xml/test2.xml
trunk/src/it/evol-884/update-file-header/src/main/
trunk/src/it/evol-884/update-file-header/src/main/java/
trunk/src/it/evol-884/update-file-header/src/main/java/org/
trunk/src/it/evol-884/update-file-header/src/main/java/org/nuiton/
trunk/src/it/evol-884/update-file-header/src/main/java/org/nuiton/license/
trunk/src/it/evol-884/update-file-header/src/main/java/org/nuiton/license/plugin/
trunk/src/it/evol-884/update-file-header/src/main/java/org/nuiton/license/plugin/test/
trunk/src/it/evol-884/update-file-header/src/main/java/org/nuiton/license/plugin/test/MyBean.java
trunk/src/it/evol-884/update-file-header/src/main/java/org/nuiton/license/plugin/test/MyBean2.java
trunk/src/it/evol-884/update-file-header/src/main/java/org/nuiton/license/plugin/test/MyBean3.java
trunk/src/it/evol-884/update-file-header/verify.groovy
trunk/src/it/evol-884/update-project-license/
trunk/src/it/evol-884/update-project-license/LICENSE.txt
trunk/src/it/evol-884/update-project-license/README.txt
trunk/src/it/evol-884/update-project-license/changelog.txt
trunk/src/it/evol-884/update-project-license/invoker.properties
trunk/src/it/evol-884/update-project-license/pom.xml
trunk/src/it/evol-884/update-project-license/src/
trunk/src/it/evol-884/update-project-license/src/main/
trunk/src/it/evol-884/update-project-license/src/main/java/
trunk/src/it/evol-884/update-project-license/src/main/java/org/
trunk/src/it/evol-884/update-project-license/src/main/java/org/nuiton/
trunk/src/it/evol-884/update-project-license/src/main/java/org/nuiton/license/
trunk/src/it/evol-884/update-project-license/src/main/java/org/nuiton/license/plugin/
trunk/src/it/evol-884/update-project-license/src/main/java/org/nuiton/license/plugin/test/
trunk/src/it/evol-884/update-project-license/src/main/java/org/nuiton/license/plugin/test/MyBean.java
trunk/src/it/evol-884/update-project-license/src/main/java/org/nuiton/license/plugin/test/MyBean2.java
trunk/src/it/evol-884/update-project-license/src/main/java/org/nuiton/license/plugin/test/MyBean3.java
trunk/src/it/evol-884/update-project-license/verify.groovy
Modified:
trunk/LICENSE.txt
trunk/README.txt
trunk/changelog.txt
trunk/pom.xml
trunk/src/it/add-third-party/no-deps/invoker.properties
trunk/src/it/add-third-party/no-deps/pom.xml
trunk/src/it/add-third-party/no-deps/verify.groovy
trunk/src/it/add-third-party/with-deps/invoker.properties
trunk/src/it/add-third-party/with-deps/pom.xml
trunk/src/it/add-third-party/with-deps/verify.groovy
trunk/src/it/evol-818/excluded-included/invoker.properties
trunk/src/it/evol-818/excluded-included/pom.xml
trunk/src/it/evol-818/excluded-included/verify.groovy
trunk/src/it/evol-818/multimodule-filters/child1/pom.xml
trunk/src/it/evol-818/multimodule-filters/child2/pom.xml
trunk/src/it/evol-818/multimodule-filters/invoker.properties
trunk/src/it/evol-818/multimodule-filters/pom.xml
trunk/src/it/evol-818/multimodule-filters/verify.groovy
trunk/src/it/settings.xml
trunk/src/it/update-file-header/LICENSE.txt
trunk/src/it/update-file-header/README.txt
trunk/src/it/update-file-header/changelog.txt
trunk/src/it/update-file-header/invoker.properties
trunk/src/it/update-file-header/pom.xml
trunk/src/it/update-file-header/src/files/apt/index.apt
trunk/src/it/update-file-header/src/files/apt/index2.apt
trunk/src/it/update-file-header/src/files/properties/test.properties
trunk/src/it/update-file-header/src/files/properties/test2.properties
trunk/src/it/update-file-header/src/files/rst/index.rst
trunk/src/it/update-file-header/src/files/rst/index2.rst
trunk/src/it/update-file-header/src/files/xml/test.xml
trunk/src/it/update-file-header/src/files/xml/test2.xml
trunk/src/it/update-file-header/src/license/project.xml
trunk/src/it/update-file-header/src/main/java/org/nuiton/license/plugin/test/MyBean.java
trunk/src/it/update-file-header/src/main/java/org/nuiton/license/plugin/test/MyBean2.java
trunk/src/it/update-file-header/src/main/java/org/nuiton/license/plugin/test/MyBean3.java
trunk/src/it/update-file-header/verify.groovy
trunk/src/it/update-project-license/LICENSE.txt
trunk/src/it/update-project-license/README.txt
trunk/src/it/update-project-license/changelog.txt
trunk/src/it/update-project-license/invoker.properties
trunk/src/it/update-project-license/pom.xml
trunk/src/it/update-project-license/src/license/project.xml
trunk/src/it/update-project-license/src/main/java/org/nuiton/license/plugin/test/MyBean.java
trunk/src/it/update-project-license/src/main/java/org/nuiton/license/plugin/test/MyBean2.java
trunk/src/it/update-project-license/src/main/java/org/nuiton/license/plugin/test/MyBean3.java
trunk/src/it/update-project-license/verify.groovy
trunk/src/license/project.xml
trunk/src/main/java/org/nuiton/license/plugin/AbstractLicenseMojo.java
trunk/src/main/java/org/nuiton/license/plugin/AbstractLicenseWithDescriptorMojo.java
trunk/src/main/java/org/nuiton/license/plugin/AddThirdPartyMojo.java
trunk/src/main/java/org/nuiton/license/plugin/CommentStyleListMojo.java
trunk/src/main/java/org/nuiton/license/plugin/LicenseListMojo.java
trunk/src/main/java/org/nuiton/license/plugin/UpdateFileHeaderMojo.java
trunk/src/main/java/org/nuiton/license/plugin/UpdateProjectLicenseMojo.java
trunk/src/main/java/org/nuiton/license/plugin/header/FileHeader.java
trunk/src/main/java/org/nuiton/license/plugin/header/FileHeaderFilter.java
trunk/src/main/java/org/nuiton/license/plugin/header/FileHeaderProcessor.java
trunk/src/main/java/org/nuiton/license/plugin/header/FileHeaderProcessorConfiguration.java
trunk/src/main/java/org/nuiton/license/plugin/header/InvalideFileHeaderException.java
trunk/src/main/java/org/nuiton/license/plugin/header/UpdateFileHeaderFilter.java
trunk/src/main/java/org/nuiton/license/plugin/header/package.html
trunk/src/main/java/org/nuiton/license/plugin/header/transformer/AbstractFileHeaderTransformer.java
trunk/src/main/java/org/nuiton/license/plugin/header/transformer/AptFileHeaderTransformer.java
trunk/src/main/java/org/nuiton/license/plugin/header/transformer/FileHeaderTransformer.java
trunk/src/main/java/org/nuiton/license/plugin/header/transformer/JavaFileHeaderTransformer.java
trunk/src/main/java/org/nuiton/license/plugin/header/transformer/PropertiesFileHeaderTransformer.java
trunk/src/main/java/org/nuiton/license/plugin/header/transformer/RstFileHeaderTransformer.java
trunk/src/main/java/org/nuiton/license/plugin/header/transformer/XmlFileHeaderTransformer.java
trunk/src/main/java/org/nuiton/license/plugin/header/transformer/package.html
trunk/src/main/java/org/nuiton/license/plugin/model/License.java
trunk/src/main/java/org/nuiton/license/plugin/model/LicenseRepository.java
trunk/src/main/java/org/nuiton/license/plugin/model/LicenseStore.java
trunk/src/main/java/org/nuiton/license/plugin/model/descriptor/package.html
trunk/src/main/java/org/nuiton/license/plugin/model/package.html
trunk/src/main/java/org/nuiton/license/plugin/package.html
trunk/src/main/mdo/descriptor.mdo
trunk/src/main/resources/META-INF/licenses/agpl_v3/header.txt
trunk/src/main/resources/META-INF/licenses/agpl_v3/license.txt
trunk/src/main/resources/META-INF/licenses/apache_v2/header.txt
trunk/src/main/resources/META-INF/licenses/apache_v2/license.txt
trunk/src/main/resources/META-INF/licenses/cddl_v1/header.txt
trunk/src/main/resources/META-INF/licenses/cddl_v1/license.txt
trunk/src/main/resources/META-INF/licenses/fdl_v1_3/header.txt
trunk/src/main/resources/META-INF/licenses/fdl_v1_3/license.txt
trunk/src/main/resources/META-INF/licenses/gpl_v1/header.txt
trunk/src/main/resources/META-INF/licenses/gpl_v1/license.txt
trunk/src/main/resources/META-INF/licenses/gpl_v2/header.txt
trunk/src/main/resources/META-INF/licenses/gpl_v2/license.txt
trunk/src/main/resources/META-INF/licenses/gpl_v3/header.txt
trunk/src/main/resources/META-INF/licenses/gpl_v3/license.txt
trunk/src/main/resources/META-INF/licenses/lgpl_v2_1/header.txt
trunk/src/main/resources/META-INF/licenses/lgpl_v2_1/license.txt
trunk/src/main/resources/META-INF/licenses/lgpl_v3/header.txt
trunk/src/main/resources/META-INF/licenses/lgpl_v3/license.txt
trunk/src/main/resources/META-INF/licenses/licenses.properties
trunk/src/main/resources/META-INF/licenses/mit/header.txt
trunk/src/main/resources/META-INF/licenses/mit/license.txt
trunk/src/main/resources/META-INF/plexus/components.xml
trunk/src/main/resources/log4j.properties
trunk/src/site/apt/descriptor.apt
trunk/src/site/apt/header.apt
trunk/src/site/apt/index.apt
trunk/src/site/apt/usage.apt
trunk/src/site/fr/apt/descriptor.apt
trunk/src/site/fr/apt/header.apt
trunk/src/site/fr/apt/index.apt
trunk/src/site/fr/apt/usage.apt
trunk/src/site/resources/licenseProjectDescriptor-1.0.0.xsd
trunk/src/site/site_en.xml
trunk/src/site/site_fr.xml
trunk/src/test/java/org/nuiton/license/plugin/UpdateFileHeaderMojoTest.java
trunk/src/test/java/org/nuiton/license/plugin/UpdateProjectLicenseMojoTest.java
trunk/src/test/java/org/nuiton/license/plugin/header/transformer/AbstractFileHeaderTransformerTest.java
trunk/src/test/java/org/nuiton/license/plugin/header/transformer/XmlFileHeaderTransformerTest.java
trunk/src/test/java/org/nuiton/license/plugin/model/LicenseRepositoryTest.java
trunk/src/test/java/org/nuiton/license/plugin/model/LicenseStoreTest.java
trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/addLicense.xml
trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/addLicense/project.xml
trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/addLicense/src/MyBean.java
trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/all.xml
trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/all/project.xml
trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/all/src/Add.java
trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/all/src/Fail.java
trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/all/src/Ignore.java
trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/all/src/Update.java
trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/failLicense.xml
trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/failLicense/project.xml
trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/failLicense/src/MyBean.java
trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/ignoreLicense.xml
trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/ignoreLicense/project.xml
trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/ignoreLicense/src/MyBean.java
trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/skip.xml
trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/updateLicense.xml
trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/updateLicense/project.xml
trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/updateLicense/src/MyBean.java
trunk/src/test/resources/org/nuiton/license/plugin/updateLicenseMojoTest/addLicense.xml
trunk/src/test/resources/org/nuiton/license/plugin/updateLicenseMojoTest/addLicense/project.xml
trunk/src/test/resources/org/nuiton/license/plugin/updateLicenseMojoTest/addLicense/src/MyBean.java
trunk/src/test/resources/org/nuiton/license/plugin/updateLicenseMojoTest/ignoreLicense.xml
trunk/src/test/resources/org/nuiton/license/plugin/updateLicenseMojoTest/ignoreLicense/project.xml
trunk/src/test/resources/org/nuiton/license/plugin/updateLicenseMojoTest/ignoreLicense/src/MyBean.java
trunk/src/test/resources/org/nuiton/license/plugin/updateLicenseMojoTest/skip.xml
trunk/src/test/resources/org/nuiton/license/plugin/updateLicenseMojoTest/updateLicense.xml
trunk/src/test/resources/org/nuiton/license/plugin/updateLicenseMojoTest/updateLicense/project.xml
trunk/src/test/resources/org/nuiton/license/plugin/updateLicenseMojoTest/updateLicense/src/MyBean.java
trunk/src/test/resources/org/nuiton/license/plugin/updateProjectLicenseMojoTest/licenseOne.txt
trunk/src/test/resources/org/nuiton/license/plugin/updateProjectLicenseMojoTest/licenseTwo.txt
trunk/src/test/resources/org/nuiton/license/plugin/updateProjectLicenseMojoTest/projectOne.xml
trunk/src/test/resources/org/nuiton/license/plugin/updateProjectLicenseMojoTest/projectTwo.xml
trunk/src/test/resources/org/nuiton/license/plugin/updateProjectLicenseMojoTest/skip.xml
trunk/src/test/resources/org/nuiton/license/plugin/updateProjectLicenseMojoTest/testOne.xml
trunk/src/test/resources/org/nuiton/license/plugin/updateProjectLicenseMojoTest/testTwo.xml
Property changes on: trunk/LICENSE.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/README.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/changelog.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2010-09-29 12:33:39 UTC (rev 1831)
+++ trunk/pom.xml 2010-09-29 13:49:21 UTC (rev 1832)
@@ -38,7 +38,7 @@
</parent>
<artifactId>maven-license-plugin</artifactId>
- <version>2.3.2-SNAPSHOT</version>
+ <version>2.4-SNAPSHOT</version>
<dependencies>
@@ -449,12 +449,15 @@
<pomInclude>add-third-party/with-deps/pom.xml</pomInclude>
<pomInclude>update-file-header/pom.xml</pomInclude>
<pomInclude>update-project-license/pom.xml</pomInclude>
+ <pomInclude>evol-884/update-project-license/pom.xml</pomInclude>
+ <pomInclude>evol-884/update-file-header/pom.xml</pomInclude>
+ <pomInclude>evol-884/update-file-header-specific/pom.xml</pomInclude>
</pomIncludes>
<postBuildHookScript>verify</postBuildHookScript>
<localRepositoryPath>${basedir}/target/local-repo</localRepositoryPath>
<settingsFile>src/it/settings.xml</settingsFile>
<cloneProjectsTo>${project.build.directory}/its</cloneProjectsTo>
- <!--<debug>true</debug>-->
+ <debug>${maven.verbose}</debug>
</configuration>
<executions>
<execution>
Property changes on: trunk/pom.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/add-third-party/no-deps/invoker.properties
___________________________________________________________________
Modified: svn:keywords
- "Author Date Id Revision HeadURL
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/add-third-party/no-deps/pom.xml
___________________________________________________________________
Modified: svn:keywords
- "Author Date Id Revision HeadURL
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/add-third-party/no-deps/verify.groovy
___________________________________________________________________
Modified: svn:keywords
- "Author Date Id Revision HeadURL
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/add-third-party/with-deps/invoker.properties
___________________________________________________________________
Modified: svn:keywords
- "Author Date Id Revision HeadURL
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/add-third-party/with-deps/pom.xml
___________________________________________________________________
Modified: svn:keywords
- "Author Date Id Revision HeadURL
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/add-third-party/with-deps/verify.groovy
___________________________________________________________________
Modified: svn:keywords
- "Author Date Id Revision HeadURL
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/evol-818/excluded-included/invoker.properties
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/evol-818/excluded-included/pom.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/evol-818/excluded-included/verify.groovy
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/evol-818/multimodule-filters/child1/pom.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/evol-818/multimodule-filters/child2/pom.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/evol-818/multimodule-filters/invoker.properties
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/evol-818/multimodule-filters/pom.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/evol-818/multimodule-filters/verify.groovy
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/it/evol-884/update-file-header/LICENSE.txt
===================================================================
--- trunk/src/it/evol-884/update-file-header/LICENSE.txt (rev 0)
+++ trunk/src/it/evol-884/update-file-header/LICENSE.txt 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,166 @@
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+
+ This version of the GNU Lesser General Public License incorporates
+the terms and conditions of version 3 of the GNU General Public
+License, supplemented by the additional permissions listed below.
+
+ 0. Additional Definitions.
+
+ As used herein, "this License" refers to version 3 of the GNU Lesser
+General Public License, and the "GNU GPL" refers to version 3 of the GNU
+General Public License.
+
+ "The Library" refers to a covered work governed by this License,
+other than an Application or a Combined Work as defined below.
+
+ An "Application" is any work that makes use of an interface provided
+by the Library, but which is not otherwise based on the Library.
+Defining a subclass of a class defined by the Library is deemed a mode
+of using an interface provided by the Library.
+
+ A "Combined Work" is a work produced by combining or linking an
+Application with the Library. The particular version of the Library
+with which the Combined Work was made is also called the "Linked
+Version".
+
+ The "Minimal Corresponding Source" for a Combined Work means the
+Corresponding Source for the Combined Work, excluding any source code
+for portions of the Combined Work that, considered in isolation, are
+based on the Application, and not on the Linked Version.
+
+ The "Corresponding Application Code" for a Combined Work means the
+object code and/or source code for the Application, including any data
+and utility programs needed for reproducing the Combined Work from the
+Application, but excluding the System Libraries of the Combined Work.
+
+ 1. Exception to Section 3 of the GNU GPL.
+
+ You may convey a covered work under sections 3 and 4 of this License
+without being bound by section 3 of the GNU GPL.
+
+ 2. Conveying Modified Versions.
+
+ If you modify a copy of the Library, and, in your modifications, a
+facility refers to a function or data to be supplied by an Application
+that uses the facility (other than as an argument passed when the
+facility is invoked), then you may convey a copy of the modified
+version:
+
+ a) under this License, provided that you make a good faith effort to
+ ensure that, in the event an Application does not supply the
+ function or data, the facility still operates, and performs
+ whatever part of its purpose remains meaningful, or
+
+ b) under the GNU GPL, with none of the additional permissions of
+ this License applicable to that copy.
+
+ 3. Object Code Incorporating Material from Library Header Files.
+
+ The object code form of an Application may incorporate material from
+a header file that is part of the Library. You may convey such object
+code under terms of your choice, provided that, if the incorporated
+material is not limited to numerical parameters, data structure
+layouts and accessors, or small macros, inline functions and templates
+(ten or fewer lines in length), you do both of the following:
+
+ a) Give prominent notice with each copy of the object code that the
+ Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the object code with a copy of the GNU GPL and this license
+ document.
+
+ 4. Combined Works.
+
+ You may convey a Combined Work under terms of your choice that,
+taken together, effectively do not restrict modification of the
+portions of the Library contained in the Combined Work and reverse
+engineering for debugging such modifications, if you also do each of
+the following:
+
+ a) Give prominent notice with each copy of the Combined Work that
+ the Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
+ document.
+
+ c) For a Combined Work that displays copyright notices during
+ execution, include the copyright notice for the Library among
+ these notices, as well as a reference directing the user to the
+ copies of the GNU GPL and this license document.
+
+ d) Do one of the following:
+
+ 0) Convey the Minimal Corresponding Source under the terms of this
+ License, and the Corresponding Application Code in a form
+ suitable for, and under terms that permit, the user to
+ recombine or relink the Application with a modified version of
+ the Linked Version to produce a modified Combined Work, in the
+ manner specified by section 6 of the GNU GPL for conveying
+ Corresponding Source.
+
+ 1) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (a) uses at run time
+ a copy of the Library already present on the user's computer
+ system, and (b) will operate properly with a modified version
+ of the Library that is interface-compatible with the Linked
+ Version.
+
+ e) Provide Installation Information, but only if you would otherwise
+ be required to provide such information under section 6 of the
+ GNU GPL, and only to the extent that such information is
+ necessary to install and execute a modified version of the
+ Combined Work produced by recombining or relinking the
+ Application with a modified version of the Linked Version. (If
+ you use option 4d0, the Installation Information must accompany
+ the Minimal Corresponding Source and Corresponding Application
+ Code. If you use option 4d1, you must provide the Installation
+ Information in the manner specified by section 6 of the GNU GPL
+ for conveying Corresponding Source.)
+
+ 5. Combined Libraries.
+
+ You may place library facilities that are a work based on the
+Library side by side in a single library together with other library
+facilities that are not Applications and are not covered by this
+License, and convey such a combined library under terms of your
+choice, if you do both of the following:
+
+ a) Accompany the combined library with a copy of the same work based
+ on the Library, uncombined with any other library facilities,
+ conveyed under the terms of this License.
+
+ b) Give prominent notice with the combined library that part of it
+ is a work based on the Library, and explaining where to find the
+ accompanying uncombined form of the same work.
+
+ 6. Revised Versions of the GNU Lesser General Public License.
+
+ The Free Software Foundation may publish revised and/or new versions
+of the GNU Lesser General Public License from time to time. Such new
+versions will be similar in spirit to the present version, but may
+differ in detail to address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Library as you received it specifies that a certain numbered version
+of the GNU Lesser General Public License "or any later version"
+applies to it, you have the option of following the terms and
+conditions either of that published version or of any later version
+published by the Free Software Foundation. If the Library as you
+received it does not specify a version number of the GNU Lesser
+General Public License, you may choose any version of the GNU Lesser
+General Public License ever published by the Free Software Foundation.
+
+ If the Library as you received it specifies that a proxy can decide
+whether future versions of the GNU Lesser General Public License shall
+apply, that proxy's public statement of acceptance of any version is
+permanent authorization for you to choose that version for the
+Library.
+
Property changes on: trunk/src/it/evol-884/update-file-header/LICENSE.txt
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/it/evol-884/update-file-header/README.txt
===================================================================
--- trunk/src/it/evol-884/update-file-header/README.txt (rev 0)
+++ trunk/src/it/evol-884/update-file-header/README.txt 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,2 @@
+To test parserJava on a new project (says a project with no i18n translations)
+At the end we should have in target/generated-sources/i18n getters detected.
Property changes on: trunk/src/it/evol-884/update-file-header/README.txt
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/it/evol-884/update-file-header/changelog.txt
===================================================================
--- trunk/src/it/evol-884/update-file-header/changelog.txt (rev 0)
+++ trunk/src/it/evol-884/update-file-header/changelog.txt 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1 @@
+see the changelog of org.nuiton:i18n project.
\ No newline at end of file
Property changes on: trunk/src/it/evol-884/update-file-header/changelog.txt
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/it/evol-884/update-file-header/invoker.properties
===================================================================
--- trunk/src/it/evol-884/update-file-header/invoker.properties (rev 0)
+++ trunk/src/it/evol-884/update-file-header/invoker.properties 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,21 @@
+# A comma or space separated list of goals/phases to execute, may
+# specify an empty list to execute the default goal of the IT project
+invoker.goals=clean compile
+
+# Optionally, a list of goals to run during further invocations of Maven
+#invoker.goals.2=${project.groupId}:${project.artifactId}:${project.version}:run
+
+# A comma or space separated list of profiles to activate
+#invoker.profiles=run-all run-once
+
+# The value for the environment variable MAVEN_OPTS
+#invoker.mavenOpts=-Dfile.encoding=UTF-16 -Xms32m -Xmx256m
+
+# Possible values are "fail-fast" (default), "fail-at-end" and "fail-never"
+invoker.failureBehavior=fail-fast
+
+# The expected result of the build, possible values are "success" (default) and "failure"
+#invoker.buildResult=success
+
+# A boolean value controlling the -N flag, defaults to "false"
+#invoker.nonRecursive=false
Property changes on: trunk/src/it/evol-884/update-file-header/invoker.properties
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/it/evol-884/update-file-header/pom.xml
===================================================================
--- trunk/src/it/evol-884/update-file-header/pom.xml (rev 0)
+++ trunk/src/it/evol-884/update-file-header/pom.xml 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.nuiton.license.test</groupId>
+ <artifactId>test-update-file-header</artifactId>
+ <version>@pom.version@</version>
+
+ <name>License Test :: update-file-header</name>
+
+ <inceptionYear>2012</inceptionYear>
+
+ <organization>
+ <name>License Test</name>
+ </organization>
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <licenseName>gpl_v3</licenseName>
+ </properties>
+ <build>
+
+ <plugins>
+
+ <plugin>
+ <groupId>org.nuiton</groupId>
+ <artifactId>maven-license-plugin</artifactId>
+ <version>@pom.version@</version>
+ <configuration>
+ <verbose>true</verbose>
+ <addSvnKeyWords>true</addSvnKeyWords>
+ </configuration>
+ <executions>
+ <execution>
+ <id>first</id>
+ <goals>
+ <goal>update-file-header</goal>
+ </goals>
+ <phase>process-sources</phase>
+ </execution>
+ <execution>
+ <!-- this execution is to test with no files -->
+ <id>second</id>
+ <goals>
+ <goal>update-file-header</goal>
+ </goals>
+ <phase>compile</phase>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
+
+
Property changes on: trunk/src/it/evol-884/update-file-header/pom.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/it/evol-884/update-file-header/src/files/apt/index.apt
===================================================================
--- trunk/src/it/evol-884/update-file-header/src/files/apt/index.apt (rev 0)
+++ trunk/src/it/evol-884/update-file-header/src/files/apt/index.apt 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1 @@
+My file
Property changes on: trunk/src/it/evol-884/update-file-header/src/files/apt/index.apt
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/it/evol-884/update-file-header/src/files/apt/index2.apt
===================================================================
--- trunk/src/it/evol-884/update-file-header/src/files/apt/index2.apt (rev 0)
+++ trunk/src/it/evol-884/update-file-header/src/files/apt/index2.apt 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,25 @@
+~~~
+~~ #%L
+~~ License Test :: update-file-header
+~~
+~~ $Id$
+~~ $HeadURL$
+~~ %%
+~~ Copyright (C) 2012 License Test
+~~ %%
+~~ This program is free software: you can redistribute it and/or modify
+~~ it under the terms of the GNU General Public License as
+~~ published by the Free Software Foundation, either version 3 of the
+~~ License, or (at your option) any later version.
+~~
+~~ This program is distributed in the hope that it will be useful,
+~~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+~~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+~~ GNU General Public License for more details.
+~~
+~~ You should have received a copy of the GNU General Public
+~~ License along with this program. If not, see
+~~ <http://www.gnu.org/licenses/gpl-3.0.html>.
+~~ #L%
+~~~
+My file
Property changes on: trunk/src/it/evol-884/update-file-header/src/files/apt/index2.apt
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/it/evol-884/update-file-header/src/files/properties/test.properties
===================================================================
--- trunk/src/it/evol-884/update-file-header/src/files/properties/test.properties (rev 0)
+++ trunk/src/it/evol-884/update-file-header/src/files/properties/test.properties 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1 @@
+my.key=true
\ No newline at end of file
Property changes on: trunk/src/it/evol-884/update-file-header/src/files/properties/test.properties
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/it/evol-884/update-file-header/src/files/properties/test2.properties
===================================================================
--- trunk/src/it/evol-884/update-file-header/src/files/properties/test2.properties (rev 0)
+++ trunk/src/it/evol-884/update-file-header/src/files/properties/test2.properties 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,26 @@
+###
+# #%L
+# License Test :: update-file-header
+#
+# $Id$
+# $HeadURL$
+# %%
+# Copyright (C) 2012 License Test
+# %%
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with this program. If not, see
+# <http://www.gnu.org/licenses/gpl-3.0.html>.
+# #L%
+###
+
+my.key=true
\ No newline at end of file
Property changes on: trunk/src/it/evol-884/update-file-header/src/files/properties/test2.properties
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/it/evol-884/update-file-header/src/files/rst/index.rst
===================================================================
--- trunk/src/it/evol-884/update-file-header/src/files/rst/index.rst (rev 0)
+++ trunk/src/it/evol-884/update-file-header/src/files/rst/index.rst 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1 @@
+My File
\ No newline at end of file
Property changes on: trunk/src/it/evol-884/update-file-header/src/files/rst/index.rst
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/it/evol-884/update-file-header/src/files/rst/index2.rst
===================================================================
--- trunk/src/it/evol-884/update-file-header/src/files/rst/index2.rst (rev 0)
+++ trunk/src/it/evol-884/update-file-header/src/files/rst/index2.rst 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,26 @@
+My file
+
+.. -
+.. * #%L
+.. * Maven License Plugin
+.. *
+.. * $Id$
+.. * $HeadURL$
+.. * %%
+.. * Copyright (C) 2008 - 2010 CodeLutin
+.. * %%
+.. * This program is free software: you can redistribute it and/or modify
+.. * it under the terms of the GNU Lesser General Public License as
+.. * published by the Free Software Foundation, either version 3 of the
+.. * License, or (at your option) any later version.
+.. *
+.. * This program is distributed in the hope that it will be useful,
+.. * but WITHOUT ANY WARRANTY; without even the implied warranty of
+.. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+.. * GNU General Lesser Public License for more details.
+.. *
+.. * You should have received a copy of the GNU General Lesser Public
+.. * License along with this program. If not, see
+.. * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+.. * #L%
+..
\ No newline at end of file
Property changes on: trunk/src/it/evol-884/update-file-header/src/files/rst/index2.rst
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/it/evol-884/update-file-header/src/files/xml/test.xml
===================================================================
--- trunk/src/it/evol-884/update-file-header/src/files/xml/test.xml (rev 0)
+++ trunk/src/it/evol-884/update-file-header/src/files/xml/test.xml 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,2 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<yo/>
\ No newline at end of file
Property changes on: trunk/src/it/evol-884/update-file-header/src/files/xml/test.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/it/evol-884/update-file-header/src/files/xml/test2.xml
===================================================================
--- trunk/src/it/evol-884/update-file-header/src/files/xml/test2.xml (rev 0)
+++ trunk/src/it/evol-884/update-file-header/src/files/xml/test2.xml 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,27 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!--
+ #%L
+ License Test :: update-file-header
+
+ $Id$
+ $HeadURL$
+ %%
+ Copyright (C) 2012 License Test
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public
+ License along with this program. If not, see
+ <http://www.gnu.org/licenses/gpl-3.0.html>.
+ #L%
+ -->
+
+<yo/>
\ No newline at end of file
Property changes on: trunk/src/it/evol-884/update-file-header/src/files/xml/test2.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/it/evol-884/update-file-header/src/main/java/org/nuiton/license/plugin/test/MyBean.java
===================================================================
--- trunk/src/it/evol-884/update-file-header/src/main/java/org/nuiton/license/plugin/test/MyBean.java (rev 0)
+++ trunk/src/it/evol-884/update-file-header/src/main/java/org/nuiton/license/plugin/test/MyBean.java 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,10 @@
+package org.nuiton.license.plugin.test;
+
+/**
+ * this class has no license, a new default one will be added.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 2.1
+ */
+public class MyBean {
+}
Property changes on: trunk/src/it/evol-884/update-file-header/src/main/java/org/nuiton/license/plugin/test/MyBean.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/it/evol-884/update-file-header/src/main/java/org/nuiton/license/plugin/test/MyBean2.java
===================================================================
--- trunk/src/it/evol-884/update-file-header/src/main/java/org/nuiton/license/plugin/test/MyBean2.java (rev 0)
+++ trunk/src/it/evol-884/update-file-header/src/main/java/org/nuiton/license/plugin/test/MyBean2.java 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,20 @@
+/*
+ * #%L
+ * License Test :: do NOT update!
+ * %%
+ * Copyright (C) 2010 Tony
+ * %%
+ * Fake to be removed!
+ * #L%
+ */
+
+/**
+ * this class owns a header, only license will be updated.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 2.1
+ */
+package org.nuiton.license.plugin.test;
+
+public class MyBean2 {
+}
Property changes on: trunk/src/it/evol-884/update-file-header/src/main/java/org/nuiton/license/plugin/test/MyBean2.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/it/evol-884/update-file-header/src/main/java/org/nuiton/license/plugin/test/MyBean3.java
===================================================================
--- trunk/src/it/evol-884/update-file-header/src/main/java/org/nuiton/license/plugin/test/MyBean3.java (rev 0)
+++ trunk/src/it/evol-884/update-file-header/src/main/java/org/nuiton/license/plugin/test/MyBean3.java 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,18 @@
+/*
+ * %%Ignore-License
+ *
+ * yet another license
+ *
+ * Copyright (C) 2000 Codelutin Do not update!
+ */
+
+/**
+ * this class owns a ignore license header and will not be updated.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 2.1
+ */
+package org.nuiton.license.plugin.test;
+
+public class MyBean3 {
+}
Property changes on: trunk/src/it/evol-884/update-file-header/src/main/java/org/nuiton/license/plugin/test/MyBean3.java
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/it/evol-884/update-file-header/verify.groovy
===================================================================
--- trunk/src/it/evol-884/update-file-header/verify.groovy (rev 0)
+++ trunk/src/it/evol-884/update-file-header/verify.groovy 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,111 @@
+
+file = new File(basedir, 'src/main/java/org/nuiton/license/plugin/test/MyBean.java');
+assert file.exists();
+
+content = file.text;
+assert content.contains( 'Copyright (C) 2012 License Test' );
+
+file = new File(basedir, 'src/main/java/org/nuiton/license/plugin/test/MyBean2.java');
+assert file.exists();
+
+content = file.text;
+assert content.contains( 'Copyright (C) 2010 Tony' );
+assert content.contains( 'do NOT update!' );
+assert !content.contains( 'Fake to be removed!' );
+
+file = new File(basedir, 'src/main/java/org/nuiton/license/plugin/test/MyBean3.java');
+assert file.exists();
+
+content = file.text;
+assert content.contains( ' * %%Ignore-License' );
+assert content.contains( ' * yet another license' );
+assert content.contains( ' * Copyright (C) 2000 Codelutin Do not update!' );
+
+file = new File(basedir, 'src/files/apt/index.apt');
+assert file.exists();
+
+content = file.text;
+assert content.contains( 'Copyright (C)' );
+assert content.contains( '~~ #%L' );
+assert content.contains( '~~ #L%' );
+assert content.contains( '$Id' );
+assert ! content.contains( '~~ ~~');
+
+
+file = new File(basedir, 'src/files/apt/index2.apt');
+assert file.exists();
+
+content = file.text;
+assert content.contains( 'Copyright (C)' );
+assert content.contains( '~~ #%L' );
+assert content.contains( '~~ #L%' );
+assert content.contains( '$Id' );
+assert ! content.contains( '~~ ~~');
+
+
+file = new File(basedir, 'src/files/rst/index.rst');
+assert file.exists();
+
+content = file.text;
+assert content.contains( 'Copyright (C)' );
+assert content.contains( '.. * #%L' );
+assert content.contains( '.. * #L%' );
+assert content.contains( '$Id' );
+assert ! content.contains( '.. * .. *');
+
+
+file = new File(basedir, 'src/files/rst/index2.rst');
+assert file.exists();
+
+content = file.text;
+assert content.contains( 'Copyright (C)' );
+assert content.contains( '.. * #%L' );
+assert content.contains( '.. * #L%' );
+assert content.contains( '$Id' );
+assert ! content.contains( '.. * .. *');
+
+
+file = new File(basedir, 'src/files/xml/test.xml');
+assert file.exists();
+
+content = file.text;
+assert content.startsWith( "<?xml version='1.0' encoding='UTF-8'?>" );
+assert content.contains( 'Copyright (C)' );
+assert content.contains( '#%L' );
+assert content.contains( '#L%' );
+assert content.contains( '$Id' );
+
+
+file = new File(basedir, 'src/files/xml/test2.xml');
+assert file.exists();
+
+content = file.text;
+assert content.startsWith( "<?xml version='1.0' encoding='UTF-8'?>" );
+assert content.contains( 'Copyright (C)' );
+assert content.contains( '#%L' );
+assert content.contains( '#L%' );
+assert content.contains( '$Id' );
+
+file = new File(basedir, 'src/files/properties/test.properties');
+assert file.exists();
+
+content = file.text;
+assert content.contains( 'Copyright (C)' );
+assert content.contains( '# #%L' );
+assert content.contains( '# #L%' );
+assert !content.contains( '# # \n' );
+assert content.contains( '$Id' );
+
+
+file = new File(basedir, 'src/files/properties/test2.properties');
+assert file.exists();
+
+content = file.text;
+assert content.contains( 'Copyright (C)' );
+assert content.contains( '# #%L' );
+assert content.contains( '# #L%' );
+assert content.contains( '# #%L' );
+assert !content.contains( '# # \n' );
+assert content.contains( '$Id' );
+
+return true;
Property changes on: trunk/src/it/evol-884/update-file-header/verify.groovy
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Added: trunk/src/it/evol-884/update-file-header-specific/LICENSE.txt
===================================================================
--- trunk/src/it/evol-884/update-file-header-specific/LICENSE.txt (rev 0)
+++ trunk/src/it/evol-884/update-file-header-specific/LICENSE.txt 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,166 @@
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+
+ This version of the GNU Lesser General Public License incorporates
+the terms and conditions of version 3 of the GNU General Public
+License, supplemented by the additional permissions listed below.
+
+ 0. Additional Definitions.
+
+ As used herein, "this License" refers to version 3 of the GNU Lesser
+General Public License, and the "GNU GPL" refers to version 3 of the GNU
+General Public License.
+
+ "The Library" refers to a covered work governed by this License,
+other than an Application or a Combined Work as defined below.
+
+ An "Application" is any work that makes use of an interface provided
+by the Library, but which is not otherwise based on the Library.
+Defining a subclass of a class defined by the Library is deemed a mode
+of using an interface provided by the Library.
+
+ A "Combined Work" is a work produced by combining or linking an
+Application with the Library. The particular version of the Library
+with which the Combined Work was made is also called the "Linked
+Version".
+
+ The "Minimal Corresponding Source" for a Combined Work means the
+Corresponding Source for the Combined Work, excluding any source code
+for portions of the Combined Work that, considered in isolation, are
+based on the Application, and not on the Linked Version.
+
+ The "Corresponding Application Code" for a Combined Work means the
+object code and/or source code for the Application, including any data
+and utility programs needed for reproducing the Combined Work from the
+Application, but excluding the System Libraries of the Combined Work.
+
+ 1. Exception to Section 3 of the GNU GPL.
+
+ You may convey a covered work under sections 3 and 4 of this License
+without being bound by section 3 of the GNU GPL.
+
+ 2. Conveying Modified Versions.
+
+ If you modify a copy of the Library, and, in your modifications, a
+facility refers to a function or data to be supplied by an Application
+that uses the facility (other than as an argument passed when the
+facility is invoked), then you may convey a copy of the modified
+version:
+
+ a) under this License, provided that you make a good faith effort to
+ ensure that, in the event an Application does not supply the
+ function or data, the facility still operates, and performs
+ whatever part of its purpose remains meaningful, or
+
+ b) under the GNU GPL, with none of the additional permissions of
+ this License applicable to that copy.
+
+ 3. Object Code Incorporating Material from Library Header Files.
+
+ The object code form of an Application may incorporate material from
+a header file that is part of the Library. You may convey such object
+code under terms of your choice, provided that, if the incorporated
+material is not limited to numerical parameters, data structure
+layouts and accessors, or small macros, inline functions and templates
+(ten or fewer lines in length), you do both of the following:
+
+ a) Give prominent notice with each copy of the object code that the
+ Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the object code with a copy of the GNU GPL and this license
+ document.
+
+ 4. Combined Works.
+
+ You may convey a Combined Work under terms of your choice that,
+taken together, effectively do not restrict modification of the
+portions of the Library contained in the Combined Work and reverse
+engineering for debugging such modifications, if you also do each of
+the following:
+
+ a) Give prominent notice with each copy of the Combined Work that
+ the Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
+ document.
+
+ c) For a Combined Work that displays copyright notices during
+ execution, include the copyright notice for the Library among
+ these notices, as well as a reference directing the user to the
+ copies of the GNU GPL and this license document.
+
+ d) Do one of the following:
+
+ 0) Convey the Minimal Corresponding Source under the terms of this
+ License, and the Corresponding Application Code in a form
+ suitable for, and under terms that permit, the user to
+ recombine or relink the Application with a modified version of
+ the Linked Version to produce a modified Combined Work, in the
+ manner specified by section 6 of the GNU GPL for conveying
+ Corresponding Source.
+
+ 1) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (a) uses at run time
+ a copy of the Library already present on the user's computer
+ system, and (b) will operate properly with a modified version
+ of the Library that is interface-compatible with the Linked
+ Version.
+
+ e) Provide Installation Information, but only if you would otherwise
+ be required to provide such information under section 6 of the
+ GNU GPL, and only to the extent that such information is
+ necessary to install and execute a modified version of the
+ Combined Work produced by recombining or relinking the
+ Application with a modified version of the Linked Version. (If
+ you use option 4d0, the Installation Information must accompany
+ the Minimal Corresponding Source and Corresponding Application
+ Code. If you use option 4d1, you must provide the Installation
+ Information in the manner specified by section 6 of the GNU GPL
+ for conveying Corresponding Source.)
+
+ 5. Combined Libraries.
+
+ You may place library facilities that are a work based on the
+Library side by side in a single library together with other library
+facilities that are not Applications and are not covered by this
+License, and convey such a combined library under terms of your
+choice, if you do both of the following:
+
+ a) Accompany the combined library with a copy of the same work based
+ on the Library, uncombined with any other library facilities,
+ conveyed under the terms of this License.
+
+ b) Give prominent notice with the combined library that part of it
+ is a work based on the Library, and explaining where to find the
+ accompanying uncombined form of the same work.
+
+ 6. Revised Versions of the GNU Lesser General Public License.
+
+ The Free Software Foundation may publish revised and/or new versions
+of the GNU Lesser General Public License from time to time. Such new
+versions will be similar in spirit to the present version, but may
+differ in detail to address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Library as you received it specifies that a certain numbered version
+of the GNU Lesser General Public License "or any later version"
+applies to it, you have the option of following the terms and
+conditions either of that published version or of any later version
+published by the Free Software Foundation. If the Library as you
+received it does not specify a version number of the GNU Lesser
+General Public License, you may choose any version of the GNU Lesser
+General Public License ever published by the Free Software Foundation.
+
+ If the Library as you received it specifies that a proxy can decide
+whether future versions of the GNU Lesser General Public License shall
+apply, that proxy's public statement of acceptance of any version is
+permanent authorization for you to choose that version for the
+Library.
+
Added: trunk/src/it/evol-884/update-file-header-specific/README.txt
===================================================================
--- trunk/src/it/evol-884/update-file-header-specific/README.txt (rev 0)
+++ trunk/src/it/evol-884/update-file-header-specific/README.txt 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,2 @@
+To test parserJava on a new project (says a project with no i18n translations)
+At the end we should have in target/generated-sources/i18n getters detected.
Added: trunk/src/it/evol-884/update-file-header-specific/changelog.txt
===================================================================
--- trunk/src/it/evol-884/update-file-header-specific/changelog.txt (rev 0)
+++ trunk/src/it/evol-884/update-file-header-specific/changelog.txt 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1 @@
+see the changelog of org.nuiton:i18n project.
\ No newline at end of file
Added: trunk/src/it/evol-884/update-file-header-specific/invoker.properties
===================================================================
--- trunk/src/it/evol-884/update-file-header-specific/invoker.properties (rev 0)
+++ trunk/src/it/evol-884/update-file-header-specific/invoker.properties 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,21 @@
+# A comma or space separated list of goals/phases to execute, may
+# specify an empty list to execute the default goal of the IT project
+invoker.goals=clean compile
+
+# Optionally, a list of goals to run during further invocations of Maven
+#invoker.goals.2=${project.groupId}:${project.artifactId}:${project.version}:run
+
+# A comma or space separated list of profiles to activate
+#invoker.profiles=run-all run-once
+
+# The value for the environment variable MAVEN_OPTS
+#invoker.mavenOpts=-Dfile.encoding=UTF-16 -Xms32m -Xmx256m
+
+# Possible values are "fail-fast" (default), "fail-at-end" and "fail-never"
+invoker.failureBehavior=fail-fast
+
+# The expected result of the build, possible values are "success" (default) and "failure"
+#invoker.buildResult=success
+
+# A boolean value controlling the -N flag, defaults to "false"
+#invoker.nonRecursive=false
Added: trunk/src/it/evol-884/update-file-header-specific/pom.xml
===================================================================
--- trunk/src/it/evol-884/update-file-header-specific/pom.xml (rev 0)
+++ trunk/src/it/evol-884/update-file-header-specific/pom.xml 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.nuiton.license.test</groupId>
+ <artifactId>test-update-file-header-specific</artifactId>
+ <version>@pom.version@</version>
+
+ <name>License Test :: update-file-header-specific</name>
+
+ <inceptionYear>2012</inceptionYear>
+
+ <organization>
+ <name>License Test</name>
+ </organization>
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ </properties>
+ <build>
+
+ <plugins>
+
+ <plugin>
+ <groupId>org.nuiton</groupId>
+ <artifactId>maven-license-plugin</artifactId>
+ <version>@pom.version@</version>
+ <configuration>
+ <verbose>true</verbose>
+ <addSvnKeyWords>true</addSvnKeyWords>
+ </configuration>
+ <executions>
+ <execution>
+ <id>first</id>
+ <goals>
+ <goal>update-file-header</goal>
+ </goals>
+ <phase>process-sources</phase>
+ <configuration>
+ <licenseName>gpl_v3</licenseName>
+ <roots>
+ <param>src/main/java</param>
+ <param>src/files</param>
+ </roots>
+ <excludes>
+ <param>**/*.rst</param>
+ </excludes>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
+
+
Added: trunk/src/it/evol-884/update-file-header-specific/src/files/apt/index.apt
===================================================================
--- trunk/src/it/evol-884/update-file-header-specific/src/files/apt/index.apt (rev 0)
+++ trunk/src/it/evol-884/update-file-header-specific/src/files/apt/index.apt 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1 @@
+My file
Added: trunk/src/it/evol-884/update-file-header-specific/src/files/apt/index2.apt
===================================================================
--- trunk/src/it/evol-884/update-file-header-specific/src/files/apt/index2.apt (rev 0)
+++ trunk/src/it/evol-884/update-file-header-specific/src/files/apt/index2.apt 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,25 @@
+~~~
+~~ #%L
+~~ License Test :: update-file-header
+~~
+~~ $Id: index2.apt 1752 2010-04-15 19:00:41Z tchemit $
+~~ $HeadURL: http://svn.nuiton.org/svn/maven-license-plugin/trunk/src/it/update-file-hea… $
+~~ %%
+~~ Copyright (C) 2012 License Test
+~~ %%
+~~ This program is free software: you can redistribute it and/or modify
+~~ it under the terms of the GNU General Public License as
+~~ published by the Free Software Foundation, either version 3 of the
+~~ License, or (at your option) any later version.
+~~
+~~ This program is distributed in the hope that it will be useful,
+~~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+~~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+~~ GNU General Public License for more details.
+~~
+~~ You should have received a copy of the GNU General Public
+~~ License along with this program. If not, see
+~~ <http://www.gnu.org/licenses/gpl-3.0.html>.
+~~ #L%
+~~~
+My file
Added: trunk/src/it/evol-884/update-file-header-specific/src/files/other/athabaska.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/src/it/evol-884/update-file-header-specific/src/files/other/athabaska.jpg
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/src/it/evol-884/update-file-header-specific/src/files/other/other.txt
===================================================================
--- trunk/src/it/evol-884/update-file-header-specific/src/files/other/other.txt (rev 0)
+++ trunk/src/it/evol-884/update-file-header-specific/src/files/other/other.txt 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1 @@
+simple txt file.
\ No newline at end of file
Added: trunk/src/it/evol-884/update-file-header-specific/src/files/properties/test.properties
===================================================================
--- trunk/src/it/evol-884/update-file-header-specific/src/files/properties/test.properties (rev 0)
+++ trunk/src/it/evol-884/update-file-header-specific/src/files/properties/test.properties 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1 @@
+my.key=true
\ No newline at end of file
Added: trunk/src/it/evol-884/update-file-header-specific/src/files/properties/test2.properties
===================================================================
--- trunk/src/it/evol-884/update-file-header-specific/src/files/properties/test2.properties (rev 0)
+++ trunk/src/it/evol-884/update-file-header-specific/src/files/properties/test2.properties 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,26 @@
+###
+# #%L
+# License Test :: update-file-header
+#
+# $Id: test2.properties 1752 2010-04-15 19:00:41Z tchemit $
+# $HeadURL: http://svn.nuiton.org/svn/maven-license-plugin/trunk/src/it/update-file-hea… $
+# %%
+# Copyright (C) 2012 License Test
+# %%
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public
+# License along with this program. If not, see
+# <http://www.gnu.org/licenses/gpl-3.0.html>.
+# #L%
+###
+
+my.key=true
\ No newline at end of file
Added: trunk/src/it/evol-884/update-file-header-specific/src/files/rst/index.rst
===================================================================
--- trunk/src/it/evol-884/update-file-header-specific/src/files/rst/index.rst (rev 0)
+++ trunk/src/it/evol-884/update-file-header-specific/src/files/rst/index.rst 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1 @@
+My File
\ No newline at end of file
Added: trunk/src/it/evol-884/update-file-header-specific/src/files/rst/index2.rst
===================================================================
--- trunk/src/it/evol-884/update-file-header-specific/src/files/rst/index2.rst (rev 0)
+++ trunk/src/it/evol-884/update-file-header-specific/src/files/rst/index2.rst 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,26 @@
+My file
+
+.. -
+.. * #%L
+.. * Maven License Plugin
+.. *
+.. * $Id: index2.rst 1752 2010-04-15 19:00:41Z tchemit $
+.. * $HeadURL: http://svn.nuiton.org/svn/maven-license-plugin/trunk/src/it/update-file-hea… $
+.. * %%
+.. * Copyright (C) 2008 - 2010 CodeLutin
+.. * %%
+.. * This program is free software: you can redistribute it and/or modify
+.. * it under the terms of the GNU Lesser General Public License as
+.. * published by the Free Software Foundation, either version 3 of the
+.. * License, or (at your option) any later version.
+.. *
+.. * This program is distributed in the hope that it will be useful,
+.. * but WITHOUT ANY WARRANTY; without even the implied warranty of
+.. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+.. * GNU General Lesser Public License for more details.
+.. *
+.. * You should have received a copy of the GNU General Lesser Public
+.. * License along with this program. If not, see
+.. * <http://www.gnu.org/licenses/lgpl-3.0.html>.
+.. * #L%
+..
\ No newline at end of file
Added: trunk/src/it/evol-884/update-file-header-specific/src/files/xml/test.xml
===================================================================
--- trunk/src/it/evol-884/update-file-header-specific/src/files/xml/test.xml (rev 0)
+++ trunk/src/it/evol-884/update-file-header-specific/src/files/xml/test.xml 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,2 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<yo/>
\ No newline at end of file
Added: trunk/src/it/evol-884/update-file-header-specific/src/files/xml/test2.xml
===================================================================
--- trunk/src/it/evol-884/update-file-header-specific/src/files/xml/test2.xml (rev 0)
+++ trunk/src/it/evol-884/update-file-header-specific/src/files/xml/test2.xml 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,27 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!--
+ #%L
+ License Test :: update-file-header
+
+ $Id: test2.xml 1752 2010-04-15 19:00:41Z tchemit $
+ $HeadURL: http://svn.nuiton.org/svn/maven-license-plugin/trunk/src/it/update-file-hea… $
+ %%
+ Copyright (C) 2012 License Test
+ %%
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as
+ published by the Free Software Foundation, either version 3 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public
+ License along with this program. If not, see
+ <http://www.gnu.org/licenses/gpl-3.0.html>.
+ #L%
+ -->
+
+<yo/>
\ No newline at end of file
Added: trunk/src/it/evol-884/update-file-header-specific/src/main/java/org/nuiton/license/plugin/test/MyBean.java
===================================================================
--- trunk/src/it/evol-884/update-file-header-specific/src/main/java/org/nuiton/license/plugin/test/MyBean.java (rev 0)
+++ trunk/src/it/evol-884/update-file-header-specific/src/main/java/org/nuiton/license/plugin/test/MyBean.java 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,10 @@
+package org.nuiton.license.plugin.test;
+
+/**
+ * this class has no license, a new default one will be added.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 2.1
+ */
+public class MyBean {
+}
Added: trunk/src/it/evol-884/update-file-header-specific/src/main/java/org/nuiton/license/plugin/test/MyBean2.java
===================================================================
--- trunk/src/it/evol-884/update-file-header-specific/src/main/java/org/nuiton/license/plugin/test/MyBean2.java (rev 0)
+++ trunk/src/it/evol-884/update-file-header-specific/src/main/java/org/nuiton/license/plugin/test/MyBean2.java 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,20 @@
+/*
+ * #%L
+ * License Test :: do NOT update!
+ * %%
+ * Copyright (C) 2010 Tony
+ * %%
+ * Fake to be removed!
+ * #L%
+ */
+
+/**
+ * this class owns a header, only license will be updated.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 2.1
+ */
+package org.nuiton.license.plugin.test;
+
+public class MyBean2 {
+}
Added: trunk/src/it/evol-884/update-file-header-specific/src/main/java/org/nuiton/license/plugin/test/MyBean3.java
===================================================================
--- trunk/src/it/evol-884/update-file-header-specific/src/main/java/org/nuiton/license/plugin/test/MyBean3.java (rev 0)
+++ trunk/src/it/evol-884/update-file-header-specific/src/main/java/org/nuiton/license/plugin/test/MyBean3.java 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,18 @@
+/*
+ * %%Ignore-License
+ *
+ * yet another license
+ *
+ * Copyright (C) 2000 Codelutin Do not update!
+ */
+
+/**
+ * this class owns a ignore license header and will not be updated.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 2.1
+ */
+package org.nuiton.license.plugin.test;
+
+public class MyBean3 {
+}
Added: trunk/src/it/evol-884/update-file-header-specific/verify.groovy
===================================================================
--- trunk/src/it/evol-884/update-file-header-specific/verify.groovy (rev 0)
+++ trunk/src/it/evol-884/update-file-header-specific/verify.groovy 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,65 @@
+
+file = new File(basedir, 'src/main/java/org/nuiton/license/plugin/test/MyBean.java');
+assert file.exists();
+
+content = file.text;
+assert content.contains( 'Copyright (C) 2012 License Test' );
+
+file = new File(basedir, 'src/main/java/org/nuiton/license/plugin/test/MyBean2.java');
+assert file.exists();
+
+content = file.text;
+assert content.contains( 'Copyright (C) 2010 Tony' );
+assert content.contains( 'do NOT update!' );
+assert !content.contains( 'Fake to be removed!' );
+
+file = new File(basedir, 'src/main/java/org/nuiton/license/plugin/test/MyBean3.java');
+assert file.exists();
+
+content = file.text;
+assert content.contains( ' * %%Ignore-License' );
+assert content.contains( ' * yet another license' );
+assert content.contains( ' * Copyright (C) 2000 Codelutin Do not update!' );
+
+file = new File(basedir, 'src/files/apt/index.apt');
+assert file.exists();
+
+content = file.text;
+assert content.contains( 'Copyright (C)' );
+assert content.contains( '~~ #%L' );
+assert content.contains( '~~ #L%' );
+assert content.contains( '$Id' );
+assert ! content.contains( '~~ ~~');
+
+file = new File(basedir, 'src/files/rst/index.rst');
+assert file.exists();
+
+content = file.text;
+assert !content.contains( 'Copyright (C)' );
+assert !content.contains( '.. * #%L' );
+assert !content.contains( '.. * #L%' );
+assert !content.contains( '$Id' );
+assert ! content.contains( '.. * .. *');
+
+file = new File(basedir, 'src/files/xml/test.xml');
+assert file.exists();
+
+content = file.text;
+assert content.startsWith( "<?xml version='1.0' encoding='UTF-8'?>" );
+assert content.contains( 'Copyright (C)' );
+assert content.contains( '#%L' );
+assert content.contains( '#L%' );
+assert content.contains( '$Id' );
+
+file = new File(basedir, 'src/files/properties/test.properties');
+assert file.exists();
+
+content = file.text;
+assert content.contains( 'Copyright (C)' );
+assert content.contains( '# #%L' );
+assert content.contains( '# #L%' );
+assert !content.contains( '# # \n' );
+assert content.contains( '$Id' );
+
+
+return true;
Added: trunk/src/it/evol-884/update-project-license/LICENSE.txt
===================================================================
--- trunk/src/it/evol-884/update-project-license/LICENSE.txt (rev 0)
+++ trunk/src/it/evol-884/update-project-license/LICENSE.txt 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,167 @@
+;; This line will be removed!
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+
+ This version of the GNU Lesser General Public License incorporates
+the terms and conditions of version 3 of the GNU General Public
+License, supplemented by the additional permissions listed below.
+
+ 0. Additional Definitions.
+
+ As used herein, "this License" refers to version 3 of the GNU Lesser
+General Public License, and the "GNU GPL" refers to version 3 of the GNU
+General Public License.
+
+ "The Library" refers to a covered work governed by this License,
+other than an Application or a Combined Work as defined below.
+
+ An "Application" is any work that makes use of an interface provided
+by the Library, but which is not otherwise based on the Library.
+Defining a subclass of a class defined by the Library is deemed a mode
+of using an interface provided by the Library.
+
+ A "Combined Work" is a work produced by combining or linking an
+Application with the Library. The particular version of the Library
+with which the Combined Work was made is also called the "Linked
+Version".
+
+ The "Minimal Corresponding Source" for a Combined Work means the
+Corresponding Source for the Combined Work, excluding any source code
+for portions of the Combined Work that, considered in isolation, are
+based on the Application, and not on the Linked Version.
+
+ The "Corresponding Application Code" for a Combined Work means the
+object code and/or source code for the Application, including any data
+and utility programs needed for reproducing the Combined Work from the
+Application, but excluding the System Libraries of the Combined Work.
+
+ 1. Exception to Section 3 of the GNU GPL.
+
+ You may convey a covered work under sections 3 and 4 of this License
+without being bound by section 3 of the GNU GPL.
+
+ 2. Conveying Modified Versions.
+
+ If you modify a copy of the Library, and, in your modifications, a
+facility refers to a function or data to be supplied by an Application
+that uses the facility (other than as an argument passed when the
+facility is invoked), then you may convey a copy of the modified
+version:
+
+ a) under this License, provided that you make a good faith effort to
+ ensure that, in the event an Application does not supply the
+ function or data, the facility still operates, and performs
+ whatever part of its purpose remains meaningful, or
+
+ b) under the GNU GPL, with none of the additional permissions of
+ this License applicable to that copy.
+
+ 3. Object Code Incorporating Material from Library Header Files.
+
+ The object code form of an Application may incorporate material from
+a header file that is part of the Library. You may convey such object
+code under terms of your choice, provided that, if the incorporated
+material is not limited to numerical parameters, data structure
+layouts and accessors, or small macros, inline functions and templates
+(ten or fewer lines in length), you do both of the following:
+
+ a) Give prominent notice with each copy of the object code that the
+ Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the object code with a copy of the GNU GPL and this license
+ document.
+
+ 4. Combined Works.
+
+ You may convey a Combined Work under terms of your choice that,
+taken together, effectively do not restrict modification of the
+portions of the Library contained in the Combined Work and reverse
+engineering for debugging such modifications, if you also do each of
+the following:
+
+ a) Give prominent notice with each copy of the Combined Work that
+ the Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
+ document.
+
+ c) For a Combined Work that displays copyright notices during
+ execution, include the copyright notice for the Library among
+ these notices, as well as a reference directing the user to the
+ copies of the GNU GPL and this license document.
+
+ d) Do one of the following:
+
+ 0) Convey the Minimal Corresponding Source under the terms of this
+ License, and the Corresponding Application Code in a form
+ suitable for, and under terms that permit, the user to
+ recombine or relink the Application with a modified version of
+ the Linked Version to produce a modified Combined Work, in the
+ manner specified by section 6 of the GNU GPL for conveying
+ Corresponding Source.
+
+ 1) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (a) uses at run time
+ a copy of the Library already present on the user's computer
+ system, and (b) will operate properly with a modified version
+ of the Library that is interface-compatible with the Linked
+ Version.
+
+ e) Provide Installation Information, but only if you would otherwise
+ be required to provide such information under section 6 of the
+ GNU GPL, and only to the extent that such information is
+ necessary to install and execute a modified version of the
+ Combined Work produced by recombining or relinking the
+ Application with a modified version of the Linked Version. (If
+ you use option 4d0, the Installation Information must accompany
+ the Minimal Corresponding Source and Corresponding Application
+ Code. If you use option 4d1, you must provide the Installation
+ Information in the manner specified by section 6 of the GNU GPL
+ for conveying Corresponding Source.)
+
+ 5. Combined Libraries.
+
+ You may place library facilities that are a work based on the
+Library side by side in a single library together with other library
+facilities that are not Applications and are not covered by this
+License, and convey such a combined library under terms of your
+choice, if you do both of the following:
+
+ a) Accompany the combined library with a copy of the same work based
+ on the Library, uncombined with any other library facilities,
+ conveyed under the terms of this License.
+
+ b) Give prominent notice with the combined library that part of it
+ is a work based on the Library, and explaining where to find the
+ accompanying uncombined form of the same work.
+
+ 6. Revised Versions of the GNU Lesser General Public License.
+
+ The Free Software Foundation may publish revised and/or new versions
+of the GNU Lesser General Public License from time to time. Such new
+versions will be similar in spirit to the present version, but may
+differ in detail to address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Library as you received it specifies that a certain numbered version
+of the GNU Lesser General Public License "or any later version"
+applies to it, you have the option of following the terms and
+conditions either of that published version or of any later version
+published by the Free Software Foundation. If the Library as you
+received it does not specify a version number of the GNU Lesser
+General Public License, you may choose any version of the GNU Lesser
+General Public License ever published by the Free Software Foundation.
+
+ If the Library as you received it specifies that a proxy can decide
+whether future versions of the GNU Lesser General Public License shall
+apply, that proxy's public statement of acceptance of any version is
+permanent authorization for you to choose that version for the
+Library.
+
Added: trunk/src/it/evol-884/update-project-license/README.txt
===================================================================
--- trunk/src/it/evol-884/update-project-license/README.txt (rev 0)
+++ trunk/src/it/evol-884/update-project-license/README.txt 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,2 @@
+To test parserJava on a new project (says a project with no i18n translations)
+At the end we should have in target/generated-sources/i18n getters detected.
Added: trunk/src/it/evol-884/update-project-license/changelog.txt
===================================================================
--- trunk/src/it/evol-884/update-project-license/changelog.txt (rev 0)
+++ trunk/src/it/evol-884/update-project-license/changelog.txt 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1 @@
+see the changelog of org.nuiton:i18n project.
\ No newline at end of file
Added: trunk/src/it/evol-884/update-project-license/invoker.properties
===================================================================
--- trunk/src/it/evol-884/update-project-license/invoker.properties (rev 0)
+++ trunk/src/it/evol-884/update-project-license/invoker.properties 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,21 @@
+# A comma or space separated list of goals/phases to execute, may
+# specify an empty list to execute the default goal of the IT project
+invoker.goals=license:update-project-license
+
+# Optionally, a list of goals to run during further invocations of Maven
+#invoker.goals.2=${project.groupId}:${project.artifactId}:${project.version}:run
+
+# A comma or space separated list of profiles to activate
+#invoker.profiles=run-all run-once
+
+# The value for the environment variable MAVEN_OPTS
+#invoker.mavenOpts=-Dfile.encoding=UTF-16 -Xms32m -Xmx256m
+
+# Possible values are "fail-fast" (default), "fail-at-end" and "fail-never"
+invoker.failureBehavior=fail-fast
+
+# The expected result of the build, possible values are "success" (default) and "failure"
+#invoker.buildResult=success
+
+# A boolean value controlling the -N flag, defaults to "false"
+#invoker.nonRecursive=false
Added: trunk/src/it/evol-884/update-project-license/pom.xml
===================================================================
--- trunk/src/it/evol-884/update-project-license/pom.xml (rev 0)
+++ trunk/src/it/evol-884/update-project-license/pom.xml 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.nuiton.license.test</groupId>
+ <artifactId>test-update-project-license-without-conf</artifactId>
+ <version>@pom.version@</version>
+
+ <name>License Test :: update-project-license-without-conf</name>
+
+ <packaging>jar</packaging>
+
+ <inceptionYear>2012</inceptionYear>
+
+ <organization>
+ <name>License Test</name>
+ </organization>
+ <properties>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <license.generateBundle>true</license.generateBundle>
+ <license.bundleLicensePath>META-INF/bundleLicense.txt</license.bundleLicensePath>
+ <license.verbose>true</license.verbose>
+ <licenseName>gpl_v3</licenseName>
+ </properties>
+
+ <build>
+
+ <pluginManagement>
+ <plugins>
+
+ <plugin>
+ <groupId>org.nuiton</groupId>
+ <artifactId>maven-license-plugin</artifactId>
+ <version>@pom.version@</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
+</project>
+
+
Added: trunk/src/it/evol-884/update-project-license/src/main/java/org/nuiton/license/plugin/test/MyBean.java
===================================================================
--- trunk/src/it/evol-884/update-project-license/src/main/java/org/nuiton/license/plugin/test/MyBean.java (rev 0)
+++ trunk/src/it/evol-884/update-project-license/src/main/java/org/nuiton/license/plugin/test/MyBean.java 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,10 @@
+package org.nuiton.license.plugin.test;
+
+/**
+ * this class has no license, a new default one will be added.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 2.1
+ */
+public class MyBean {
+}
Added: trunk/src/it/evol-884/update-project-license/src/main/java/org/nuiton/license/plugin/test/MyBean2.java
===================================================================
--- trunk/src/it/evol-884/update-project-license/src/main/java/org/nuiton/license/plugin/test/MyBean2.java (rev 0)
+++ trunk/src/it/evol-884/update-project-license/src/main/java/org/nuiton/license/plugin/test/MyBean2.java 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,20 @@
+/*
+ * #%L
+ * License Test :: do NOT update!
+ * %%
+ * Copyright (C) 2010 Tony
+ * %%
+ * Fake to be removed!
+ * #L%
+ */
+
+/**
+ * this class owns a header, only license will be updated.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 2.1
+ */
+package org.nuiton.license.plugin.test;
+
+public class MyBean2 {
+}
Added: trunk/src/it/evol-884/update-project-license/src/main/java/org/nuiton/license/plugin/test/MyBean3.java
===================================================================
--- trunk/src/it/evol-884/update-project-license/src/main/java/org/nuiton/license/plugin/test/MyBean3.java (rev 0)
+++ trunk/src/it/evol-884/update-project-license/src/main/java/org/nuiton/license/plugin/test/MyBean3.java 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,18 @@
+/*
+ * %%Ignore-License
+ *
+ * yet another license
+ *
+ * Copyright (C) 2000 Codelutin Do not update!
+ */
+
+/**
+ * this class owns a ignore license header and will not be updated.
+ *
+ * @author tchemit <chemit(a)codelutin.com>
+ * @since 2.1
+ */
+package org.nuiton.license.plugin.test;
+
+public class MyBean3 {
+}
Added: trunk/src/it/evol-884/update-project-license/verify.groovy
===================================================================
--- trunk/src/it/evol-884/update-project-license/verify.groovy (rev 0)
+++ trunk/src/it/evol-884/update-project-license/verify.groovy 2010-09-29 13:49:21 UTC (rev 1832)
@@ -0,0 +1,26 @@
+
+file = new File(basedir, 'LICENSE.txt');
+assert file.exists();
+
+content = file.text;
+assert !content.contains( ';; This line will be removed!' );
+assert !content.contains( 'GNU LESSER GENERAL PUBLIC LICENSE' );
+assert content.contains( 'GNU GENERAL PUBLIC LICENSE' );
+
+file = new File(basedir, 'target/generated-sources/license/LICENSE.txt');
+assert file.exists();
+
+content = file.text;
+assert !content.contains( ';; This line will be removed!' );
+assert !content.contains( 'GNU LESSER GENERAL PUBLIC LICENSE' );
+assert content.contains( 'GNU GENERAL PUBLIC LICENSE' );
+
+file = new File(basedir, 'target/generated-sources/license/META-INF/bundleLicense.txt');
+assert file.exists();
+
+content = file.text;
+assert !content.contains( ';; This line will be removed!' );
+assert !content.contains( 'GNU LESSER GENERAL PUBLIC LICENSE' );
+assert content.contains( 'GNU GENERAL PUBLIC LICENSE' );
+
+return true;
Property changes on: trunk/src/it/settings.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/update-file-header/LICENSE.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/update-file-header/README.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/update-file-header/changelog.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/update-file-header/invoker.properties
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/update-file-header/pom.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/update-file-header/src/files/apt/index.apt
___________________________________________________________________
Modified: svn:keywords
- "Author Date Id Revision HeadURL
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/update-file-header/src/files/apt/index2.apt
___________________________________________________________________
Modified: svn:keywords
- "Author Date Id Revision HeadURL
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/update-file-header/src/files/properties/test.properties
___________________________________________________________________
Modified: svn:keywords
- "Author Date Id Revision HeadURL
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/update-file-header/src/files/properties/test2.properties
___________________________________________________________________
Modified: svn:keywords
- "Author Date Id Revision HeadURL
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/update-file-header/src/files/rst/index.rst
___________________________________________________________________
Modified: svn:keywords
- "Author Date Id Revision HeadURL
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/update-file-header/src/files/rst/index2.rst
___________________________________________________________________
Modified: svn:keywords
- "Author Date Id Revision HeadURL
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/update-file-header/src/files/xml/test.xml
___________________________________________________________________
Modified: svn:keywords
- "Author Date Id Revision HeadURL
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/update-file-header/src/files/xml/test2.xml
___________________________________________________________________
Modified: svn:keywords
- "Author Date Id Revision HeadURL
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/update-file-header/src/license/project.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/update-file-header/src/main/java/org/nuiton/license/plugin/test/MyBean.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/update-file-header/src/main/java/org/nuiton/license/plugin/test/MyBean2.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/update-file-header/src/main/java/org/nuiton/license/plugin/test/MyBean3.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/update-file-header/verify.groovy
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/update-project-license/LICENSE.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/update-project-license/README.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/update-project-license/changelog.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/update-project-license/invoker.properties
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/update-project-license/pom.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/update-project-license/src/license/project.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/update-project-license/src/main/java/org/nuiton/license/plugin/test/MyBean.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/update-project-license/src/main/java/org/nuiton/license/plugin/test/MyBean2.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/update-project-license/src/main/java/org/nuiton/license/plugin/test/MyBean3.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/it/update-project-license/verify.groovy
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/license/project.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/java/org/nuiton/license/plugin/AbstractLicenseMojo.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Modified: trunk/src/main/java/org/nuiton/license/plugin/AbstractLicenseWithDescriptorMojo.java
===================================================================
--- trunk/src/main/java/org/nuiton/license/plugin/AbstractLicenseWithDescriptorMojo.java 2010-09-29 12:33:39 UTC (rev 1831)
+++ trunk/src/main/java/org/nuiton/license/plugin/AbstractLicenseWithDescriptorMojo.java 2010-09-29 13:49:21 UTC (rev 1832)
@@ -41,9 +41,11 @@
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
+import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Date;
+import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -102,12 +104,54 @@
*/
private Map<String, FileHeaderTransformer> transformers;
+ /**
+ * Name of the license to use for files.
+ *
+ * @parameter expression="${licenseName}"
+ * @since 2.4
+ */
+ protected String licenseName;
+
+ /**
+ * To specify the base dir from which we apply the license.
+ * Should be on form "root1,root2,rootn".
+ * By default, the main root is "src".
+ *
+ * @parameter expression="${license.roots}"
+ * @since 2.4
+ */
+ protected String[] roots;
+
+ /**
+ * Specific files to includes, separated by a comma. By default, it is "** /*".
+ *
+ * @parameter expression="${license.includes}"
+ * @since 2.4
+ */
+ protected String[] includes;
+
+ /**
+ * Specific files to excludes, separated by a comma.
+ * By default, thoses file type are excluded:
+ * <ul>
+ * <li>modelisation</li>
+ * <li>images</li>
+ * <li>i18n properties</li>
+ * </ul>
+ *
+ * @parameter expression="${license.excludes}"
+ * @since 2.4
+ */
+ protected String[] excludes;
+
/** store of licenses */
private LicenseStore licenseStore;
/** descriptor of project */
private LicenseProjectDescriptor licenseProjectDescriptor;
+ /** Map that contains each files indexed by their CommentStyle **/
+ Map<String, List<File>> universe;
/**
* When is sets to {@code true}, will skip execution.
* <p/>
@@ -131,10 +175,6 @@
getLog().info("skip flag is on, will skip goal.");
return false;
}
- if (!getDescriptor().exists()) {
- getLog().warn("skip - could not find descriptor " + getDescriptor());
- return false;
- }
return super.checkSkip();
}
@@ -173,11 +213,48 @@
}
if (!descriptorFile.exists()) {
-// throw new MojoFailureException(
-// "could not find descriptor " + descriptorFile);
+ // No descriptor File: use no descriptor
+
+ // Map that will contain all the files, grouped by root directory
+ Map<File, String[]> filesToTreat = new HashMap<File, String[]>();
+
+ // Init default value for roots and includes
+ if (roots == null || roots.length == 0) {
+ roots = new String[]{"src"};
+ }
+ List<String> rootsList = Arrays.asList(getRoots());
+
+ if (includes == null || includes.length == 0) {
+ includes = new String[]{"**/*"};
+ }
+
+ if (excludes == null || excludes.length == 0) {
+ excludes = new String[]{
+ "**/*.zargo","**/*.uml","**/*.umldi","**/*.xmi", /* modelisation */
+ "**/*.img","**/*.png","**/*.jpg","**/*.jpeg","**/*.gif", /* images */
+ "**/i18n/*.properties"
+ };
+ }
+
+ // Get all files ordered by roots
+ getFilesToTreateForRoots(includes, excludes, rootsList,
+ filesToTreat, null);
+
+ // we got all files: treat them
+ treatFilesByCommentStyle(filesToTreat,
+ licenseStore,
+ getTransformers());
+
+
return;
}
+ getLog().warn("\n");
+ getLog().warn("----------------------------------------------------------");
+ getLog().warn("The use of Descriptor File will be obsolete from version 3");
+ getLog().warn("----------------------------------------------------------");
+ getLog().warn("\n");
+
getLog().info("Loading descriptor " + descriptorFile);
LicenseProjectDescriptor licenseProject = null;
FileReader reader = new FileReader(descriptorFile);
@@ -221,6 +298,22 @@
return transformers;
}
+ public String getLicenseName() {
+ return licenseName;
+ }
+
+ public String[] getRoots() {
+ return roots;
+ }
+
+ public String[] getIncludes() {
+ return includes;
+ }
+
+ public String[] getExcludes() {
+ return excludes;
+ }
+
public String getLicenseResolver() {
return licenseResolver;
}
@@ -233,6 +326,10 @@
return licenseProjectDescriptor;
}
+ public Map<String, List<File>> getUniverse() {
+ return universe;
+ }
+
public void setKeepBackup(boolean keepBackup) {
this.keepBackup = keepBackup;
}
@@ -250,6 +347,34 @@
this.transformers = transformers;
}
+ public void setLicenseName(String licenseName) {
+ this.licenseName = licenseName;
+ }
+
+ public void setRoots(String[] roots) {
+ this.roots = roots;
+ }
+
+ public void setRoots(String roots) {
+ this.roots = roots.split(",");
+ }
+
+ public void setIncludes(String[] includes) {
+ this.includes = includes;
+ }
+
+ public void setIncludes(String includes) {
+ this.includes = includes.split(",");
+ }
+
+ public void setExcludes(String[] excludes) {
+ this.excludes = excludes;
+ }
+
+ public void setExcludes(String excludes) {
+ this.excludes = excludes.split(",");
+ }
+
public void setLicenseStore(LicenseStore licenseStore) {
this.licenseStore = licenseStore;
}
@@ -260,18 +385,25 @@
this.licenseProjectDescriptor = licenseProjectDescriptor;
}
+ public void setUniverse(Map<String, List<File>> universe) {
+ this.universe = universe;
+ }
+
public License getMainLicense()
throws IllegalArgumentException, IllegalStateException {
LicenseProjectDescriptor licenseProject = getLicenseProjectDescriptor();
- if (licenseProject == null) {
+ if (licenseProject != null) {
+ licenseName = licenseProject.getMainLicense();
+ }
+ if (licenseName == null) {
throw new IllegalStateException("No license project initialized!");
}
- String mainLicenseName = licenseProject.getMainLicense();
- if (StringUtils.isEmpty(mainLicenseName)) {
+
+ if (StringUtils.isEmpty(licenseName)) {
throw new IllegalArgumentException(
"main license name can not be null, nor empty");
}
- License mainLicense = getLicense(mainLicenseName);
+ License mainLicense = getLicense(licenseName);
return mainLicense;
}
@@ -438,4 +570,56 @@
}
}
+ protected void treatFilesByCommentStyle(
+ Map<File, String[]> filesToTreat,
+ LicenseStore licenseStore,
+ Map<String, FileHeaderTransformer> transformers) {
+
+ universe = new HashMap<String, List<File>>();
+
+ for (Map.Entry<File, String[]> entry: filesToTreat.entrySet()) {
+ File root = entry.getKey();
+ String[] filesPath = entry.getValue();
+
+ // Foreach file, sort them by CS
+ for (String path: filesPath) {
+ String[] splitPath = path.split("\\.");
+ String extension = splitPath[splitPath.length -1];
+ File file = new File(root, path);
+ String commentStyle = getCommentStyle(extension);
+
+ if (commentStyle != null && !commentStyle.isEmpty()) {
+ List<File> files = universe.get(commentStyle);
+ if (files == null) {
+ files = new ArrayList<File>();
+ universe.put(commentStyle, files);
+ }
+ files.add(file);
+ }
+
+ }
+ }
+
+ }
+
+ protected String getCommentStyle(String extension) {
+ if ("java".equals(extension)) {
+ return "java";
+ }
+ if ("xml".equals(extension)) {
+ return "xml";
+ }
+ if ("apt".equals(extension)) {
+ return "apt";
+ }
+ if ("properties".equals(extension)) {
+ return "properties";
+ }
+ if ("rst".equals(extension)) {
+ return "rst";
+ }
+
+ return null;
+ }
+
}
Property changes on: trunk/src/main/java/org/nuiton/license/plugin/AbstractLicenseWithDescriptorMojo.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/java/org/nuiton/license/plugin/AddThirdPartyMojo.java
___________________________________________________________________
Modified: svn:keywords
- "Author Date Id Revision HeadURL
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/java/org/nuiton/license/plugin/CommentStyleListMojo.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/java/org/nuiton/license/plugin/LicenseListMojo.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Modified: trunk/src/main/java/org/nuiton/license/plugin/UpdateFileHeaderMojo.java
===================================================================
--- trunk/src/main/java/org/nuiton/license/plugin/UpdateFileHeaderMojo.java 2010-09-29 12:33:39 UTC (rev 1831)
+++ trunk/src/main/java/org/nuiton/license/plugin/UpdateFileHeaderMojo.java 2010-09-29 13:49:21 UTC (rev 1832)
@@ -324,9 +324,20 @@
try {
- for (Header header : getLicenseProjectDescriptor().getHeaders()) {
+ // No headers, use treat by CommentStyle !
+ if (getLicenseProjectDescriptor() == null) {
+ for (Map.Entry<String, List<File>> commentStyleFiles : getUniverse().entrySet()) {
+ String commentStyle = commentStyleFiles.getKey();
+ List<File> files = commentStyleFiles.getValue();
- processHeader(header);
+ processCommentStyle(commentStyle, files);
+ }
+ } else {
+ List<Header> headers = getLicenseProjectDescriptor().getHeaders();
+ for (Header header : headers) {
+
+ processHeader(header);
+ }
}
} finally {
@@ -372,11 +383,12 @@
String licenseName = header.getLicenseName();
License license = getLicense(licenseName);
- getLog().info("Process header '" + header.getCommentStyle() + "'");
+ String commentStyle = header.getCommentStyle();
+ getLog().info("Process header '" + commentStyle + "'");
getLog().info(" - using " + license.getDescription());
// use header transformer according to comment style given in header
- setTransformer(getTransformer(header.getCommentStyle()));
+ setTransformer(getTransformer(commentStyle));
// file header to use if no header is found on a file
FileHeader defaultFileHeader = buildDefaultFileHeader(
@@ -426,7 +438,7 @@
for (Map.Entry<File, String[]> entry :
filestoTreate.entrySet()) {
- // treate all files of entry
+ // treat all files of entry
processFileEntry(entry.getKey(), entry.getValue());
}
} finally {
@@ -435,6 +447,80 @@
}
}
+ protected void processCommentStyle(String commentStyle,
+ List<File> filesToTreat) throws IOException {
+
+ // obtain license from definition
+ String licenseName = getLicenseName();
+ License license = getLicense(licenseName);
+
+ getLog().info("Process header '" + commentStyle + "'");
+ getLog().info(" - using " + license.getDescription());
+
+ // use header transformer according to comment style given in header
+ setTransformer(getTransformer(commentStyle));
+
+ // file header to use if no header is found on a file
+ FileHeader defaultFileHeader = buildDefaultFileHeader(
+ license,
+ getProjectName(),
+ getInceptionYear(),
+ getOrganizationName(),
+ isAddSvnKeyWords(),
+ getEncoding()
+ );
+
+ // change default license header in processor
+ setHeader(defaultFileHeader);
+
+ // update processor filter
+ getProcessor().populateFilter();
+
+ for (File file: filesToTreat) {
+ prepareProcessFile(file);
+ }
+ filesToTreat.clear();
+ }
+
+
+ protected void prepareProcessFile(File file) throws IOException {
+
+ if (getProcessedFiles().contains(file)) {
+ getLog().info(" - skip already processed file " + file);
+ return;
+ }
+
+ // output file
+ File processFile =
+ new File(file.getAbsolutePath() + "_" + getTimestamp());
+ boolean doFinalize = false;
+ try {
+ doFinalize = processFile(file, processFile);
+ } catch (Exception e) {
+ getLog().warn("skip failed file : " +
+ e.getMessage() +
+ (e.getCause() == null ? "" :
+ " Cause : " + e.getCause().getMessage()), e
+ );
+ FileState.fail.addFile(file, getResult());
+ doFinalize = false;
+ } finally {
+
+ // always clean processor internal states
+ getProcessor().reset();
+
+ // whatever was the result, this file is treated.
+ getProcessedFiles().add(file);
+
+ if (doFinalize) {
+ finalizeFile(file, processFile);
+ } else {
+ deleteFile(processFile);
+ }
+ }
+
+ }
+
protected void processFileEntry(File entryBasedir,
String[] paths) throws IOException {
@@ -483,7 +569,7 @@
*
* @param file the file to process
* @param processFile the ouput processed file
- * @return {@code true} if processFile can be finalize, otherwise need to be delete
+ * @return {@code true} if prepareProcessFile can be finalize, otherwise need to be delete
* @throws IOException if any pb while treatment
*/
protected boolean processFile(File file,
Property changes on: trunk/src/main/java/org/nuiton/license/plugin/UpdateFileHeaderMojo.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/java/org/nuiton/license/plugin/UpdateProjectLicenseMojo.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Modified: trunk/src/main/java/org/nuiton/license/plugin/header/FileHeader.java
===================================================================
--- trunk/src/main/java/org/nuiton/license/plugin/header/FileHeader.java 2010-09-29 12:33:39 UTC (rev 1831)
+++ trunk/src/main/java/org/nuiton/license/plugin/header/FileHeader.java 2010-09-29 13:49:21 UTC (rev 1832)
@@ -28,7 +28,7 @@
/**
* Contract of a file header.
* <p/>
- * A header has thre sections like in this example :
+ * A header has three sections like in this example :
* <p/>
* <pre>
* Description
Property changes on: trunk/src/main/java/org/nuiton/license/plugin/header/FileHeader.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/java/org/nuiton/license/plugin/header/FileHeaderFilter.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/java/org/nuiton/license/plugin/header/FileHeaderProcessor.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/java/org/nuiton/license/plugin/header/FileHeaderProcessorConfiguration.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/java/org/nuiton/license/plugin/header/InvalideFileHeaderException.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/java/org/nuiton/license/plugin/header/UpdateFileHeaderFilter.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/java/org/nuiton/license/plugin/header/package.html
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/java/org/nuiton/license/plugin/header/transformer/AbstractFileHeaderTransformer.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/java/org/nuiton/license/plugin/header/transformer/AptFileHeaderTransformer.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/java/org/nuiton/license/plugin/header/transformer/FileHeaderTransformer.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/java/org/nuiton/license/plugin/header/transformer/JavaFileHeaderTransformer.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/java/org/nuiton/license/plugin/header/transformer/PropertiesFileHeaderTransformer.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/java/org/nuiton/license/plugin/header/transformer/RstFileHeaderTransformer.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/java/org/nuiton/license/plugin/header/transformer/XmlFileHeaderTransformer.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/java/org/nuiton/license/plugin/header/transformer/package.html
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/java/org/nuiton/license/plugin/model/License.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/java/org/nuiton/license/plugin/model/LicenseRepository.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/java/org/nuiton/license/plugin/model/LicenseStore.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/java/org/nuiton/license/plugin/model/descriptor/package.html
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/java/org/nuiton/license/plugin/model/package.html
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/java/org/nuiton/license/plugin/package.html
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/mdo/descriptor.mdo
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/resources/META-INF/licenses/agpl_v3/header.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/resources/META-INF/licenses/agpl_v3/license.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/resources/META-INF/licenses/apache_v2/header.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/resources/META-INF/licenses/apache_v2/license.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/resources/META-INF/licenses/cddl_v1/header.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/resources/META-INF/licenses/cddl_v1/license.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/resources/META-INF/licenses/fdl_v1_3/header.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/resources/META-INF/licenses/fdl_v1_3/license.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/resources/META-INF/licenses/gpl_v1/header.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/resources/META-INF/licenses/gpl_v1/license.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/resources/META-INF/licenses/gpl_v2/header.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/resources/META-INF/licenses/gpl_v2/license.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/resources/META-INF/licenses/gpl_v3/header.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/resources/META-INF/licenses/gpl_v3/license.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/resources/META-INF/licenses/lgpl_v2_1/header.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/resources/META-INF/licenses/lgpl_v2_1/license.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/resources/META-INF/licenses/lgpl_v3/header.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/resources/META-INF/licenses/lgpl_v3/license.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/resources/META-INF/licenses/licenses.properties
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/resources/META-INF/licenses/mit/header.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/resources/META-INF/licenses/mit/license.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/resources/META-INF/plexus/components.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/main/resources/log4j.properties
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/site/apt/descriptor.apt
___________________________________________________________________
Modified: svn:keywords
- "Author Date Id Revision HeadURL
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/site/apt/header.apt
___________________________________________________________________
Modified: svn:keywords
- "Author Date Id Revision HeadURL
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/site/apt/index.apt
___________________________________________________________________
Modified: svn:keywords
- "Author Date Id Revision HeadURL
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/site/apt/usage.apt
___________________________________________________________________
Modified: svn:keywords
- "Author Date Id Revision HeadURL
+ Author Date Id Revision HeadURL
Modified: trunk/src/site/fr/apt/descriptor.apt
===================================================================
--- trunk/src/site/fr/apt/descriptor.apt 2010-09-29 12:33:39 UTC (rev 1831)
+++ trunk/src/site/fr/apt/descriptor.apt 2010-09-29 13:49:21 UTC (rev 1832)
@@ -2,8 +2,8 @@
~~ #%L
~~ Maven License Plugin
~~
-~~ $Id: descriptor.apt 1754 2010-04-16 10:47:43Z tchemit $
-~~ $HeadURL: http://svn.nuiton.org/svn/maven-license-plugin/trunk/src/site/apt/descripto… $
+~~ $Id$
+~~ $HeadURL$
~~ %%
~~ Copyright (C) 2008 - 2010 CodeLutin
~~ %%
Property changes on: trunk/src/site/fr/apt/descriptor.apt
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/src/site/fr/apt/header.apt
===================================================================
--- trunk/src/site/fr/apt/header.apt 2010-09-29 12:33:39 UTC (rev 1831)
+++ trunk/src/site/fr/apt/header.apt 2010-09-29 13:49:21 UTC (rev 1832)
@@ -2,8 +2,8 @@
~~ #%L
~~ Maven License Plugin
~~
-~~ $Id: header.apt 1754 2010-04-16 10:47:43Z tchemit $
-~~ $HeadURL: http://svn.nuiton.org/svn/maven-license-plugin/trunk/src/site/apt/header.apt $
+~~ $Id$
+~~ $HeadURL$
~~ %%
~~ Copyright (C) 2008 - 2010 CodeLutin
~~ %%
Property changes on: trunk/src/site/fr/apt/header.apt
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/src/site/fr/apt/index.apt
===================================================================
--- trunk/src/site/fr/apt/index.apt 2010-09-29 12:33:39 UTC (rev 1831)
+++ trunk/src/site/fr/apt/index.apt 2010-09-29 13:49:21 UTC (rev 1832)
@@ -2,8 +2,8 @@
~~ #%L
~~ Maven License Plugin
~~
-~~ $Id: index.apt 1754 2010-04-16 10:47:43Z tchemit $
-~~ $HeadURL: http://svn.nuiton.org/svn/maven-license-plugin/trunk/src/site/apt/index.apt $
+~~ $Id$
+~~ $HeadURL$
~~ %%
~~ Copyright (C) 2008 - 2010 CodeLutin
~~ %%
Property changes on: trunk/src/site/fr/apt/index.apt
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Modified: trunk/src/site/fr/apt/usage.apt
===================================================================
--- trunk/src/site/fr/apt/usage.apt 2010-09-29 12:33:39 UTC (rev 1831)
+++ trunk/src/site/fr/apt/usage.apt 2010-09-29 13:49:21 UTC (rev 1832)
@@ -2,8 +2,8 @@
~~ #%L
~~ Maven License Plugin
~~
-~~ $Id: usage.apt 1754 2010-04-16 10:47:43Z tchemit $
-~~ $HeadURL: http://svn.nuiton.org/svn/maven-license-plugin/trunk/src/site/apt/usage.apt $
+~~ $Id$
+~~ $HeadURL$
~~ %%
~~ Copyright (C) 2008 - 2010 CodeLutin
~~ %%
Property changes on: trunk/src/site/fr/apt/usage.apt
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/site/resources/licenseProjectDescriptor-1.0.0.xsd
___________________________________________________________________
Modified: svn:keywords
- "Author Date Id Revision HeadURL
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/site/site_en.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Modified: trunk/src/site/site_fr.xml
===================================================================
--- trunk/src/site/site_fr.xml 2010-09-29 12:33:39 UTC (rev 1831)
+++ trunk/src/site/site_fr.xml 2010-09-29 13:49:21 UTC (rev 1832)
@@ -2,8 +2,8 @@
<!--
#%L
Maven License Plugin
- $Id: site_en.xml 1751 2010-04-15 13:57:24Z tchemit $
- $HeadURL: http://svn.nuiton.org/svn/maven-license-plugin/trunk/src/site/site_en.xml $
+ $Id$
+ $HeadURL$
%%
Copyright (C) 2008 - 2010 CodeLutin
%%
Property changes on: trunk/src/site/site_fr.xml
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/java/org/nuiton/license/plugin/UpdateFileHeaderMojoTest.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/java/org/nuiton/license/plugin/UpdateProjectLicenseMojoTest.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/java/org/nuiton/license/plugin/header/transformer/AbstractFileHeaderTransformerTest.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/java/org/nuiton/license/plugin/header/transformer/XmlFileHeaderTransformerTest.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/java/org/nuiton/license/plugin/model/LicenseRepositoryTest.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/java/org/nuiton/license/plugin/model/LicenseStoreTest.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/addLicense/project.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/addLicense/src/MyBean.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/addLicense.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/all/project.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/all/src/Add.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/all/src/Fail.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/all/src/Ignore.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/all/src/Update.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/all.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/failLicense/project.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/failLicense/src/MyBean.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/failLicense.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/ignoreLicense/project.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/ignoreLicense/src/MyBean.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/ignoreLicense.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/skip.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/updateLicense/project.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/updateLicense/src/MyBean.java
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateFileHeaderMojoTest/updateLicense.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateLicenseMojoTest/addLicense/project.xml
___________________________________________________________________
Modified: svn:keywords
- HeadURL Id Date Revision Author
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateLicenseMojoTest/addLicense/src/MyBean.java
___________________________________________________________________
Modified: svn:keywords
- HeadURL Id Date Revision Author
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateLicenseMojoTest/addLicense.xml
___________________________________________________________________
Modified: svn:keywords
- HeadURL Id Date Revision Author
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateLicenseMojoTest/ignoreLicense/project.xml
___________________________________________________________________
Modified: svn:keywords
- HeadURL Id Date Revision Author
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateLicenseMojoTest/ignoreLicense/src/MyBean.java
___________________________________________________________________
Modified: svn:keywords
- HeadURL Id Date Revision Author
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateLicenseMojoTest/ignoreLicense.xml
___________________________________________________________________
Modified: svn:keywords
- HeadURL Id Date Revision Author
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateLicenseMojoTest/skip.xml
___________________________________________________________________
Modified: svn:keywords
- "Author Date Id Revision HeadURL
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateLicenseMojoTest/updateLicense/project.xml
___________________________________________________________________
Modified: svn:keywords
- HeadURL Id Date Revision Author
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateLicenseMojoTest/updateLicense/src/MyBean.java
___________________________________________________________________
Modified: svn:keywords
- HeadURL Id Date Revision Author
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateLicenseMojoTest/updateLicense.xml
___________________________________________________________________
Modified: svn:keywords
- HeadURL Id Date Revision Author
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateProjectLicenseMojoTest/licenseOne.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateProjectLicenseMojoTest/licenseTwo.txt
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateProjectLicenseMojoTest/projectOne.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateProjectLicenseMojoTest/projectTwo.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateProjectLicenseMojoTest/skip.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateProjectLicenseMojoTest/testOne.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
Property changes on: trunk/src/test/resources/org/nuiton/license/plugin/updateProjectLicenseMojoTest/testTwo.xml
___________________________________________________________________
Modified: svn:keywords
- Author Date Id URL Rev
+ Author Date Id Revision HeadURL
1
0