[Arakhnę-Dev] [374] * Generating the sources archive after the compilation.

[ Thread Index | Date Index | More arakhne.org/dev Archives ]


Revision: 374
Author:   galland
Date:     2012-08-18 03:26:56 +0200 (Sat, 18 Aug 2012)
Log Message:
-----------
* Generating the sources archive after the compilation.
* Generating the OSGi bundle.

Modified Paths:
--------------
    trunk/arakhneText/pom.xml
    trunk/arakhneText/src/main/java/org/arakhne/util/text/TextUtil.java
    trunk/arakhneText/src/test/java/org/arakhne/util/text/TextUtilTest.java

Modified: trunk/arakhneText/pom.xml
===================================================================
--- trunk/arakhneText/pom.xml	2012-08-18 01:04:07 UTC (rev 373)
+++ trunk/arakhneText/pom.xml	2012-08-18 01:26:56 UTC (rev 374)
@@ -10,7 +10,13 @@
 	<artifactId>arakhneText</artifactId>
 	<version>4.1-SNAPSHOT</version>
 	<name>Text Utilities</name>
+	<inceptionYear>2012</inceptionYear>
+	<url>http://www.arakhne.org/arakhneText/</url>
 
+	<properties>
+		<manifest.file>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifest.file>
+	</properties>
+
 	<dependencies>
 		<dependency>
 			<groupId>org.arakhne.afc</groupId>
@@ -25,4 +31,98 @@
 		</dependency>
 	</dependencies>
 
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-jar-plugin</artifactId>
+				<configuration>
+					<archive>
+						<index>false</index>
+						<manifestFile>${manifest.file}</manifestFile>
+					</archive>
+				</configuration>
+			</plugin>
+			<plugin>
+				<groupId>org.apache.felix</groupId>
+				<artifactId>maven-bundle-plugin</artifactId>
+				<executions>
+					<execution>
+						<id>bundle-manifest</id>
+						<phase>process-classes</phase>
+						<goals>
+							<goal>manifest</goal>
+						</goals>
+					</execution>
+				</executions>
+				<configuration>
+					<archive>
+						<manifestFile>${manifest.file}</manifestFile>
+						<manifest>
+							<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+							<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
+						</manifest>
+					</archive>
+
+					<instructions>
+						<Export-Package>org.arakhne.util.text.*</Export-Package>
+					</instructions>
+				</configuration>
+			</plugin>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-source-plugin</artifactId>
+				<executions>
+					<execution>
+						<id>attach-sources</id>
+						<phase>verify</phase>
+						<goals>
+							<goal>jar-no-fork</goal>
+						</goals>
+					</execution>
+				</executions>
+			</plugin>
+			<plugin>
+				<groupId>org.arakhne.afc</groupId>
+				<artifactId>tag-replacer</artifactId>
+				<executions>
+					<execution>
+						<id>property_preparation</id>
+						<phase>process-resources</phase>
+						<goals>
+							<goal>replaceresource</goal>
+						</goals>
+					</execution>
+					<execution>
+						<id>source_generation</id>
+						<phase>pre-integration-test</phase>
+						<goals>
+							<goal>generatereplacesrc</goal>
+						</goals>
+					</execution>
+				</executions>
+			</plugin>
+			<plugin>
+				<groupId>org.arakhne.afc</groupId>
+				<artifactId>license-installer</artifactId>
+				<executions>
+					<execution>
+						<phase>compile</phase>
+						<goals>
+							<goal>installlicense</goal>
+						</goals>
+					</execution>
+				</executions>
+				<configuration>
+					<name>${project.name}</name>
+					<licenses>
+						<param>lgplv3</param>
+					</licenses>
+					<copyrightDates>${project.inceptionYear}-${year}</copyrightDates>
+					<copyrighters>Arakhn&amp;ecirc;.org Consortium</copyrighters>
+				</configuration>
+			</plugin>
+		</plugins>
+	</build>
+
 </project>
\ No newline at end of file

Modified: trunk/arakhneText/src/main/java/org/arakhne/util/text/TextUtil.java
===================================================================
--- trunk/arakhneText/src/main/java/org/arakhne/util/text/TextUtil.java	2012-08-18 01:04:07 UTC (rev 373)
+++ trunk/arakhneText/src/main/java/org/arakhne/util/text/TextUtil.java	2012-08-18 01:26:56 UTC (rev 374)
@@ -47,7 +47,7 @@
 /**
  * This class permits to manipulate texts.
  * 
- * @author $Author: sgalland$
+ * @author $Author: galland$
  * @version $FullVersion$
  * @mavengroupid $GroupId$
  * @mavenartifactid $ArtifactId$
@@ -1454,7 +1454,7 @@
 	 * Algorithm interface used by cut string functions to provide
 	 * a buffer filler.
 	 * 
-	 * @author $Author: sgalland$
+	 * @author $Author: galland$
 	 * @version $FullVersion$
 	 * @mavengroupid $GroupId$
 	 * @mavenartifactid $ArtifactId$
@@ -1473,7 +1473,7 @@
 	 * Algorithm interface used by split bracket functions to provide
 	 * a buffer filler.
 	 * 
-	 * @author $Author: sgalland$
+	 * @author $Author: galland$
 	 * @version $FullVersion$
 	 * @mavengroupid $GroupId$
 	 * @mavenartifactid $ArtifactId$
@@ -1489,7 +1489,7 @@
 	}
 
 	/**
-	 * @author $Author: sgalland$
+	 * @author $Author: galland$
 	 * @version $FullVersion$
 	 * @mavengroupid $GroupId$
 	 * @mavenartifactid $ArtifactId$
@@ -1516,7 +1516,7 @@
 	}
 	
 	/**
-	 * @author $Author: sgalland$
+	 * @author $Author: galland$
 	 * @version $FullVersion$
 	 * @mavengroupid $GroupId$
 	 * @mavenartifactid $ArtifactId$
@@ -1545,7 +1545,7 @@
 	}
 
 	/**
-	 * @author $Author: sgalland$
+	 * @author $Author: galland$
 	 * @version $FullVersion$
 	 * @mavengroupid $GroupId$
 	 * @mavenartifactid $ArtifactId$
@@ -1571,7 +1571,7 @@
 	}
 
 	/**
-	 * @author $Author: sgalland$
+	 * @author $Author: galland$
 	 * @version $FullVersion$
 	 * @mavengroupid $GroupId$
 	 * @mavenartifactid $ArtifactId$
@@ -1620,7 +1620,7 @@
 	}
 
 	/**
-	 * @author $Author: sgalland$
+	 * @author $Author: galland$
 	 * @version $FullVersion$
 	 * @mavengroupid $GroupId$
 	 * @mavenartifactid $ArtifactId$
@@ -1648,7 +1648,7 @@
 	/**
 	 * Define the cutting critera of the string.
 	 * 
-	 * @author $Author: sgalland$
+	 * @author $Author: galland$
 	 * @version $FullVersion$
 	 * @mavengroupid $GroupId$
 	 * @mavenartifactid $ArtifactId$
@@ -1691,7 +1691,7 @@
 	/**
 	 * Define the cutting critera of the string.
 	 * 
-	 * @author $Author: sgalland$
+	 * @author $Author: galland$
 	 * @version $FullVersion$
 	 * @mavengroupid $GroupId$
 	 * @mavenartifactid $ArtifactId$
@@ -1745,4 +1745,4 @@
 		
 	}
 
-}
\ No newline at end of file
+}

Modified: trunk/arakhneText/src/test/java/org/arakhne/util/text/TextUtilTest.java
===================================================================
--- trunk/arakhneText/src/test/java/org/arakhne/util/text/TextUtilTest.java	2012-08-18 01:04:07 UTC (rev 373)
+++ trunk/arakhneText/src/test/java/org/arakhne/util/text/TextUtilTest.java	2012-08-18 01:26:56 UTC (rev 374)
@@ -33,7 +33,7 @@
 import junit.framework.TestCase;
 
 /**
- * @author $Author: sgalland$
+ * @author $Author: galland$
  * @version $FullVersion$
  * @mavengroupid $GroupId$
  * @mavenartifactid $ArtifactId$
@@ -410,4 +410,4 @@
 		assertEquals(expected, actual);
 	}
 
-}
\ No newline at end of file
+}


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/