commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1430512 - /commons/proper/exec/trunk/pom.xml
Date Tue, 08 Jan 2013 20:48:50 GMT
Author: olamy
Date: Tue Jan  8 20:48:50 2013
New Revision: 1430512

URL: http://svn.apache.org/viewvc?rev=1430512&view=rev
Log:
test svnpubconfiguration

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

Modified: commons/proper/exec/trunk/pom.xml
URL: http://svn.apache.org/viewvc/commons/proper/exec/trunk/pom.xml?rev=1430512&r1=1430511&r2=1430512&view=diff
==============================================================================
--- commons/proper/exec/trunk/pom.xml (original)
+++ commons/proper/exec/trunk/pom.xml Tue Jan  8 20:48:50 2013
@@ -251,6 +251,55 @@
                 </plugins>
             </build>
         </profile>
+      <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 ${commons.scmPubUrl} ${commons.scmPubCheckoutDirectory}"
/>
+                      </exec>
+                      <!-- in case of paths to ignore (added manually) -->
+                      <!--
+                      <exec executable="svn">
+                        <arg line="update - -set-depth exclude ${commons.scmPubCheckoutDirectory}/javadocs"
/>
+                      </exec>
+
+                      <pathconvert pathsep=" " property="dirs">
+                        <dirset dir="${commons.scmPubCheckoutDirectory}" includes="*"
/>
+                      </pathconvert>
+                      <exec executable="svn">
+                        <arg line="update - -set-depth infinity ${dirs}" />
+                      </exec>
+                      -->
+                      <exec executable="svn">
+                        <arg line="update" />
+                      </exec>
+                    </tasks>
+                  </configuration>
+                </execution>
+              </executions>
+            </plugin>
+          </plugins>
+        </build>
+      </profile>
     </profiles>
     <properties>
         <!-- Compiler source and target JVM (see parent pom). Must agree with versions
in build.xml -->
@@ -267,5 +316,6 @@
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
         <commons.site.path>exec</commons.site.path>
+        <commons.scmPubCheckoutDirectory>site-content</commons.scmPubCheckoutDirectory>
     </properties>
 </project>



Mime
View raw message