[gatein-commits] gatein SVN: r4824 - portal/trunk/packaging/tomcat/pkg.
do-not-reply at jboss.org
do-not-reply at jboss.org
Mon Oct 25 17:11:25 EDT 2010
Author: julien_viet
Date: 2010-10-25 17:11:24 -0400 (Mon, 25 Oct 2010)
New Revision: 4824
Modified:
portal/trunk/packaging/tomcat/pkg/pom.xml
Log:
GTNPORTAL-1591 : port enforcer plugin for enforcing paths
Modified: portal/trunk/packaging/tomcat/pkg/pom.xml
===================================================================
--- portal/trunk/packaging/tomcat/pkg/pom.xml 2010-10-25 21:03:43 UTC (rev 4823)
+++ portal/trunk/packaging/tomcat/pkg/pom.xml 2010-10-25 21:11:24 UTC (rev 4824)
@@ -867,8 +867,41 @@
<build>
<plugins>
+ <!-- Ensure your environment is correctly setup -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>tomcat-check-environment-ready</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <requireProperty>
+ <property>exo.projects.directory.dependencies</property>
+ <message>"You must define the property exo.projects.directory.dependencies to give the path to the directory where you store your applications servers"</message>
+ </requireProperty>
+ <requireProperty>
+ <property>exo.projects.app.tomcat.version</property>
+ <message>"You must define the property exo.projects.app.tomcat.version to give the name of the directory where is stored tomcat"</message>
+ </requireProperty>
+ <requireFilesExist>
+ <files>
+ <file>${exo.projects.directory.dependencies}/${exo.projects.app.tomcat.version}/</file>
+ </files>
+ <message>"The following Tomcat directory doesn't exist : ${exo.projects.directory.dependencies}/${exo.projects.app.tomcat.version}"</message>
+ </requireFilesExist>
+ </rules>
+ <fail>true</fail>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.6</version>
<executions>
More information about the gatein-commits
mailing list