Nuiton-utils-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
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2005 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2004 -----
- December
- November
- October
- September
- August
August 2008
- 2 participants
- 110 discussions
[Lutinutil-commits] r1046 - trunk/maven-license-switcher-plugin
by tchemit@users.labs.libre-entreprise.org 18 Aug '08
by tchemit@users.labs.libre-entreprise.org 18 Aug '08
18 Aug '08
Author: tchemit
Date: 2008-08-18 09:47:49 +0000 (Mon, 18 Aug 2008)
New Revision: 1046
Modified:
trunk/maven-license-switcher-plugin/pom.xml
Log:
... my mistake... no jrst in report...
Modified: trunk/maven-license-switcher-plugin/pom.xml
===================================================================
--- trunk/maven-license-switcher-plugin/pom.xml 2008-08-18 09:38:15 UTC (rev 1045)
+++ trunk/maven-license-switcher-plugin/pom.xml 2008-08-18 09:47:49 UTC (rev 1046)
@@ -106,18 +106,13 @@
<reporting>
<plugins>
+
<!--Site report's plugin-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
</plugin>
- <!-- jrst -->
- <plugin>
- <groupId>lutinplugin</groupId>
- <artifactId>maven-jrst-plugin</artifactId>
- </plugin>
-
</plugins>
</reporting>
1
0
[Lutinutil-commits] r1045 - trunk/maven-license-switcher-plugin
by tchemit@users.labs.libre-entreprise.org 18 Aug '08
by tchemit@users.labs.libre-entreprise.org 18 Aug '08
18 Aug '08
Author: tchemit
Date: 2008-08-18 09:38:15 +0000 (Mon, 18 Aug 2008)
New Revision: 1045
Modified:
trunk/maven-license-switcher-plugin/pom.xml
Log:
ajout jrst
Modified: trunk/maven-license-switcher-plugin/pom.xml
===================================================================
--- trunk/maven-license-switcher-plugin/pom.xml 2008-08-17 22:38:56 UTC (rev 1044)
+++ trunk/maven-license-switcher-plugin/pom.xml 2008-08-18 09:38:15 UTC (rev 1045)
@@ -111,6 +111,13 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
</plugin>
+
+ <!-- jrst -->
+ <plugin>
+ <groupId>lutinplugin</groupId>
+ <artifactId>maven-jrst-plugin</artifactId>
+ </plugin>
+
</plugins>
</reporting>
1
0
[Lutinutil-commits] r1044 - trunk/maven-license-switcher-plugin
by tchemit@users.labs.libre-entreprise.org 17 Aug '08
by tchemit@users.labs.libre-entreprise.org 17 Aug '08
17 Aug '08
Author: tchemit
Date: 2008-08-17 22:38:56 +0000 (Sun, 17 Aug 2008)
New Revision: 1044
Modified:
trunk/maven-license-switcher-plugin/pom.xml
Log:
utilisation org.codelutin:lutinprocessor:0.14 :)
Modified: trunk/maven-license-switcher-plugin/pom.xml
===================================================================
--- trunk/maven-license-switcher-plugin/pom.xml 2008-08-17 21:49:21 UTC (rev 1043)
+++ trunk/maven-license-switcher-plugin/pom.xml 2008-08-17 22:38:56 UTC (rev 1044)
@@ -33,9 +33,9 @@
</dependency>
<dependency>
- <groupId>lutinlib</groupId>
+ <groupId>org.codelutin</groupId>
<artifactId>lutinprocessor</artifactId>
- <version>0.13-SNAPSHOT</version>
+ <version>0.14</version>
<scope>compile</scope>
</dependency>
1
0
[Lutinutil-commits] r1043 - in trunk/lutinpluginutil: . src/main/java/org/codelutin/util src/test/java/org/codelutin/util
by tchemit@users.labs.libre-entreprise.org 17 Aug '08
by tchemit@users.labs.libre-entreprise.org 17 Aug '08
17 Aug '08
Author: tchemit
Date: 2008-08-17 21:49:21 +0000 (Sun, 17 Aug 2008)
New Revision: 1043
Modified:
trunk/lutinpluginutil/changelog
trunk/lutinpluginutil/src/main/java/org/codelutin/util/FileUpdater.java
trunk/lutinpluginutil/src/main/java/org/codelutin/util/FileUpdaterHelper.java
trunk/lutinpluginutil/src/main/java/org/codelutin/util/FileUtil.java
trunk/lutinpluginutil/src/main/java/org/codelutin/util/MirroredFileUpdater.java
trunk/lutinpluginutil/src/test/java/org/codelutin/util/JavaDummy.java
trunk/lutinpluginutil/src/test/java/org/codelutin/util/JavaFileUpdaterTest.java
trunk/lutinpluginutil/src/test/java/org/codelutin/util/JaxxDummy.java
trunk/lutinpluginutil/src/test/java/org/codelutin/util/JaxxFileUpdaterTest.java
Log:
apply license on tests
Modified: trunk/lutinpluginutil/changelog
===================================================================
--- trunk/lutinpluginutil/changelog 2008-08-17 21:43:01 UTC (rev 1042)
+++ trunk/lutinpluginutil/changelog 2008-08-17 21:49:21 UTC (rev 1043)
@@ -1,2 +1,4 @@
ver-0-1 chemit 2008????
+ * apply license lgpl v3 on java source files
+ * add a FileUtil class coming from maven-i18n-plugin
* initial version with only FileUpdater
\ No newline at end of file
Modified: trunk/lutinpluginutil/src/main/java/org/codelutin/util/FileUpdater.java
===================================================================
--- trunk/lutinpluginutil/src/main/java/org/codelutin/util/FileUpdater.java 2008-08-17 21:43:01 UTC (rev 1042)
+++ trunk/lutinpluginutil/src/main/java/org/codelutin/util/FileUpdater.java 2008-08-17 21:49:21 UTC (rev 1043)
@@ -1,19 +1,20 @@
/**
* *##% Lutin plugin utilities library
* Copyright (C) 2008 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/>. ##%*
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*
*/
package org.codelutin.util;
Modified: trunk/lutinpluginutil/src/main/java/org/codelutin/util/FileUpdaterHelper.java
===================================================================
--- trunk/lutinpluginutil/src/main/java/org/codelutin/util/FileUpdaterHelper.java 2008-08-17 21:43:01 UTC (rev 1042)
+++ trunk/lutinpluginutil/src/main/java/org/codelutin/util/FileUpdaterHelper.java 2008-08-17 21:49:21 UTC (rev 1043)
@@ -1,19 +1,20 @@
/**
* *##% Lutin plugin utilities library
* Copyright (C) 2008 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/>. ##%*
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*
*/
package org.codelutin.util;
Modified: trunk/lutinpluginutil/src/main/java/org/codelutin/util/FileUtil.java
===================================================================
--- trunk/lutinpluginutil/src/main/java/org/codelutin/util/FileUtil.java 2008-08-17 21:43:01 UTC (rev 1042)
+++ trunk/lutinpluginutil/src/main/java/org/codelutin/util/FileUtil.java 2008-08-17 21:49:21 UTC (rev 1043)
@@ -1,19 +1,20 @@
/**
* *##% Lutin plugin utilities library
* Copyright (C) 2008 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/>. ##%*
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*
*/
package org.codelutin.util;
Modified: trunk/lutinpluginutil/src/main/java/org/codelutin/util/MirroredFileUpdater.java
===================================================================
--- trunk/lutinpluginutil/src/main/java/org/codelutin/util/MirroredFileUpdater.java 2008-08-17 21:43:01 UTC (rev 1042)
+++ trunk/lutinpluginutil/src/main/java/org/codelutin/util/MirroredFileUpdater.java 2008-08-17 21:49:21 UTC (rev 1043)
@@ -1,19 +1,20 @@
/**
* *##% Lutin plugin utilities library
* Copyright (C) 2008 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/>. ##%*
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*
*/
package org.codelutin.util;
Modified: trunk/lutinpluginutil/src/test/java/org/codelutin/util/JavaDummy.java
===================================================================
--- trunk/lutinpluginutil/src/test/java/org/codelutin/util/JavaDummy.java 2008-08-17 21:43:01 UTC (rev 1042)
+++ trunk/lutinpluginutil/src/test/java/org/codelutin/util/JavaDummy.java 2008-08-17 21:49:21 UTC (rev 1043)
@@ -1,16 +1,20 @@
/**
- * *##% Copyright (C) 2008 Code Lutin, Tony Chemit
- * 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 2
- * 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, write to the Free Software Foundation, Inc., 59 Temple Place
- * - Suite 330, Boston, MA 02111-1307, USA.
- * ##%*
+ * *##% Lutin plugin utilities library
+ * Copyright (C) 2008 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>. ##%*
*/
package org.codelutin.util;
@@ -19,4 +23,4 @@
/**
* A dummy file to test {@link org.codelutin.util.FileUpdaterHelper.JavaFileUpdater} in {@link JavaFileUpdaterTest}
*/
-}
\ No newline at end of file
+}
Modified: trunk/lutinpluginutil/src/test/java/org/codelutin/util/JavaFileUpdaterTest.java
===================================================================
--- trunk/lutinpluginutil/src/test/java/org/codelutin/util/JavaFileUpdaterTest.java 2008-08-17 21:43:01 UTC (rev 1042)
+++ trunk/lutinpluginutil/src/test/java/org/codelutin/util/JavaFileUpdaterTest.java 2008-08-17 21:49:21 UTC (rev 1043)
@@ -1,3 +1,21 @@
+/**
+ * *##% Lutin plugin utilities library
+ * Copyright (C) 2008 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>. *##%
+ */
/*
* Copyright (C) 2002-2008 Code Lutin, Benjamin Poussin
*
Modified: trunk/lutinpluginutil/src/test/java/org/codelutin/util/JaxxDummy.java
===================================================================
--- trunk/lutinpluginutil/src/test/java/org/codelutin/util/JaxxDummy.java 2008-08-17 21:43:01 UTC (rev 1042)
+++ trunk/lutinpluginutil/src/test/java/org/codelutin/util/JaxxDummy.java 2008-08-17 21:49:21 UTC (rev 1043)
@@ -1,16 +1,20 @@
/**
- * *##% Copyright (C) 2008 Code Lutin, Tony Chemit
- * 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 2
- * 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, write to the Free Software Foundation, Inc., 59 Temple Place
- * - Suite 330, Boston, MA 02111-1307, USA.
- * ##%*
+ * *##% Lutin plugin utilities library
+ * Copyright (C) 2008 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>. ##%*
*/
package org.codelutin.util;
Modified: trunk/lutinpluginutil/src/test/java/org/codelutin/util/JaxxFileUpdaterTest.java
===================================================================
--- trunk/lutinpluginutil/src/test/java/org/codelutin/util/JaxxFileUpdaterTest.java 2008-08-17 21:43:01 UTC (rev 1042)
+++ trunk/lutinpluginutil/src/test/java/org/codelutin/util/JaxxFileUpdaterTest.java 2008-08-17 21:49:21 UTC (rev 1043)
@@ -1,3 +1,21 @@
+/**
+ * *##% Lutin plugin utilities library
+ * Copyright (C) 2008 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>. *##%
+ */
/*
* Copyright (C) 2002-2008 Code Lutin, Benjamin Poussin
*
1
0
[Lutinutil-commits] r1042 - in trunk/maven-license-switcher-plugin: . src/main/java/org/codelutin/license
by tchemit@users.labs.libre-entreprise.org 17 Aug '08
by tchemit@users.labs.libre-entreprise.org 17 Aug '08
17 Aug '08
Author: tchemit
Date: 2008-08-17 21:43:01 +0000 (Sun, 17 Aug 2008)
New Revision: 1042
Removed:
trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/LicenseFilter.java
trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/LicenseProcessor.java
Modified:
trunk/maven-license-switcher-plugin/pom.xml
trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/SwitchLicenseMojo.java
Log:
deplacement des fichiers filter et processor vers le projet lutinprocessor
suppression dependances inutiles
Modified: trunk/maven-license-switcher-plugin/pom.xml
===================================================================
--- trunk/maven-license-switcher-plugin/pom.xml 2008-08-17 21:19:32 UTC (rev 1041)
+++ trunk/maven-license-switcher-plugin/pom.xml 2008-08-17 21:43:01 UTC (rev 1042)
@@ -40,20 +40,6 @@
</dependency>
<dependency>
- <groupId>xalan</groupId>
- <artifactId>xalan</artifactId>
- <version>2.7.0</version>
- <scope>compile</scope>
- </dependency>
-
- <dependency>
- <groupId>commons-collections</groupId>
- <artifactId>commons-collections</artifactId>
- <version>3.1</version>
- <scope>compile</scope>
- </dependency>
-
- <dependency>
<groupId>org.codelutin</groupId>
<artifactId>lutinpluginutil</artifactId>
<version>0.1</version>
Deleted: trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/LicenseFilter.java
===================================================================
--- trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/LicenseFilter.java 2008-08-17 21:19:32 UTC (rev 1041)
+++ trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/LicenseFilter.java 2008-08-17 21:43:01 UTC (rev 1042)
@@ -1,80 +0,0 @@
-/**
- * *##% Plugin maven pour switcher les licenses
- * Copyright (C) 2008 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>. ##%*
- */
-package org.codelutin.license;
-
-import org.codelutin.processor.filters.DefaultFilter;
-
-/**
- * Un filtre pour remplacer la license d'un fichier source java.
- * <p/>
- * fixme : il faut ne pas autoriser le process de fichier java qui ne sont pas valide selon le header - footer...
- *
- * @author chemit
- */
-public class LicenseFilter extends DefaultFilter {
-
- protected static final String header = "*"+"##%";
- protected static final String footer = "#"+"#%*";
- /**
- * la licence a insere dans le header du fichier source. Ce header est formatte en commentaire (chaque ligne
- * commence par un ' * ', sauf pour la premiere et derniere ligne).
- */
- protected String licenseHeader;
-
- /** flag pour indiquer si la licence a ete trouvee entre le header et le footer */
- protected boolean touched;
-
- public LicenseFilter(String licenseHeader) {
- this.licenseHeader = " " + licenseHeader + " ";
- }
-
- protected String performInFilter(String ch) {
- if (wasTouched()) {
- // on autorise pas deux process de la licence dans un fichier java
- throw new IllegalStateException("has find more than once the license processor tags in a file");
- }
- touched = true;
- return header + licenseHeader + footer;
- }
-
- protected String performOutFilter(String ch) {
- return ch;
- }
-
- protected String getHeader() {
- return header;
- }
-
- protected String getFooter() {
- return footer;
- }
-
- @Override
- public String flush() {
- return super.flush();
- }
-
- public boolean wasTouched() {
- return touched;
- }
-
- public void reset() {
- touched = false;
- }
-}
Deleted: trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/LicenseProcessor.java
===================================================================
--- trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/LicenseProcessor.java 2008-08-17 21:19:32 UTC (rev 1041)
+++ trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/LicenseProcessor.java 2008-08-17 21:43:01 UTC (rev 1042)
@@ -1,43 +0,0 @@
-/**
- * *##% Plugin maven pour switcher les licenses
- * Copyright (C) 2008 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>. ##%*
- */
-package org.codelutin.license;
-
-import java.io.File;
-import java.io.FileReader;
-import java.io.FileWriter;
-import java.io.IOException;
-
-/** @author chemit */
-public class LicenseProcessor extends org.codelutin.processor.Processor {
-
- protected LicenseFilter licenseFilter;
-
- public LicenseProcessor(String header) {
- licenseFilter = new LicenseFilter(header);
- setInputFilter(licenseFilter);
- }
-
- public LicenseFilter getLicenceFilter() {
- return licenseFilter;
- }
-
- public void process(File filein, File fileout) throws IOException {
- process(new FileReader(filein), new FileWriter(fileout));
- }
-}
Modified: trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/SwitchLicenseMojo.java
===================================================================
--- trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/SwitchLicenseMojo.java 2008-08-17 21:19:32 UTC (rev 1041)
+++ trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/SwitchLicenseMojo.java 2008-08-17 21:43:01 UTC (rev 1042)
@@ -23,6 +23,8 @@
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.project.MavenProject;
import org.codehaus.plexus.util.DirectoryScanner;
+import org.codelutin.processor.LicenseProcessor;
+import org.codelutin.processor.filters.LicenseFilter;
import org.codelutin.util.FileUtil;
import java.io.BufferedReader;
@@ -222,7 +224,7 @@
protected void addLicenseToJavaSourceFile(File sourceFile, File processFile) throws IOException {
getLog().warn("no license was found on file " + sourceFile + ", adding one");
String content = FileUtil.readAsString(sourceFile, encoding);
- content = "/**\n * " + LicenseFilter.header + " " + licenseHeaderContent + " " + LicenseFilter.header + "\n */\n" + content;
+ content = "/**\n * " + LicenseFilter.HEADER+ " " + licenseHeaderContent + " " + LicenseFilter.HEADER+ "\n */\n" + content;
FileUtil.writeString(processFile, content, encoding);
}
1
0
[Lutinutil-commits] r1041 - in trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin: . core extension ui
by tchemit@users.labs.libre-entreprise.org 17 Aug '08
by tchemit@users.labs.libre-entreprise.org 17 Aug '08
17 Aug '08
Author: tchemit
Date: 2008-08-17 21:19:32 +0000 (Sun, 17 Aug 2008)
New Revision: 1041
Modified:
trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/PluginHelper.java
trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/AbstractI18nParser.java
trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/AbstractI18nPlugin.java
trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/Generate.java
trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/Getter.java
trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/Parser.java
trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/ParserEvent.java
trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/ParserException.java
trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/SourceEntry.java
trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserJava.java
trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserJavaActionConfig.java
trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserJavaTabConfig.java
trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserJaxx.java
trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserSwixat.java
trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserXml.java
trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/ui/KeysModifier.java
Log:
application license lgpl v3 (mvn org.codelutin.plugin:maven-license-switcher:switch)
Modified: trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/PluginHelper.java
===================================================================
--- trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/PluginHelper.java 2008-08-17 21:17:12 UTC (rev 1040)
+++ trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/PluginHelper.java 2008-08-17 21:19:32 UTC (rev 1041)
@@ -1,19 +1,20 @@
/**
* *##% Plugin maven pour lutini18n
* Copyright (C) 2007 - 2008 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>. ##%*
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*
*/
package org.codelutin.i18n.plugin;
Modified: trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/AbstractI18nParser.java
===================================================================
--- trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/AbstractI18nParser.java 2008-08-17 21:17:12 UTC (rev 1040)
+++ trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/AbstractI18nParser.java 2008-08-17 21:19:32 UTC (rev 1041)
@@ -13,7 +13,8 @@
* 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>. ##%* */
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* */
package org.codelutin.i18n.plugin.core;
import org.apache.maven.plugin.MojoExecutionException;
Modified: trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/AbstractI18nPlugin.java
===================================================================
--- trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/AbstractI18nPlugin.java 2008-08-17 21:17:12 UTC (rev 1040)
+++ trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/AbstractI18nPlugin.java 2008-08-17 21:19:32 UTC (rev 1041)
@@ -13,7 +13,8 @@
* 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>. ##%* */
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* */
package org.codelutin.i18n.plugin.core;
Modified: trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/Generate.java
===================================================================
--- trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/Generate.java 2008-08-17 21:17:12 UTC (rev 1040)
+++ trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/Generate.java 2008-08-17 21:19:32 UTC (rev 1041)
@@ -13,7 +13,8 @@
* 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>. ##%* */
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* */
package org.codelutin.i18n.plugin.core;
Modified: trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/Getter.java
===================================================================
--- trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/Getter.java 2008-08-17 21:17:12 UTC (rev 1040)
+++ trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/Getter.java 2008-08-17 21:19:32 UTC (rev 1041)
@@ -13,7 +13,8 @@
* 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>. ##%* */
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* */
package org.codelutin.i18n.plugin.core;
Modified: trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/Parser.java
===================================================================
--- trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/Parser.java 2008-08-17 21:17:12 UTC (rev 1040)
+++ trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/Parser.java 2008-08-17 21:19:32 UTC (rev 1041)
@@ -13,7 +13,8 @@
* 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>. ##%* */
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* */
package org.codelutin.i18n.plugin.core;
Modified: trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/ParserEvent.java
===================================================================
--- trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/ParserEvent.java 2008-08-17 21:17:12 UTC (rev 1040)
+++ trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/ParserEvent.java 2008-08-17 21:19:32 UTC (rev 1041)
@@ -13,7 +13,8 @@
* 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>. ##%* */
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* */
package org.codelutin.i18n.plugin.core;
Modified: trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/ParserException.java
===================================================================
--- trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/ParserException.java 2008-08-17 21:17:12 UTC (rev 1040)
+++ trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/ParserException.java 2008-08-17 21:19:32 UTC (rev 1041)
@@ -13,7 +13,8 @@
* 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>. ##%* */
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* */
package org.codelutin.i18n.plugin.core;
Modified: trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/SourceEntry.java
===================================================================
--- trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/SourceEntry.java 2008-08-17 21:17:12 UTC (rev 1040)
+++ trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/SourceEntry.java 2008-08-17 21:19:32 UTC (rev 1041)
@@ -13,7 +13,8 @@
* 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>. ##%* */
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* */
package org.codelutin.i18n.plugin.core;
import org.apache.maven.plugin.logging.Log;
Modified: trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserJava.java
===================================================================
--- trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserJava.java 2008-08-17 21:17:12 UTC (rev 1040)
+++ trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserJava.java 2008-08-17 21:19:32 UTC (rev 1041)
@@ -13,7 +13,8 @@
* 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>. ##%* */
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* */
package org.codelutin.i18n.plugin.extension;
Modified: trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserJavaActionConfig.java
===================================================================
--- trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserJavaActionConfig.java 2008-08-17 21:17:12 UTC (rev 1040)
+++ trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserJavaActionConfig.java 2008-08-17 21:19:32 UTC (rev 1041)
@@ -13,7 +13,8 @@
* 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>. ##%* */
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* */
package org.codelutin.i18n.plugin.extension;
import org.codelutin.i18n.plugin.core.ParserEvent;
Modified: trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserJavaTabConfig.java
===================================================================
--- trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserJavaTabConfig.java 2008-08-17 21:17:12 UTC (rev 1040)
+++ trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserJavaTabConfig.java 2008-08-17 21:19:32 UTC (rev 1041)
@@ -1,19 +1,20 @@
/**
* *##% Plugin maven pour lutini18n
* Copyright (C) 2007 - 2008 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>. ##%*
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*
*/
package org.codelutin.i18n.plugin.extension;
Modified: trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserJaxx.java
===================================================================
--- trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserJaxx.java 2008-08-17 21:17:12 UTC (rev 1040)
+++ trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserJaxx.java 2008-08-17 21:19:32 UTC (rev 1041)
@@ -13,7 +13,8 @@
* 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>. ##%* */
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* */
package org.codelutin.i18n.plugin.extension;
Modified: trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserSwixat.java
===================================================================
--- trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserSwixat.java 2008-08-17 21:17:12 UTC (rev 1040)
+++ trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserSwixat.java 2008-08-17 21:19:32 UTC (rev 1041)
@@ -13,7 +13,8 @@
* 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>. ##%* */
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* */
package org.codelutin.i18n.plugin.extension;
Modified: trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserXml.java
===================================================================
--- trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserXml.java 2008-08-17 21:17:12 UTC (rev 1040)
+++ trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserXml.java 2008-08-17 21:19:32 UTC (rev 1041)
@@ -13,7 +13,8 @@
* 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>. ##%* */
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* */
package org.codelutin.i18n.plugin.extension;
Modified: trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/ui/KeysModifier.java
===================================================================
--- trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/ui/KeysModifier.java 2008-08-17 21:17:12 UTC (rev 1040)
+++ trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/ui/KeysModifier.java 2008-08-17 21:19:32 UTC (rev 1041)
@@ -13,7 +13,8 @@
* 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>. ##%* */
+ * License along with this program. If not, see
+ * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* */
package org.codelutin.i18n.plugin.ui;
1
0
[Lutinutil-commits] r1040 - in trunk/maven-license-switcher-plugin: . src/main/java/org/codelutin/license src/main/resources/gpl_v1 src/main/resources/gpl_v2 src/main/resources/gpl_v3 src/main/resources/lgpl_v2_1 src/main/resources/lgpl_v3 src/site src/site/apt src/test/java/org/codelutin/license
by tchemit@users.labs.libre-entreprise.org 17 Aug '08
by tchemit@users.labs.libre-entreprise.org 17 Aug '08
17 Aug '08
Author: tchemit
Date: 2008-08-17 21:17:12 +0000 (Sun, 17 Aug 2008)
New Revision: 1040
Added:
trunk/maven-license-switcher-plugin/LICENSE.txt
Modified:
trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/AvailableLicensesMojo.java
trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/LicenseFilter.java
trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/LicenseProcessor.java
trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/LicenseType.java
trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/SwitchLicenseMojo.java
trunk/maven-license-switcher-plugin/src/main/resources/gpl_v1/header.txt
trunk/maven-license-switcher-plugin/src/main/resources/gpl_v2/header.txt
trunk/maven-license-switcher-plugin/src/main/resources/gpl_v3/header.txt
trunk/maven-license-switcher-plugin/src/main/resources/lgpl_v2_1/header.txt
trunk/maven-license-switcher-plugin/src/main/resources/lgpl_v3/header.txt
trunk/maven-license-switcher-plugin/src/site/apt/index.apt
trunk/maven-license-switcher-plugin/src/site/apt/usage.apt
trunk/maven-license-switcher-plugin/src/site/site.xml
trunk/maven-license-switcher-plugin/src/test/java/org/codelutin/license/LicenseTypeTest.java
Log:
application license lgpl v3 (mvn org.codelutin.plugin:maven-license-switcher:switch)
amelioration site
Added: trunk/maven-license-switcher-plugin/LICENSE.txt
===================================================================
--- trunk/maven-license-switcher-plugin/LICENSE.txt (rev 0)
+++ trunk/maven-license-switcher-plugin/LICENSE.txt 2008-08-17 21:17:12 UTC (rev 1040)
@@ -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.
+
Modified: trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/AvailableLicensesMojo.java
===================================================================
--- trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/AvailableLicensesMojo.java 2008-08-17 21:01:38 UTC (rev 1039)
+++ trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/AvailableLicensesMojo.java 2008-08-17 21:17:12 UTC (rev 1040)
@@ -1,16 +1,20 @@
/**
- * *##% Copyright (C) 2008 Code Lutin, Tony Chemit
- * 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 2
- * 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, write to the Free Software Foundation, Inc., 59 Temple Place
- * - Suite 330, Boston, MA 02111-1307, USA.
- * ##%*
+ * *##% Plugin maven pour switcher les licenses
+ * Copyright (C) 2008 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>. ##%*
*/
package org.codelutin.license;
@@ -24,6 +28,7 @@
*
* @author chemit
* @goal available-licenses
+ * @requiresProject false
*/
public class AvailableLicensesMojo extends AbstractMojo {
@@ -37,4 +42,4 @@
System.out.println(sb.toString());
}
-}
\ No newline at end of file
+}
Modified: trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/LicenseFilter.java
===================================================================
--- trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/LicenseFilter.java 2008-08-17 21:01:38 UTC (rev 1039)
+++ trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/LicenseFilter.java 2008-08-17 21:17:12 UTC (rev 1040)
@@ -1,16 +1,20 @@
/**
- * *##% Copyright (C) 2008 Code Lutin, Tony Chemit
- * 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 2
- * 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, write to the Free Software Foundation, Inc., 59 Temple Place
- * - Suite 330, Boston, MA 02111-1307, USA.
- * ##%*
+ * *##% Plugin maven pour switcher les licenses
+ * Copyright (C) 2008 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>. ##%*
*/
package org.codelutin.license;
@@ -25,8 +29,8 @@
*/
public class LicenseFilter extends DefaultFilter {
- protected String header = "*##%";
- protected String footer = "##%*";
+ protected static final String header = "*"+"##%";
+ protected static final String footer = "#"+"#%*";
/**
* la licence a insere dans le header du fichier source. Ce header est formatte en commentaire (chaque ligne
* commence par un ' * ', sauf pour la premiere et derniere ligne).
Modified: trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/LicenseProcessor.java
===================================================================
--- trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/LicenseProcessor.java 2008-08-17 21:01:38 UTC (rev 1039)
+++ trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/LicenseProcessor.java 2008-08-17 21:17:12 UTC (rev 1040)
@@ -1,16 +1,20 @@
/**
- * *##% Copyright (C) 2008 Code Lutin, Tony Chemit
- * 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 2
- * 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, write to the Free Software Foundation, Inc., 59 Temple Place
- * - Suite 330, Boston, MA 02111-1307, USA.
- * ##%*
+ * *##% Plugin maven pour switcher les licenses
+ * Copyright (C) 2008 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>. ##%*
*/
package org.codelutin.license;
Modified: trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/LicenseType.java
===================================================================
--- trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/LicenseType.java 2008-08-17 21:01:38 UTC (rev 1039)
+++ trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/LicenseType.java 2008-08-17 21:17:12 UTC (rev 1040)
@@ -1,16 +1,20 @@
/**
- * *##% Copyright (C) 2008 Code Lutin, Tony Chemit
- * 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 2
- * 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, write to the Free Software Foundation, Inc., 59 Temple Place
- * - Suite 330, Boston, MA 02111-1307, USA.
- * ##%*
+ * *##% Plugin maven pour switcher les licenses
+ * Copyright (C) 2008 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>. ##%*
*/
package org.codelutin.license;
Modified: trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/SwitchLicenseMojo.java
===================================================================
--- trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/SwitchLicenseMojo.java 2008-08-17 21:01:38 UTC (rev 1039)
+++ trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/SwitchLicenseMojo.java 2008-08-17 21:17:12 UTC (rev 1040)
@@ -1,16 +1,20 @@
/**
- * *##% Copyright (C) 2008 Code Lutin, Tony Chemit
- * 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 2
- * 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, write to the Free Software Foundation, Inc., 59 Temple Place
- * - Suite 330, Boston, MA 02111-1307, USA.
- * ##%*
+ * *##% Plugin maven pour switcher les licenses
+ * Copyright (C) 2008 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>. ##%*
*/
package org.codelutin.license;
@@ -33,6 +37,7 @@
* @author chemit
* @goal switch
* @phase process-sources
+ * @requiresProject true
*/
public class SwitchLicenseMojo extends AbstractMojo {
@@ -100,7 +105,7 @@
/**
* Le type de license a appliquer.
*
- * @parameter expression="${license-switcher.licenseType}" default-value="LGPL"
+ * @parameter expression="${license-switcher.licenseType}" default-value="LGPL_V3"
* @required
*/
protected String licenseType;
@@ -217,7 +222,7 @@
protected void addLicenseToJavaSourceFile(File sourceFile, File processFile) throws IOException {
getLog().warn("no license was found on file " + sourceFile + ", adding one");
String content = FileUtil.readAsString(sourceFile, encoding);
- content = "/**\n * *##% " + licenseHeaderContent + " ##%*\n */\n" + content;
+ content = "/**\n * " + LicenseFilter.header + " " + licenseHeaderContent + " " + LicenseFilter.header + "\n */\n" + content;
FileUtil.writeString(processFile, content, encoding);
}
Modified: trunk/maven-license-switcher-plugin/src/main/resources/gpl_v1/header.txt
===================================================================
--- trunk/maven-license-switcher-plugin/src/main/resources/gpl_v1/header.txt 2008-08-17 21:01:38 UTC (rev 1039)
+++ trunk/maven-license-switcher-plugin/src/main/resources/gpl_v1/header.txt 2008-08-17 21:17:12 UTC (rev 1040)
@@ -12,4 +12,5 @@
GNU General Lesser 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-1.0.html>.
+License along with this program. If not, see
+<http://www.gnu.org/licenses/gpl-1.0.html>.
Modified: trunk/maven-license-switcher-plugin/src/main/resources/gpl_v2/header.txt
===================================================================
--- trunk/maven-license-switcher-plugin/src/main/resources/gpl_v2/header.txt 2008-08-17 21:01:38 UTC (rev 1039)
+++ trunk/maven-license-switcher-plugin/src/main/resources/gpl_v2/header.txt 2008-08-17 21:17:12 UTC (rev 1040)
@@ -12,4 +12,5 @@
GNU General Lesser 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-2.0.html>.
+License along with this program. If not, see
+<http://www.gnu.org/licenses/gpl-2.0.html>.
Modified: trunk/maven-license-switcher-plugin/src/main/resources/gpl_v3/header.txt
===================================================================
--- trunk/maven-license-switcher-plugin/src/main/resources/gpl_v3/header.txt 2008-08-17 21:01:38 UTC (rev 1039)
+++ trunk/maven-license-switcher-plugin/src/main/resources/gpl_v3/header.txt 2008-08-17 21:17:12 UTC (rev 1040)
@@ -12,4 +12,5 @@
GNU General Lesser 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>.
+License along with this program. If not, see
+<http://www.gnu.org/licenses/gpl-3.0.html>.
Modified: trunk/maven-license-switcher-plugin/src/main/resources/lgpl_v2_1/header.txt
===================================================================
--- trunk/maven-license-switcher-plugin/src/main/resources/lgpl_v2_1/header.txt 2008-08-17 21:01:38 UTC (rev 1039)
+++ trunk/maven-license-switcher-plugin/src/main/resources/lgpl_v2_1/header.txt 2008-08-17 21:17:12 UTC (rev 1040)
@@ -12,4 +12,5 @@
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-2.1.html>.
+License along with this program. If not, see
+<http://www.gnu.org/licenses/lgpl-2.1.html>.
Modified: trunk/maven-license-switcher-plugin/src/main/resources/lgpl_v3/header.txt
===================================================================
--- trunk/maven-license-switcher-plugin/src/main/resources/lgpl_v3/header.txt 2008-08-17 21:01:38 UTC (rev 1039)
+++ trunk/maven-license-switcher-plugin/src/main/resources/lgpl_v3/header.txt 2008-08-17 21:17:12 UTC (rev 1040)
@@ -12,4 +12,5 @@
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>.
+License along with this program. If not, see
+<http://www.gnu.org/licenses/lgpl-3.0.html>.
Modified: trunk/maven-license-switcher-plugin/src/site/apt/index.apt
===================================================================
--- trunk/maven-license-switcher-plugin/src/site/apt/index.apt 2008-08-17 21:01:38 UTC (rev 1039)
+++ trunk/maven-license-switcher-plugin/src/site/apt/index.apt 2008-08-17 21:17:12 UTC (rev 1040)
@@ -6,21 +6,20 @@
August 2008
------
-Maven licence-switcher Plugin
+Maven license-switcher Plugin
- The Maven Licence Switcher Plugin is used to switch the licence on java sources of a maven module.
+ The Maven License Switcher Plugin is used to switch the license on java sources of a maven module.
* Goals Overview
The plugin has the following goals:
- * {{{switch-mojo.html}llicence-switcher:switch}} parse Java sources and switch licence header.
+ * {{{switch-mojo.html}llicense-switcher:switch}} parse Java sources and switch license header.
+ * {{{help-mojo.html}license-switcher:help}} display help about the plugin (goals, usage).
- * {{{help-mojo.html}licence-switcher:help}} display help about the plugin (goals, usage).
+ * {{{help-mojo.html}license-switcher:available-licenses}} display the known licenses of the plugin.
- * {{{help-mojo.html}licence-switcher:available-licenses}} display the known licenses of the plugin.
-
* Usage
Instructions on how to use the Plugin can be found {{{usage.html}here}}.
Modified: trunk/maven-license-switcher-plugin/src/site/apt/usage.apt
===================================================================
--- trunk/maven-license-switcher-plugin/src/site/apt/usage.apt 2008-08-17 21:01:38 UTC (rev 1039)
+++ trunk/maven-license-switcher-plugin/src/site/apt/usage.apt 2008-08-17 21:17:12 UTC (rev 1040)
@@ -12,8 +12,8 @@
* The <<<switch>>> Mojo
-The <<<switch>>> mojo is used to switch licence header on each java source files and add a LICENSE.txt file on the
-basedir of the project.
+ The <<<switch>>> mojo is used to switch licence header on each java source files and add a LICENSE.txt file on the
+ basedir of the project.
By default, the license to apply is the lgpl v 3. To change it pass the maven parameter <<<-Dlicense-switcher.licenseType=ANOTHER LICENCE TYPE>>>
@@ -24,7 +24,7 @@
* The <<<available-licenses>>> Mojo
-The <<<available-licenses>>> mojo display in the console the known licenses.
+ The <<<available-licenses>>> mojo display in the console the known licenses.
+-----+
mvn license-switcher:available-licenses
@@ -32,7 +32,7 @@
* The <<<help>>> Mojo
-The <<<help>>> mojo display in the console the help for the plugin.
+ The <<<help>>> mojo display in the console the help for the plugin.
+-----+
mvn license-switcher:help
Modified: trunk/maven-license-switcher-plugin/src/site/site.xml
===================================================================
--- trunk/maven-license-switcher-plugin/src/site/site.xml 2008-08-17 21:01:38 UTC (rev 1039)
+++ trunk/maven-license-switcher-plugin/src/site/site.xml 2008-08-17 21:17:12 UTC (rev 1040)
@@ -25,7 +25,7 @@
<body>
<links>
- <item name="Labs" href="http://labs.libre-entreprise.org/"/>
+ <item name="Labs" href="http://labs.libre-entreprise.org"/>
<item name="${project.organization.name}" href="${project.organization.url}"/>
</links>
@@ -41,9 +41,9 @@
</menu>
<menu name="Téléchargement">
- <item href="${labs.builder.url}/lutinplugin/${project.artifactId}/${project.version}"
+ <item href="${labs.builder.url}/org/codelutin/plugin/${project.artifactId}/${project.version}"
name="Télécharger la dernière version"/>
- <item href="${labs.builder.url}/lutinplugin/${project.artifactId}"
+ <item href="${labs.builder.url}/org/codelutin/plugin/${project.artifactId}"
name="Voir toutes les versions"/>
</menu>
Modified: trunk/maven-license-switcher-plugin/src/test/java/org/codelutin/license/LicenseTypeTest.java
===================================================================
--- trunk/maven-license-switcher-plugin/src/test/java/org/codelutin/license/LicenseTypeTest.java 2008-08-17 21:01:38 UTC (rev 1039)
+++ trunk/maven-license-switcher-plugin/src/test/java/org/codelutin/license/LicenseTypeTest.java 2008-08-17 21:17:12 UTC (rev 1040)
@@ -1,17 +1,22 @@
/**
- * *# #% Copyright (C) 2008 Code Lutin, Tony Chemit
- * 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 2
- * 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, write to the Free Software Foundation, Inc., 59 Temple Place
- * - Suite 330, Boston, MA 02111-1307, USA.
- * # #%*
+ * *##% Plugin maven pour switcher les licenses
+ * Copyright (C) 2008 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>. *##%
*/
+
package org.codelutin.license;
/**
1
0
[Lutinutil-commits] r1039 - in trunk/maven-i18n-plugin: . src/main/java/org/codelutin/i18n/plugin src/main/java/org/codelutin/i18n/plugin/core src/main/java/org/codelutin/i18n/plugin/extension src/main/java/org/codelutin/i18n/plugin/ui
by tchemit@users.labs.libre-entreprise.org 17 Aug '08
by tchemit@users.labs.libre-entreprise.org 17 Aug '08
17 Aug '08
Author: tchemit
Date: 2008-08-17 21:01:38 +0000 (Sun, 17 Aug 2008)
New Revision: 1039
Added:
trunk/maven-i18n-plugin/LICENSE.txt
Modified:
trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/PluginHelper.java
trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/AbstractI18nParser.java
trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/AbstractI18nPlugin.java
trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/Generate.java
trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/Getter.java
trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/Parser.java
trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/ParserEvent.java
trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/ParserException.java
trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/SourceEntry.java
trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserJava.java
trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserJavaActionConfig.java
trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserJavaTabConfig.java
trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserJaxx.java
trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserSwixat.java
trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserXml.java
trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/ui/KeysModifier.java
Log:
application license lgpl v3 (mvn org.codelutin.plugin:maven-license-switcher:switch)
+ utilisation FileUtil (de org.codelutin:lutinpluginutil)
Added: trunk/maven-i18n-plugin/LICENSE.txt
===================================================================
--- trunk/maven-i18n-plugin/LICENSE.txt (rev 0)
+++ trunk/maven-i18n-plugin/LICENSE.txt 2008-08-17 21:01:38 UTC (rev 1039)
@@ -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.
+
Modified: trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/PluginHelper.java
===================================================================
--- trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/PluginHelper.java 2008-08-17 20:33:30 UTC (rev 1038)
+++ trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/PluginHelper.java 2008-08-17 21:01:38 UTC (rev 1039)
@@ -1,30 +1,27 @@
/**
- * ##% Copyright (C) 2008 Code Lutin, Tony Chemit
- * 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 2
- * 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, write to the Free Software Foundation, Inc., 59 Temple Place
- * - Suite 330, Boston, MA 02111-1307, USA.
- * ##%
+ * *##% Plugin maven pour lutini18n
+ * Copyright (C) 2007 - 2008 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>. ##%*
*/
package org.codelutin.i18n.plugin;
-import java.io.BufferedReader;
-import java.io.BufferedWriter;
import java.io.File;
-import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FilterOutputStream;
import java.io.IOException;
-import java.io.InputStreamReader;
import java.io.OutputStream;
-import java.io.OutputStreamWriter;
-import java.nio.channels.FileChannel;
import java.text.MessageFormat;
import java.util.Collections;
import java.util.Enumeration;
@@ -99,54 +96,6 @@
}
/**
- * Permet de copier le fichier source vers le fichier cible.
- *
- * @param source le fichier source
- * @param target le fichier cible
- * @throws java.io.IOException Erreur de copie
- */
- public static void copy(File source, File target) throws IOException {
- target.getParentFile().mkdirs();
- FileChannel sourceChannel = new FileInputStream(source).getChannel();
- FileChannel targetChannel = new FileOutputStream(target).getChannel();
- sourceChannel.transferTo(0, sourceChannel.size(), targetChannel);
- // or
- // targetChannel.transferFrom(sourceChannel, 0, sourceChannel.size());
- sourceChannel.close();
- targetChannel.close();
- }
-
- /**
- * Permet de lire un fichier et de retourner sont contenu sous forme d'une
- * chaine de carateres
- *
- * @param file le fichier a lire
- * @param encoding encoding to read file
- * @return the content of the file
- * @throws IOException if IO pb
- */
- static public String readAsString(File file, String encoding) throws IOException {
- StringBuffer result = new StringBuffer();
- char[] cbuf = new char[2000];
- FileInputStream inf = new FileInputStream(file);
- BufferedReader in = new BufferedReader(new InputStreamReader(inf, encoding));
- int nb = in.read(cbuf);
- while (nb != -1) {
- result.append(cbuf, 0, nb);
- nb = in.read(cbuf);
- }
- in.close();
- return result.toString();
- }
-
- static public void writeString(File file, String content, String encoding) throws IOException {
- file.getParentFile().mkdirs();
- BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file), encoding));
- out.write(content);
- out.close();
- }
-
- /**
* Permet de convertir une liste non typee, en une liste typee.
* <p/>
* La liste en entree en juste bien castee.
@@ -268,8 +217,6 @@
out.write(b);
}
}
-
}
-
}
Modified: trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/AbstractI18nParser.java
===================================================================
--- trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/AbstractI18nParser.java 2008-08-17 20:33:30 UTC (rev 1038)
+++ trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/AbstractI18nParser.java 2008-08-17 21:01:38 UTC (rev 1039)
@@ -1,21 +1,19 @@
/*
-* \#\#% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin,
-* Tony Chemit
-*
-* 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 2
-* 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, write to the Free Software
-* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-* \#\#% */
+* *##% Plugin maven pour lutini18n
+ * Copyright (C) 2007 - 2008 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>. ##%* */
package org.codelutin.i18n.plugin.core;
import org.apache.maven.plugin.MojoExecutionException;
@@ -23,6 +21,7 @@
import org.codelutin.i18n.plugin.PluginHelper;
import org.codelutin.i18n.plugin.ui.KeysModifier;
import org.codelutin.util.FileUpdater;
+import org.codelutin.util.FileUtil;
import java.io.BufferedOutputStream;
import java.io.File;
@@ -141,7 +140,7 @@
oldParser.load(new FileInputStream(oldParserFile));
- PluginHelper.copy(oldParserFile, saveFile);
+ FileUtil.copy(oldParserFile, saveFile);
// Anciennes cles disponnibles
File oldLanguageFile = PluginHelper.getI18nFile(src, artifactId, bundles[0], true);
Modified: trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/AbstractI18nPlugin.java
===================================================================
--- trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/AbstractI18nPlugin.java 2008-08-17 20:33:30 UTC (rev 1038)
+++ trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/AbstractI18nPlugin.java 2008-08-17 21:01:38 UTC (rev 1039)
@@ -1,21 +1,19 @@
-/* *##%
- * Copyright (C) 2007
- * I18nPlugin, Code Lutin
- *
- * 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 2
- * of the License, or (at your option) any later version.
- *
+/*
+ * *##% Plugin maven pour lutini18n
+ * Copyright (C) 2007 - 2008 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 Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *##%*/
+ * 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>. ##%* */
package org.codelutin.i18n.plugin.core;
@@ -41,6 +39,7 @@
/**
* Langues des bundles generes.
+ *
* @parameter expression="${i18n.bundles}" default-value=""
* @required
*/
@@ -48,6 +47,7 @@
/**
* Repertoire sources des fichiers i18n.
+ *
* @parameter expression="${i18n.src}" default-value="${basedir}/src/resources/i18n"
* @required
*/
@@ -55,12 +55,14 @@
/**
* Met les fichiers generes dans le repertoire des sources i18n.
+ *
* @parameter expression="${i18n.genSrc}" default-value="true"
*/
protected boolean genSrc;
/**
* Repertoire des fichiers generes i18n.
+ *
* @parameter expression="${i18n.out}" default-value="${basedir}/target/gen/i18n"
* @required
*/
@@ -68,18 +70,21 @@
/**
* Active la modification de cle
+ *
* @parameter expression="${i18n.keysModifier}" default-value="false"
*/
protected boolean keysModifier;
/**
* verbose flag
+ *
* @parameter expression="${i18n.verbose}" default-value="false"
*/
protected boolean verbose;
/**
* Nom du projet.
+ *
* @parameter expression="${i18n.artifactId}" default-value="${project.artifactId}"
* @readonly
*/
@@ -87,18 +92,21 @@
/**
* conserve les anciens fichiers de traduction avec un suffix ~
+ *
* @parameter expression="${i18n.keepBackup}" default-value="true"
*/
protected boolean keepBackup;
/**
* ne conserve que les clef scannees (et donc traite tous les fichiers)
+ *
* @parameter expression="${i18n.strictMode}" default-value="false"
*/
protected boolean strictMode;
/**
* encoding a utiliser pour charger et sauver les bundles
+ *
* @parameter expression="${i18n.encoding}" default-value="${maven.compile.encoding}"
* @required
*/
Modified: trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/Generate.java
===================================================================
--- trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/Generate.java 2008-08-17 20:33:30 UTC (rev 1038)
+++ trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/Generate.java 2008-08-17 21:01:38 UTC (rev 1039)
@@ -1,21 +1,19 @@
-/* *##%
- * Copyright (C) 2007
- * I18nPlugin, Code Lutin
- *
- * 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 2
- * of the License, or (at your option) any later version.
- *
+/*
+ * *##% Plugin maven pour lutini18n
+ * Copyright (C) 2007 - 2008 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 Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *##%*/
+ * 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>. ##%* */
package org.codelutin.i18n.plugin.core;
@@ -23,6 +21,7 @@
import org.apache.maven.plugin.MojoFailureException;
import org.codelutin.i18n.plugin.PluginHelper;
import org.codelutin.i18n.plugin.PluginHelper.I18nProperties;
+import org.codelutin.util.FileUtil;
import java.io.File;
import java.io.FileInputStream;
@@ -88,7 +87,7 @@
// Sauvegarde avant copie
if (genSrc && keepBackup) {
- PluginHelper.copy(bundleSrc, PluginHelper.getI18nFileBackup(src, artifactId, bundle));
+ FileUtil.copy(bundleSrc, PluginHelper.getI18nFileBackup(src, artifactId, bundle));
//FileUtil.copy(bundleSrc, new File(src.getAbsolutePath() + File.separatorChar + artifactId + "-" + bundle + ".properties" + "~"));
}
@@ -97,7 +96,7 @@
if (genSrc) {
// Copie des fichiers dans les sources
- PluginHelper.copy(bundleOut, bundleSrc);
+ FileUtil.copy(bundleOut, bundleSrc);
getLog().info("Copy bundle " + bundleSrc.getAbsolutePath());
}
Modified: trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/Getter.java
===================================================================
--- trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/Getter.java 2008-08-17 20:33:30 UTC (rev 1038)
+++ trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/Getter.java 2008-08-17 21:01:38 UTC (rev 1039)
@@ -1,21 +1,19 @@
-/* *##%
- * Copyright (C) 2007
- * I18nPlugin, Code Lutin
- *
- * 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 2
- * of the License, or (at your option) any later version.
- *
+/*
+ * *##% Plugin maven pour lutini18n
+ * Copyright (C) 2007 - 2008 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 Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *##%*/
+ * 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>. ##%* */
package org.codelutin.i18n.plugin.core;
@@ -23,6 +21,7 @@
import org.apache.maven.plugin.MojoFailureException;
import org.codehaus.plexus.util.DirectoryScanner;
import org.codelutin.i18n.plugin.PluginHelper;
+import org.codelutin.util.FileUtil;
import java.io.File;
import java.io.IOException;
@@ -66,7 +65,7 @@
for (String bundle : bundles) {
//File bundleOut = new File(out.getAbsolutePath() + File.separatorChar + artifactId + "-" + bundle + ".properties");
File bundleOut = PluginHelper.getI18nFile(out, artifactId, bundle, false);
- PluginHelper.copy(bundleGetters, bundleOut);
+ FileUtil.copy(bundleGetters, bundleOut);
getLog().info("Generate bundle " + bundleOut.getAbsolutePath());
}
Modified: trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/Parser.java
===================================================================
--- trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/Parser.java 2008-08-17 20:33:30 UTC (rev 1038)
+++ trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/Parser.java 2008-08-17 21:01:38 UTC (rev 1039)
@@ -1,21 +1,19 @@
-/* *##%
- * Copyright (C) 2007
- * I18nPlugin, Code Lutin
- *
- * 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 2
- * of the License, or (at your option) any later version.
- *
+/*
+ * *##% Plugin maven pour lutini18n
+ * Copyright (C) 2007 - 2008 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 Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *##%*/
+ * 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>. ##%* */
package org.codelutin.i18n.plugin.core;
Modified: trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/ParserEvent.java
===================================================================
--- trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/ParserEvent.java 2008-08-17 20:33:30 UTC (rev 1038)
+++ trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/ParserEvent.java 2008-08-17 21:01:38 UTC (rev 1039)
@@ -1,21 +1,19 @@
-/* *##%
- * Copyright (C) 2007
- * I18nPlugin, Code Lutin
- *
- * 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 2
- * of the License, or (at your option) any later version.
- *
+/*
+ * *##% Plugin maven pour lutini18n
+ * Copyright (C) 2007 - 2008 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 Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *##%*/
+ * 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>. ##%* */
package org.codelutin.i18n.plugin.core;
Modified: trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/ParserException.java
===================================================================
--- trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/ParserException.java 2008-08-17 20:33:30 UTC (rev 1038)
+++ trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/ParserException.java 2008-08-17 21:01:38 UTC (rev 1039)
@@ -1,21 +1,19 @@
-/* *##%
- * Copyright (C) 2007
- * I18nPlugin, Code Lutin
- *
- * 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 2
- * of the License, or (at your option) any later version.
- *
+/*
+ * *##% Plugin maven pour lutini18n
+ * Copyright (C) 2007 - 2008 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 Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *##%*/
+ * 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>. ##%* */
package org.codelutin.i18n.plugin.core;
Modified: trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/SourceEntry.java
===================================================================
--- trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/SourceEntry.java 2008-08-17 20:33:30 UTC (rev 1038)
+++ trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/core/SourceEntry.java 2008-08-17 21:01:38 UTC (rev 1039)
@@ -1,21 +1,19 @@
/*
-* \#\#% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin,
-* Tony Chemit
-*
-* 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 2
-* 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, write to the Free Software
-* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-* \#\#% */
+* *##% Plugin maven pour lutini18n
+ * Copyright (C) 2007 - 2008 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>. ##%* */
package org.codelutin.i18n.plugin.core;
import org.apache.maven.plugin.logging.Log;
@@ -32,7 +30,7 @@
* A simple model for a sourceEntry represents by a basedir and includes and/or exlucdes pattern.
* <p/>
* The class offers the usefull method :
- * {@link #getIncludedFiles(File, String[])}
+ * {@link #getIncludedFiles(File, String[], String[])}
* <p/>
* to obtain the list of files from
* the {@link #basedir} directory which respects the {@link #includes} and/or
Modified: trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserJava.java
===================================================================
--- trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserJava.java 2008-08-17 20:33:30 UTC (rev 1038)
+++ trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserJava.java 2008-08-17 21:01:38 UTC (rev 1039)
@@ -1,21 +1,19 @@
-/* *##%
- * Copyright (C) 2007
- * I18nPlugin, Code Lutin
- *
- * 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 2
- * of the License, or (at your option) any later version.
- *
+/*
+ * *##% Plugin maven pour lutini18n
+ * Copyright (C) 2007 - 2008 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 Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *##%*/
+ * 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>. ##%* */
package org.codelutin.i18n.plugin.extension;
Modified: trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserJavaActionConfig.java
===================================================================
--- trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserJavaActionConfig.java 2008-08-17 20:33:30 UTC (rev 1038)
+++ trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserJavaActionConfig.java 2008-08-17 21:01:38 UTC (rev 1039)
@@ -1,21 +1,19 @@
/*
-* ##% Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Code Lutin,
-* Tony Chemit
-*
-* 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 2
-* 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, write to the Free Software
-* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-* ##% */
+* *##% Plugin maven pour lutini18n
+ * Copyright (C) 2007 - 2008 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>. ##%* */
package org.codelutin.i18n.plugin.extension;
import org.codelutin.i18n.plugin.core.ParserEvent;
Modified: trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserJavaTabConfig.java
===================================================================
--- trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserJavaTabConfig.java 2008-08-17 20:33:30 UTC (rev 1038)
+++ trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserJavaTabConfig.java 2008-08-17 21:01:38 UTC (rev 1039)
@@ -1,16 +1,19 @@
/**
- * ##% Copyright (C) 2008 Code Lutin, Tony Chemit
- * 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 2
- * 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, write to the Free Software Foundation, Inc., 59 Temple Place
- * - Suite 330, Boston, MA 02111-1307, USA.
- * ##%
+ * *##% Plugin maven pour lutini18n
+ * Copyright (C) 2007 - 2008 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>. ##%*
*/
package org.codelutin.i18n.plugin.extension;
Modified: trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserJaxx.java
===================================================================
--- trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserJaxx.java 2008-08-17 20:33:30 UTC (rev 1038)
+++ trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserJaxx.java 2008-08-17 21:01:38 UTC (rev 1039)
@@ -1,21 +1,19 @@
-/* *##%
- * Copyright (C) 2007
- * I18nPlugin, Code Lutin
- *
- * 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 2
- * of the License, or (at your option) any later version.
- *
+/*
+ * *##% Plugin maven pour lutini18n
+ * Copyright (C) 2007 - 2008 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 Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *##%*/
+ * 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>. ##%* */
package org.codelutin.i18n.plugin.extension;
Modified: trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserSwixat.java
===================================================================
--- trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserSwixat.java 2008-08-17 20:33:30 UTC (rev 1038)
+++ trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserSwixat.java 2008-08-17 21:01:38 UTC (rev 1039)
@@ -1,21 +1,19 @@
-/* *##%
- * Copyright (C) 2007
- * I18nPlugin, Code Lutin
- *
- * 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 2
- * of the License, or (at your option) any later version.
- *
+/*
+ * *##% Plugin maven pour lutini18n
+ * Copyright (C) 2007 - 2008 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 Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *##%*/
+ * 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>. ##%* */
package org.codelutin.i18n.plugin.extension;
Modified: trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserXml.java
===================================================================
--- trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserXml.java 2008-08-17 20:33:30 UTC (rev 1038)
+++ trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/extension/ParserXml.java 2008-08-17 21:01:38 UTC (rev 1039)
@@ -1,21 +1,19 @@
-/* *##%
- * Copyright (C) 2007
- * I18nPlugin, Code Lutin
- *
- * 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 2
- * of the License, or (at your option) any later version.
- *
+/*
+ * *##% Plugin maven pour lutini18n
+ * Copyright (C) 2007 - 2008 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 Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *##%*/
+ * 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>. ##%* */
package org.codelutin.i18n.plugin.extension;
@@ -49,6 +47,7 @@
/**
* default src for an entry.
+ *
* @parameter expression="${i18n.defaultBasedir}" default-value="${basedir}/src/uimodel"
* @required
*/
Modified: trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/ui/KeysModifier.java
===================================================================
--- trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/ui/KeysModifier.java 2008-08-17 20:33:30 UTC (rev 1038)
+++ trunk/maven-i18n-plugin/src/main/java/org/codelutin/i18n/plugin/ui/KeysModifier.java 2008-08-17 21:01:38 UTC (rev 1039)
@@ -1,27 +1,25 @@
-/* *##%
- * Copyright (C) 2007
- * I18nPlugin, Code Lutin
- *
- * 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 2
- * of the License, or (at your option) any later version.
- *
+/*
+ * *##% Plugin maven pour lutini18n
+ * Copyright (C) 2007 - 2008 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 Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *##%*/
+ * 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>. ##%* */
package org.codelutin.i18n.plugin.ui;
-import org.codelutin.i18n.plugin.PluginHelper;
import org.codelutin.i18n.plugin.core.ParserEvent;
import org.codelutin.i18n.plugin.core.ParserException;
+import org.codelutin.util.FileUtil;
import javax.swing.JButton;
import javax.swing.JCheckBox;
@@ -156,7 +154,7 @@
int region = 0;
try {
- content = PluginHelper.readAsString(file, encoding);
+ content = FileUtil.readAsString(file, encoding);
} catch (IOException e) {
throw new ParserException(e);
}
@@ -173,7 +171,7 @@
}
try {
- PluginHelper.writeString(file, content, encoding);
+ FileUtil.writeString(file, content, encoding);
} catch (IOException e) {
throw new ParserException(e);
}
1
0
[Lutinutil-commits] r1038 - in trunk/maven-license-switcher-plugin/src: main/java/org/codelutin/license site/apt
by tchemit@users.labs.libre-entreprise.org 17 Aug '08
by tchemit@users.labs.libre-entreprise.org 17 Aug '08
17 Aug '08
Author: tchemit
Date: 2008-08-17 20:33:30 +0000 (Sun, 17 Aug 2008)
New Revision: 1038
Added:
trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/AvailableLicensesMojo.java
Modified:
trunk/maven-license-switcher-plugin/src/site/apt/index.apt
trunk/maven-license-switcher-plugin/src/site/apt/usage.apt
Log:
goal pour connaitre les licences connues par le plugin
Copied: trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/AvailableLicensesMojo.java (from rev 1031, trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/SwitchLicenseMojo.java)
===================================================================
--- trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/AvailableLicensesMojo.java (rev 0)
+++ trunk/maven-license-switcher-plugin/src/main/java/org/codelutin/license/AvailableLicensesMojo.java 2008-08-17 20:33:30 UTC (rev 1038)
@@ -0,0 +1,40 @@
+/**
+ * *##% Copyright (C) 2008 Code Lutin, Tony Chemit
+ * 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 2
+ * 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, write to the Free Software Foundation, Inc., 59 Temple Place
+ * - Suite 330, Boston, MA 02111-1307, USA.
+ * ##%*
+ */
+package org.codelutin.license;
+
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.MojoFailureException;
+
+/**
+ * Le goal pour afficher dans la console les differentes licenses connus par le plugin (i.e les valeurs de l'enumeration
+ * {@link org.codelutin.license.LicenseType}).
+ *
+ * @author chemit
+ * @goal available-licenses
+ */
+public class AvailableLicensesMojo extends AbstractMojo {
+
+ public void execute() throws MojoExecutionException, MojoFailureException {
+ StringBuilder sb = new StringBuilder();
+ sb.append("Available licenses :\n");
+
+ for (LicenseType license : LicenseType.values()) {
+ sb.append(" * ").append(license).append('\n');
+ }
+ System.out.println(sb.toString());
+ }
+
+}
\ No newline at end of file
Modified: trunk/maven-license-switcher-plugin/src/site/apt/index.apt
===================================================================
--- trunk/maven-license-switcher-plugin/src/site/apt/index.apt 2008-08-17 19:26:55 UTC (rev 1037)
+++ trunk/maven-license-switcher-plugin/src/site/apt/index.apt 2008-08-17 20:33:30 UTC (rev 1038)
@@ -17,8 +17,10 @@
* {{{switch-mojo.html}llicence-switcher:switch}} parse Java sources and switch licence header.
- * {{{help-mojo.html}licence-switcher:help}} display help.
+ * {{{help-mojo.html}licence-switcher:help}} display help about the plugin (goals, usage).
+ * {{{help-mojo.html}licence-switcher:available-licenses}} display the known licenses of the plugin.
+
* Usage
Instructions on how to use the Plugin can be found {{{usage.html}here}}.
Modified: trunk/maven-license-switcher-plugin/src/site/apt/usage.apt
===================================================================
--- trunk/maven-license-switcher-plugin/src/site/apt/usage.apt 2008-08-17 19:26:55 UTC (rev 1037)
+++ trunk/maven-license-switcher-plugin/src/site/apt/usage.apt 2008-08-17 20:33:30 UTC (rev 1038)
@@ -12,11 +12,29 @@
* The <<<switch>>> Mojo
- The <<<switch>>> mojo is used to switch licence header on each java source files and add a LICENCE.txt file on the
- basedir of the project.
+The <<<switch>>> mojo is used to switch licence header on each java source files and add a LICENSE.txt file on the
+basedir of the project.
+ By default, the license to apply is the lgpl v 3. To change it pass the maven parameter <<<-Dlicense-switcher.licenseType=ANOTHER LICENCE TYPE>>>
+
+
+-----+
-mvn switch-licence:switch
+mvn license-switcher:switch
+-----+
-To be done.
+* The <<<available-licenses>>> Mojo
+
+The <<<available-licenses>>> mojo display in the console the known licenses.
+
++-----+
+mvn license-switcher:available-licenses
++-----+
+
+* The <<<help>>> Mojo
+
+The <<<help>>> mojo display in the console the help for the plugin.
+
++-----+
+mvn license-switcher:help
++-----+
+
1
0
[Lutinutil-commits] r1037 - in trunk/maven-license-switcher-plugin/src/main/resources: gpl_v1 lgpl_v2_1
by tchemit@users.labs.libre-entreprise.org 17 Aug '08
by tchemit@users.labs.libre-entreprise.org 17 Aug '08
17 Aug '08
Author: tchemit
Date: 2008-08-17 19:26:55 +0000 (Sun, 17 Aug 2008)
New Revision: 1037
Modified:
trunk/maven-license-switcher-plugin/src/main/resources/gpl_v1/license.txt
trunk/maven-license-switcher-plugin/src/main/resources/lgpl_v2_1/license.txt
Log:
suppression caracteres parasites dans les license.txt
Modified: trunk/maven-license-switcher-plugin/src/main/resources/gpl_v1/license.txt
===================================================================
--- trunk/maven-license-switcher-plugin/src/main/resources/gpl_v1/license.txt 2008-08-17 19:23:32 UTC (rev 1036)
+++ trunk/maven-license-switcher-plugin/src/main/resources/gpl_v1/license.txt 2008-08-17 19:26:55 UTC (rev 1037)
@@ -189,7 +189,7 @@
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
-
+
Appendix: How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
Modified: trunk/maven-license-switcher-plugin/src/main/resources/lgpl_v2_1/license.txt
===================================================================
--- trunk/maven-license-switcher-plugin/src/main/resources/lgpl_v2_1/license.txt 2008-08-17 19:23:32 UTC (rev 1036)
+++ trunk/maven-license-switcher-plugin/src/main/resources/lgpl_v2_1/license.txt 2008-08-17 19:26:55 UTC (rev 1037)
@@ -111,7 +111,7 @@
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, whereas the latter must
be combined with the library in order to run.
-
+
GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
@@ -158,7 +158,7 @@
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.
-
+
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
@@ -216,7 +216,7 @@
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.
-
+
Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
@@ -267,7 +267,7 @@
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.
-
+
6. As an exception to the Sections above, you may also combine or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
@@ -329,7 +329,7 @@
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.
-
+
7. 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 not covered by this License, and distribute such a combined
@@ -370,7 +370,7 @@
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties with
this License.
-
+
11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
@@ -422,7 +422,7 @@
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.
-
+
14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
@@ -456,7 +456,7 @@
DAMAGES.
END OF TERMS AND CONDITIONS
-
+
How to Apply These Terms to Your New Libraries
If you develop a new library, and you want it to be of the greatest
1
0