Author: britter Date: Thu Aug 14 20:00:38 2014 New Revision: 1618039 URL: http://svn.apache.org/r1618039 Log: Configure site build to exclude JavaDocs archive
Modified: commons/proper/csv/trunk/pom.xml Modified: commons/proper/csv/trunk/pom.xml URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/pom.xml?rev=1618039&r1=1618038&r2=1618039&view=diff ============================================================================== --- commons/proper/csv/trunk/pom.xml (original) +++ commons/proper/csv/trunk/pom.xml Thu Aug 14 20:00:38 2014 @@ -106,8 +106,8 @@ CSV files of various types. <distributionManagement> <site> <id>apache.website</id> - <name>Apache Website</name> - <url>${commons.deployment.protocol}://people.apache.org/www/commons.apache.org/csv/</url> + <name>Apache Commons Site</name> + <url>scm:svn:https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-csv/</url> </site> </distributionManagement> @@ -307,4 +307,51 @@ CSV files of various types. </plugins> </reporting> + <profiles> + <profile> + <id>setup-checkout</id> + <activation> + <file> + <missing>site-content</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> + + <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> + </tasks> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> + </project>