statesystem: Move plugins to their own sub-directory
[deliverable/tracecompass.git] / org.eclipse.tracecompass.rcp.product / pom.xml
index 85e5a4bcd5a4d905c54eb85c5569b739be8e7503..86508053efd6b51c68e1d86d316e4cccacfedf01 100644 (file)
@@ -4,7 +4,7 @@
     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
     <modelVersion>4.0.0</modelVersion>
 
-    <version>1.1.0</version>
+    <version>1.0.0-SNAPSHOT</version>
     <artifactId>tracing</artifactId>
     <packaging>eclipse-repository</packaging>
     <name>Trace Compass RCP Product</name>
@@ -12,7 +12,7 @@
     <parent>
       <artifactId>org.eclipse.tracecompass</artifactId>
       <groupId>org.eclipse.tracecompass</groupId>
-      <version>3.2.0-SNAPSHOT</version>
+      <version>1.0.0-SNAPSHOT</version>
     </parent>
 
     <properties>
@@ -51,7 +51,7 @@
                 <configuration>
                     <products>
                         <product>
-                            <archiveFileName>trace-compass-${project.version}-${build.timestamp}</archiveFileName>
+                            <archiveFileName>trace-compass-${unqualifiedVersion}-${build.timestamp}</archiveFileName>
                             <id>${productId}</id>
                             <rootFolder>trace-compass</rootFolder>
                         </product>
             </plugin>
         </plugins>
     </build>
-    <groupId>org.eclipse.tracecompass</groupId>
+
+  <!-- Deploy RCP builds and update site to the downloads area -->
+  <profiles>
+    <profile>
+      <id>deploy-rcp</id>
+      <properties>
+        <rcpDestination>/home/data/httpd/download.eclipse.org/tracecompass/master/rcp/</rcpDestination>
+        <rcpSiteDestination>/home/data/httpd/download.eclipse.org/tracecompass/master/rcp-repository/</rcpSiteDestination>
+      </properties>
+      <build>
+        <plugins>
+          <plugin>
+            <artifactId>maven-antrun-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>deploy</id>
+                <phase>install</phase>
+                <goals>
+                  <goal>run</goal>
+                </goals>
+                <configuration>
+                  <target>
+                    <!-- Cleanup the "rcp" destination, and copy over the new archives -->
+                    <delete includeemptydirs="false">
+                      <fileset dir="${rcpDestination}">
+                        <include name="*.tar.gz" />
+                        <include name="*.zip" />
+                      </fileset>
+                    </delete>
+                    <copy includeemptydirs="false" todir="${rcpDestination}">
+                      <fileset dir="target/products">
+                        <include name="trace-compass-*" />
+                      </fileset>
+                    </copy>
+
+                    <!-- Cleanup the "rcp-repository" update site, and copy over the new one -->
+                    <delete includeemptydirs="false">
+                      <fileset
+                        dir="${rcpSiteDestination}">
+                        <include name="**" />
+                      </fileset>
+                    </delete>
+                    <copy includeemptydirs="false" todir="${rcpSiteDestination}">
+                      <fileset dir="target/repository">
+                        <include name="**" />
+                      </fileset>
+                    </copy>
+                  </target>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+
+  <groupId>org.eclipse.tracecompass</groupId>
 </project>
This page took 0.039634 seconds and 5 git commands to generate.