continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1415518 - in /continuum/site: pom.xml setup-checkout.sh
Date Fri, 30 Nov 2012 07:07:21 GMT
Author: brett
Date: Fri Nov 30 07:07:20 2012
New Revision: 1415518

URL: http://svn.apache.org/viewvc?rev=1415518&view=rev
Log:
prepare checkout as part of build

Removed:
    continuum/site/setup-checkout.sh
Modified:
    continuum/site/pom.xml

Modified: continuum/site/pom.xml
URL: http://svn.apache.org/viewvc/continuum/site/pom.xml?rev=1415518&r1=1415517&r2=1415518&view=diff
==============================================================================
--- continuum/site/pom.xml (original)
+++ continuum/site/pom.xml Fri Nov 30 07:07:20 2012
@@ -32,7 +32,7 @@
   <distributionManagement>
     <site>
       <id>apache</id>
-      <url>scm:svn:https://svn.apache.org/repos/asf/continuum/site-publish</url>
+      <url>scm:svn:${svnUrl}</url>
     </site>
   </distributionManagement>
   <scm>
@@ -49,18 +49,39 @@
         <configuration>
           <templateDirectory>${basedir}/src/site</templateDirectory>
           <template>continuum-site.vm</template>
+          <skipDeploy>true</skipDeploy>
         </configuration>
+        <executions>
+          <execution>
+            <id>stage-for-scm-publish</id>
+            <phase>post-site</phase>
+            <goals>
+              <goal>stage</goal>
+            </goals>
+            <configuration>
+              <skipDeploy>false</skipDeploy>
+            </configuration>
+          </execution>
+        </executions>
       </plugin>    
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-scm-publish-plugin</artifactId>
         <version>1.0-beta-2</version>
         <configuration>
-          <checkoutDirectory>site-publish</checkoutDirectory>
+          <checkoutDirectory>${checkoutDirectory}</checkoutDirectory>
           <tryUpdate>true</tryUpdate>
-          <content>target/site</content>
         </configuration>
-    </plugin>
+        <executions>
+          <execution>
+            <id>scm-publish</id>
+            <phase>site-deploy</phase>
+            <goals>
+              <goal>publish-scm</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>
   <reporting>
@@ -104,5 +125,53 @@
   </repositories>
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    <svnUrl>https://svn.apache.org/repos/asf/continuum/site-publish</svnUrl>
+    <checkoutDirectory>site-publish</checkoutDirectory>
   </properties>
+  <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}" />
+                    </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>
 </project>



Mime
View raw message