Skip to content

Commit

Permalink
make checkout faster as javadocs folder will not change a lot
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1422601 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
olamy committed Dec 16, 2012
1 parent 6130eb8 commit e965e69
Showing 1 changed file with 49 additions and 3 deletions.
52 changes: 49 additions & 3 deletions pom.xml
Expand Up @@ -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>


Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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>

0 comments on commit e965e69

Please sign in to comment.