You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ch...@apache.org on 2007/06/14 20:09:57 UTC

svn commit: r547340 - in /activemq/camel/trunk/apache-camel: pom.xml src/main/descriptors/unix-bin.xml src/main/descriptors/windows-bin.xml

Author: chirino
Date: Thu Jun 14 11:09:56 2007
New Revision: 547340

URL: http://svn.apache.org/viewvc?view=rev&rev=547340
Log:
Now when you build with the "-P release" argument on the maven command line, the camel website will be downloaded and included in the camel binary distributions.  You must have ssh access to people.apache.org for this to work.
 

Modified:
    activemq/camel/trunk/apache-camel/pom.xml
    activemq/camel/trunk/apache-camel/src/main/descriptors/unix-bin.xml
    activemq/camel/trunk/apache-camel/src/main/descriptors/windows-bin.xml

Modified: activemq/camel/trunk/apache-camel/pom.xml
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/apache-camel/pom.xml?view=diff&rev=547340&r1=547339&r2=547340
==============================================================================
--- activemq/camel/trunk/apache-camel/pom.xml (original)
+++ activemq/camel/trunk/apache-camel/pom.xml Thu Jun 14 11:09:56 2007
@@ -153,32 +153,6 @@
   <build>
 
     <plugins>
-      <!--
-            <plugin>
-              <groupId>org.apache.maven.plugins</groupId>
-              <artifactId>maven-antrun-plugin</artifactId>
-              <version>1.1</version>
-              <executions>
-                <execution>
-                  <id>run-jar</id>
-                  <phase>package</phase>
-                  <configuration>
-                    <tasks>
-                      <jar destfile="target/run.jar" basedir="target/classes">
-                            <include name="org/apache/camel/console/Main*.class"/>
-                            <manifest>
-                              <attribute name="Main-Class" value="org.apache.camel.console.Main"/>
-                            </manifest>
-                      </jar>
-                    </tasks>
-                  </configuration>
-                  <goals>
-                    <goal>run</goal>
-                  </goals>
-                </execution>
-              </executions>
-            </plugin>
-      -->
       <plugin>
         <artifactId>maven-surefire-plugin</artifactId>
         <configuration>
@@ -265,6 +239,46 @@
     </plugins>
   </build>
   <profiles>
+    <profile>
+      <id>release</id>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-antrun-plugin</artifactId>
+            <version>1.1</version>
+  
+            <executions>
+              <execution>
+                <id>download-website</id>
+                <phase>compile</phase> <!-- once maven 2.1 is out we can make this prepare-package -->
+                <configuration>
+                  <tasks>
+  
+                    <exec executable="rsync">
+                      <arg value="-ave"/>
+                      <arg value="ssh"/>
+                      <arg value="people.apache.org:/www/activemq.apache.org/camel/"/>
+                      <arg value="${basedir}/target/website/"/>
+                    </exec>
+  
+                    <echo message="Replaceing absolute links with relative ones"/>
+                    <replace dir="${basedir}/target/website">
+                      <replacefilter token="http://activemq.apache.org/camel/maven/" value="maven/"/>
+                      <replacefilter token="http://activemq.apache.org/camel/styles/" value="styles/"/>
+                    </replace>
+  
+                  </tasks>
+                </configuration>
+                <goals>
+                  <goal>run</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
     <profile>
       <id>assembly-src</id>
       <build>

Modified: activemq/camel/trunk/apache-camel/src/main/descriptors/unix-bin.xml
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/apache-camel/src/main/descriptors/unix-bin.xml?view=diff&rev=547340&r1=547339&r2=547340
==============================================================================
--- activemq/camel/trunk/apache-camel/src/main/descriptors/unix-bin.xml (original)
+++ activemq/camel/trunk/apache-camel/src/main/descriptors/unix-bin.xml Thu Jun 14 11:09:56 2007
@@ -45,6 +45,12 @@
       <lineEnding>unix</lineEnding>
     </fileSet>
 
+    <!-- copy the website docs -->
+    <fileSet>
+      <directory>${basedir}/target/website</directory>
+      <outputDirectory>/doc/website</outputDirectory>
+    </fileSet>
+
     <!-- Copy over jar files -->
     <fileSet>
       <directory>target</directory>

Modified: activemq/camel/trunk/apache-camel/src/main/descriptors/windows-bin.xml
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/apache-camel/src/main/descriptors/windows-bin.xml?view=diff&rev=547340&r1=547339&r2=547340
==============================================================================
--- activemq/camel/trunk/apache-camel/src/main/descriptors/windows-bin.xml (original)
+++ activemq/camel/trunk/apache-camel/src/main/descriptors/windows-bin.xml Thu Jun 14 11:09:56 2007
@@ -32,6 +32,12 @@
       <lineEnding>dos</lineEnding>
     </fileSet>
 
+    <!-- copy the website docs -->
+    <fileSet>
+      <directory>${basedir}/target/website</directory>
+      <outputDirectory>/doc/website</outputDirectory>
+    </fileSet>
+
     <!-- copy the examples -->
     <fileSet>
       <directory>../examples</directory>