continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1426420 - /continuum/site/pom.xml
Date Fri, 28 Dec 2012 07:00:39 GMT
Author: brett
Date: Fri Dec 28 07:00:38 2012
New Revision: 1426420

URL: http://svn.apache.org/viewvc?rev=1426420&view=rev
Log:
pushed profile back down to here

Modified:
    continuum/site/pom.xml

Modified: continuum/site/pom.xml
URL: http://svn.apache.org/viewvc/continuum/site/pom.xml?rev=1426420&r1=1426419&r2=1426420&view=diff
==============================================================================
--- continuum/site/pom.xml (original)
+++ continuum/site/pom.xml Fri Dec 28 07:00:38 2012
@@ -93,7 +93,56 @@
       </snapshots>
     </repository>
   </repositories>
+  <profiles>
+    <profile>
+      <id>setup-checkout</id>
+      <activation>
+        <file>
+          <missing>site-publish</missing>
+        </file>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-antrun-plugin</artifactId>
+            <version>1.7</version>
+            <executions>
+              <execution>
+                <id>prepare-checkout</id>
+                <phase>pre-site</phase>
+                <goals>
+                  <goal>run</goal>
+                </goals>
+                <configuration>
+                  <tasks>
+                    <exec executable="svn">
+                      <arg line="checkout --depth immediates ${svnUrl}
+${checkoutDirectory}" />
+                    </exec>
+                
+                    <exec executable="svn">
+                      <arg line="update --set-depth exclude ${checkoutDirectory}/ref ${checkoutDirectory}/docs"
/>
+                    </exec>
+                
+                    <pathconvert pathsep=" " property="dirs">
+                      <dirset dir="${checkoutDirectory}" includes="*" />
+                    </pathconvert>
+                    <exec executable="svn">
+                      <arg line="update --set-depth infinity ${dirs}" />
+                    </exec>
+                  </tasks>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+
   <properties>
+    <checkoutDirectory>site-publish</checkoutDirectory>
     <svnUrl>https://svn.apache.org/repos/asf/continuum/site-publish</svnUrl>
   </properties>
 </project>



Mime
View raw message