Author: tyrell
Date: Thu Jul  3 09:49:58 2008
New Revision: 18831
URL: http://wso2.org/svn/browse/wso2?view=rev&revision=18831

Log:
Adding a new build profile. Fixing MASHUP-890

Modified:
   trunk/mashup/java/modules/distribution/pom.xml

Modified: trunk/mashup/java/modules/distribution/pom.xml
URL: 
http://wso2.org/svn/browse/wso2/trunk/mashup/java/modules/distribution/pom.xml?rev=18831&r1=18830&r2=18831&view=diff
==============================================================================
--- trunk/mashup/java/modules/distribution/pom.xml      (original)
+++ trunk/mashup/java/modules/distribution/pom.xml      Thu Jul  3 09:49:58 2008
@@ -549,6 +549,145 @@
                 </plugins>
             </build>
         </profile>
+        <profile>
+            <id>build-setup-dashboard-conf</id>
+            <activation>
+                <property>
+                    <name>build-setup-dashboard</name>
+                </property>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <!--Download the dependencies needed by Shindig-->
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-dependency-plugin</artifactId>
+                        <version>2.0-alpha-4</version>
+                        <executions>
+                            <execution>
+                                <id>download-dashboard-dependancies</id>
+                                <phase>initialize</phase>
+                                <goals>
+                                    <goal>copy</goal>
+                                </goals>
+                                <configuration>
+                                    <artifactItems>
+                                        <artifactItem>
+                                            
<groupId>org.apache.abdera</groupId>
+                                            
<artifactId>abdera-server</artifactId>
+                                            
<version>${abdera.version}</version>
+                                            <type>jar</type>
+                                            <overWrite>true</overWrite>
+                                            
<outputDirectory>target/dashboard/jars</outputDirectory>
+                                        </artifactItem>
+                                        <artifactItem>
+                                            
<groupId>org.apache.shindig</groupId>
+                                            
<artifactId>shindig-common</artifactId>
+                                            
<version>${shindig.version}</version>
+                                            <type>jar</type>
+                                            <overWrite>true</overWrite>
+                                            
<outputDirectory>target/dashboard/jars</outputDirectory>
+                                        </artifactItem>
+                                        <artifactItem>
+                                            
<groupId>org.apache.shindig</groupId>
+                                            
<artifactId>shindig-gadgets</artifactId>
+                                            
<version>${shindig.version}</version>
+                                            <type>jar</type>
+                                            <overWrite>true</overWrite>
+                                            
<outputDirectory>target/dashboard/jars</outputDirectory>
+                                        </artifactItem>
+                                        <artifactItem>
+                                            
<groupId>org.apache.shindig</groupId>
+                                            
<artifactId>shindig-social-api</artifactId>
+                                            
<version>${shindig.version}</version>
+                                            <type>jar</type>
+                                            <overWrite>true</overWrite>
+                                            
<outputDirectory>target/dashboard/jars</outputDirectory>
+                                        </artifactItem>
+                                        <artifactItem>
+                                            
<groupId>com.google.code.guice</groupId>
+                                            <artifactId>guice</artifactId>
+                                            <version>${guice.version}</version>
+                                            <type>jar</type>
+                                            <overWrite>true</overWrite>
+                                            
<outputDirectory>target/dashboard/jars</outputDirectory>
+                                        </artifactItem>
+                                        <artifactItem>
+                                            <groupId>org.hamcrest</groupId>
+                                            
<artifactId>hamcrest-all</artifactId>
+                                            
<version>${hamcrest.version}</version>
+                                            <type>jar</type>
+                                            <overWrite>true</overWrite>
+                                            
<outputDirectory>target/dashboard/jars</outputDirectory>
+                                        </artifactItem>
+                                        <artifactItem>
+                                            <groupId>org.json</groupId>
+                                            <artifactId>json</artifactId>
+                                            <version>${json.version}</version>
+                                            <type>jar</type>
+                                            <overWrite>true</overWrite>
+                                            
<outputDirectory>target/dashboard/jars</outputDirectory>
+                                        </artifactItem>
+                                    </artifactItems>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                    <plugin>
+                        <!--Copy over resources needed for the Dashboard-->
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-antrun-plugin</artifactId>
+                        <version>1.1</version>
+                        <executions>
+                            <execution>
+                                <id>copy-resources</id>
+                                <phase>package</phase>
+                                <configuration>
+                                    <tasks>
+                                        <echo message="### Copying over 
resources for the dashboard ###"/>
+                                        <mkdir 
dir="${dist.dir}/lib/tomcat/webapps/dashboard"/>
+                                        <copy 
todir="${dist.dir}/lib/tomcat/webapps/dashboard">
+                                            <fileset dir="../dashboard">
+                                                <include name="**/*.*"/>
+                                                <exclude name="**/*.svn"/>
+                                            </fileset>
+                                        </copy>
+                                        <copy todir="${dist.dir}/lib">
+                                            <fileset 
dir="target/dashboard/jars">
+                                                <include name="*.jar"/>
+                                            </fileset>
+                                        </copy>
+                                        <move 
file="target/temp/wsrequest/WSRequest.js" 
todir="${dist.dir}/lib/tomcat/webapps/dashboard/javascript"/>
+
+                                        <!-- Re-create the distribution zip 
with dashboard included  -->
+                                        <echo message="### Re-creating 
distribution archive with dashboard ###"/>
+                                        <delete 
file="target/wso2-mashup-server-${wso2mashup.version}.zip"/>
+                                        <zip basedir="target/dist" 
destfile="target/wso2-mashup-server-${wso2mashup.version}.zip"/>
+
+                                        <!--Create the .exe with dashboard 
included-->
+                                        <filter token="output_file" 
value="${nsis.filename}"/>
+                                        <filter token="build_location" 
value="wso2-mashup-server-${wso2mashup.version}"/>
+                                        <filter token="monitor_version" 
value="${wso2-monitor.version}"/>
+                                        <filter token="mashup_version" 
value="${wso2mashup.version}"/>
+
+                                        <copy todir="target/dist" 
filtering="on">
+                                            <fileset 
file="installer/mashupserver-setup.nsi"/>
+                                        </copy>
+
+                                        <exec executable="makensis" 
failonerror="true" >
+                                            <arg 
value="target/dist/mashupserver-setup.nsi"/>
+                                        </exec>
+                                    </tasks>
+                                </configuration>
+                                <goals>
+                                    <goal>run</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
     </profiles>
     <properties>
         <src.assembly.dir>wso2-mashup-server-src</src.assembly.dir>

_______________________________________________
Mashup-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to