Author: olamy
Date: Sun Dec 16 15:36:18 2012
New Revision: 1422601

URL: http://svn.apache.org/viewvc?rev=1422601&view=rev
Log:
make checkout faster as javadocs folder will not change a lot

Modified:
    commons/proper/collections/trunk/pom.xml

Modified: commons/proper/collections/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/commons/proper/collections/trunk/pom.xml?rev=1422601&r1=1422600&r2=1422601&view=diff
==============================================================================
--- commons/proper/collections/trunk/pom.xml (original)
+++ commons/proper/collections/trunk/pom.xml Sun Dec 16 15:36:18 2012
@@ -437,7 +437,7 @@
     <!-- The RC version used in the staging repository URL. -->
     <commons.rc.version>RC2</commons.rc.version>
     <checkstyle.version>2.9.1</checkstyle.version>
-    <maven.site.path>collections</maven.site.path>
+    <commons.site.path>collections</commons.site.path>
   </properties> 
 
 
@@ -481,8 +481,7 @@
         <artifactId>maven-scm-publish-plugin</artifactId>
         <configuration>
           <ignorePathsToDelete>
-            <ignorePathToDelete>api-release**</ignorePathToDelete>
-            <ignorePathToDelete>api-2.1.1**</ignorePathToDelete>
+            <ignorePathToDelete>javadocs</ignorePathToDelete>
           </ignorePathsToDelete>
         </configuration>
       </plugin>
@@ -531,4 +530,51 @@
     </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 
${maven.scmPubUrl} ${maven.scmPubCheckoutDirectory}" />
+                    </exec>
+
+                    <exec executable="svn">
+                      <arg line="update --set-depth exclude 
${maven.scmPubCheckoutDirectory}/javadocs" />
+                    </exec>
+
+                    <pathconvert pathsep=" " property="dirs">
+                      <dirset dir="${maven.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