Author: julien_viet
Date: 2010-10-23 04:35:49 -0400 (Sat, 23 Oct 2010)
New Revision: 4792
Modified:
exo/portal/branches/3.1.x/docs/pom.xml
exo/portal/branches/3.1.x/examples/pom.xml
Log:
EXOGTN-120 : Profiled build to skip documentation and samples
Modified: exo/portal/branches/3.1.x/docs/pom.xml
===================================================================
--- exo/portal/branches/3.1.x/docs/pom.xml 2010-10-22 21:39:58 UTC (rev 4791)
+++ exo/portal/branches/3.1.x/docs/pom.xml 2010-10-23 08:35:49 UTC (rev 4792)
@@ -34,10 +34,27 @@
<name>GateIn - Portal (docs-aggregator)</name>
<modules>
- <module>user-guide</module>
- <module>reference-guide</module>
+ <!--
+ This is not the default modules declaration, instead we use the
"normal" profile that is activated when
+ the development property is not set (to any value). This declaration does not
build anything in development mode.
+ -->
</modules>
+ <profiles>
+ <profile>
+ <id>normal</id>
+ <activation>
+ <property>
+ <name>!development</name>
+ </property>
+ </activation>
+ <modules>
+ <module>user-guide</module>
+ <module>reference-guide</module>
+ </modules>
+ </profile>
+ </profiles>
+
<build>
<plugins>
<plugin>
Modified: exo/portal/branches/3.1.x/examples/pom.xml
===================================================================
--- exo/portal/branches/3.1.x/examples/pom.xml 2010-10-22 21:39:58 UTC (rev 4791)
+++ exo/portal/branches/3.1.x/examples/pom.xml 2010-10-23 08:35:49 UTC (rev 4792)
@@ -35,10 +35,35 @@
<name>GateIn Portal Sample</name>
<modules>
- <module>extension</module>
- <module>portal</module>
- <module>portlets</module>
- <module>skins</module>
+ <!--
+ This is not the default modules declaration, instead we use the
"normal" profile that is activated when
+ the development property is not set (to any value). This declaration only keeps
the necessary for building
+ in development mode, i.e it does not build the other samples.
+
+ It works only for the tomcat version as the JBoss version requires the
"extension" and "portal"
+ modules to be built.
+
+ So in short by default it will build everything as usual but if you declare the
development=true property
+ to the build, only the skins will be built.
+ -->
+ <module>skins</module>
</modules>
+ <profiles>
+ <profile>
+ <id>normal</id>
+ <activation>
+ <property>
+ <name>!development</name>
+ </property>
+ </activation>
+ <modules>
+ <module>extension</module>
+ <module>portal</module>
+ <module>portlets</module>
+ <module>skins</module>
+ </modules>
+ </profile>
+ </profiles>
+
</project>
Show replies by date