[Schmitzm-commits] r2279 - trunk/schmitzm-hibernate

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Sun Mar 24 12:17:42 CET 2013


Author: mojays
Date: 2013-03-24 12:17:42 +0100 (Sun, 24 Mar 2013)
New Revision: 2279

Modified:
   trunk/schmitzm-hibernate/pom.xml
Log:


Modified: trunk/schmitzm-hibernate/pom.xml
===================================================================
--- trunk/schmitzm-hibernate/pom.xml	2013-03-24 11:15:47 UTC (rev 2278)
+++ trunk/schmitzm-hibernate/pom.xml	2013-03-24 11:17:42 UTC (rev 2279)
@@ -47,6 +47,39 @@
 		</dependency>
 	</dependencies>
 
-	<build>
-	</build>
+	<profiles>
+		<profile>
+			<id>resourceOperationRemove</id>
+			<!-- When this profile is activated (e.g with "mavn install -P resourceOperationRemove" 
+				the build will remove any lines in the resource bundes that are tagged with 
+				REMOVEME_ -->
+			<build>
+				<plugins>
+					<plugin>
+						<groupId>org.codehaus.mojo</groupId>
+						<artifactId>exec-maven-plugin</artifactId>
+						<version>1.2</version>
+						<executions>
+							<execution>
+								<phase>generate-sources</phase>
+								<goals>
+									<goal>java</goal>
+								</goals>
+								<configuration>
+									<mainClass>de.schmitzm.lang.ResourceProviderOperator</mainClass>
+									<arguments>
+										<argument>-s</argument>
+										<argument>${basedir}/src/main/resources</argument>
+										<argument>-b</argument>
+										<argument>de.schmitzm.db.hibernate.resource.locales.HibernateResourceBundle
+										</argument>
+									</arguments>
+								</configuration>
+							</execution>
+						</executions>
+					</plugin>
+				</plugins>
+			</build>
+		</profile>
+	</profiles>
 </project>



More information about the Schmitzm-commits mailing list