[gatein-commits] gatein SVN: r7427 - epp/portal/branches/EPP_5_2_Branch/distribution/jboss-epp.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Sep 14 15:23:49 EDT 2011


Author: mwringe
Date: 2011-09-14 15:23:49 -0400 (Wed, 14 Sep 2011)
New Revision: 7427

Modified:
   epp/portal/branches/EPP_5_2_Branch/distribution/jboss-epp/pom.xml
Log:
Add new epp-distribution-quick profile which gets around the extremely slow unzip process from the assembly profile. Should provide drastic speed up in building for testing purposes.

Modified: epp/portal/branches/EPP_5_2_Branch/distribution/jboss-epp/pom.xml
===================================================================
--- epp/portal/branches/EPP_5_2_Branch/distribution/jboss-epp/pom.xml	2011-09-14 19:20:11 UTC (rev 7426)
+++ epp/portal/branches/EPP_5_2_Branch/distribution/jboss-epp/pom.xml	2011-09-14 19:23:49 UTC (rev 7427)
@@ -240,6 +240,138 @@
         </profile>
 
         <profile>
+            <id>epp-distribution-quick</id>
+            <!--<description>Does not use the assembly unzip operations which are extremly inefficient. Uses dependency unzip which is much faster but
+                             it loses the execution permision set on run.sh</description>-->
+            <activation>
+                <activeByDefault>false</activeByDefault>
+            </activation>
+            <properties>
+                <distribution.format>dir</distribution.format>
+                
+                <include.default>*.distribution.deploy:*:zip</include.default>
+                <patch.default>patch</patch.default>
+                <include.production>*.distribution.deploy:*:zip</include.production>
+                <patch.production>patch</patch.production>
+                <include.all>*.distribution.deploy:*:zip</include.all>
+                <patch.all>patch</patch.all>
+            </properties>
+            <build>
+                <plugins>
+            <!-- Put to gether all components -->
+                <plugin>
+                   <groupId>org.apache.maven.plugins</groupId>
+                   <artifactId>maven-dependency-plugin</artifactId>
+                   <executions>
+                     <execution>
+                       <id>distro-assembly</id>
+                       <phase>process-resources</phase>
+                       <goals>
+                         <goal>unpack</goal>
+                       </goals>
+                       <configuration>
+                         <artifactItems>
+                           <artifactItem>
+                             <groupId>org.jboss.jbossas</groupId>
+                             <artifactId>jboss-eap</artifactId>
+                             <type>zip</type>
+                             <outputDirectory>${project.build.directory}/${project.build.finalName}</outputDirectory>
+                           </artifactItem>
+                           <artifactItem>
+                             <groupId>org.exoplatform.portal.distribution.deploy</groupId>
+                             <artifactId>serverAddon</artifactId>
+                             <type>zip</type>
+                             <outputDirectory>${project.build.directory}/${project.build.finalName}/${eap.dir}/jboss-as/server/default</outputDirectory>
+                             <excludes>**/hibernate-core*,**/jaxb-api*,**/stax-api*</excludes>
+                           </artifactItem>
+                           <artifactItem>
+                             <groupId>org.exoplatform.portal.distribution.deploy</groupId>
+                             <artifactId>serverAddon</artifactId>
+                             <type>zip</type>
+                             <outputDirectory>${project.build.directory}/${project.build.finalName}/${eap.dir}/jboss-as/server/all</outputDirectory>
+                             <excludes>**/hibernate-core*,**/jaxb-api*,**/stax-api*</excludes>
+                           </artifactItem>
+                           <artifactItem>
+                             <groupId>org.exoplatform.portal.distribution.deploy</groupId>
+                             <artifactId>serverAddon</artifactId>
+                             <type>zip</type>
+                             <outputDirectory>${project.build.directory}/${project.build.finalName}/${eap.dir}/jboss-as/server/production</outputDirectory>
+                             <excludes>**/hibernate-core*,**/jaxb-api*,**/stax-api*</excludes>
+                           </artifactItem>
+                           <artifactItem>
+                             <groupId>org.exoplatform.portal.distribution.root</groupId>
+                             <artifactId>portletbridge</artifactId>
+                             <type>zip</type>
+                             <outputDirectory>${project.build.directory}/${project.build.finalName}/${eap.dir}/portletbridge</outputDirectory>
+                           </artifactItem>
+                           <artifactItem>
+                             <groupId>org.gatein.sso</groupId>
+                             <artifactId>sso-packaging</artifactId>
+                             <type>zip</type>
+                             <outputDirectory>${project.build.directory}/${project.build.finalName}/${eap.dir}</outputDirectory>
+                           </artifactItem>
+                           <artifactItem>
+                             <groupId>org.exoplatform.portal.distribution</groupId>
+                             <artifactId>examples</artifactId>
+                             <type>zip</type>
+                             <outputDirectory>${project.build.directory}/${project.build.finalName}/${eap.dir}/jboss-as/docs/examples/portal</outputDirectory>
+                           </artifactItem>
+
+                         </artifactItems>
+                       </configuration>
+                     </execution>
+                   </executions>
+                 </plugin>
+            <!-- Apply patches and rename folders -->
+                    <plugin>
+                        <artifactId>maven-antrun-plugin</artifactId>
+                        <version>1.6</version>
+                        <executions>
+                            <execution>
+                                <id>ant-final</id>
+                                <phase>compile</phase>
+                                <goals>
+                                    <goal>run</goal>
+                                </goals>
+                                <configuration>
+                                    <target>
+                                        <property name="root.path">${project.build.directory}/${project.build.finalName}</property>
+                                        <property name="epp.path">${root.path}/${epp.dir}</property>
+                                        <property name="eap.path">${root.path}/${eap.dir}</property>
+
+                                        <move file="${eap.path}" toFile="${epp.path}"/>
+                                        <move file="${epp.path}/gatein-sso-${sso.version}" toFile="${epp.path}/${sso.directory}"/>
+
+                                        <ant antfile="src/build.xml" inheritRefs="true">
+                                            <target name="patch"/>
+                                            <property name="toConfiguration" value="default"/>
+                                        </ant>
+
+                                        <ant antfile="src/build.xml" inheritRefs="true">
+                                            <target name="patch"/>
+                                            <property name="toConfiguration" value="production"/>
+                                        </ant>
+
+                                        <ant antfile="src/build.xml" inheritRefs="true">
+                                            <target name="patch"/>
+                                            <property name="toConfiguration" value="all"/>
+                                        </ant>
+
+                                        <ant antfile="src/build.xml" inheritRefs="true">
+                                            <target name="modifyStartupMessage"/>
+                                        </ant>
+
+                                    </target>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+
+
+        <profile>
             <id>epp-distribution-assembly-zip</id>
             <!--<description>This profile assembly parts using zip. This is faster than zi, but root folder cannot be renamed.</description>-->
             <activation>
@@ -362,4 +494,4 @@
         </profile>
     </profiles>
  
-</project>
\ No newline at end of file
+</project>



More information about the gatein-commits mailing list