Author: olamy
Date: Wed Dec 12 21:27:59 2012
New Revision: 1420978

URL: http://svn.apache.org/viewvc?rev=1420978&view=rev
Log:
copy good idea from brett to have faster site deployment

Modified:
    archiva/site/pom.xml

Modified: archiva/site/pom.xml
URL: 
http://svn.apache.org/viewvc/archiva/site/pom.xml?rev=1420978&r1=1420977&r2=1420978&view=diff
==============================================================================
--- archiva/site/pom.xml (original)
+++ archiva/site/pom.xml Wed Dec 12 21:27:59 2012
@@ -50,7 +50,7 @@
 
     <archivaCurrentDevVersion>1.4-M4-SNAPSHOT</archivaCurrentDevVersion>
     <newUiDocVersion>${archivaCurrentDevVersion}</newUiDocVersion>
-
+    <svnUrl>https://svn.apache.org/repos/asf/archiva/site-content</svnUrl>
   </properties>
 
   <organization>
@@ -67,7 +67,7 @@
   <distributionManagement>
     <site>
       <id>apache.website.svnpub</id>
-      <url>scm:svn:https://svn.apache.org/repos/asf/archiva/site-content/</url>
+      <url>scm:svn:${svnUrl}</url>
     </site>
   </distributionManagement>
 
@@ -167,5 +167,52 @@
     </plugins>
   </reporting>
 
+  <profiles>
+    <profile>
+      <id>setup-checkout</id>
+      <activation>
+        <file>
+          <missing>${scmPubCheckoutDirectory}</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} 
${scmPubCheckoutDirectory}" />
+                    </exec>
+
+                    <exec executable="svn">
+                      <arg line="update --set-depth exclude 
${scmPubCheckoutDirectory}/ref ${scmPubCheckoutDirectory}/docs 
${scmPubCheckoutDirectory}/redback" />
+                    </exec>
+
+                    <pathconvert pathsep=" " property="dirs">
+                      <dirset dir="${scmPubCheckoutDirectory}" includes="*" />
+                    </pathconvert>
+                    <exec executable="svn">
+                      <arg line="update --set-depth infinity ${dirs}" />
+                    </exec>
+                  </tasks>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+
 
 </project>


Reply via email to