Skip to content

Commit db622ff

Browse files
committed
Configure site build to exclude JavaDocs archive
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1618039 13f79535-47bb-0310-9956-ffa450edef68
1 parent 53d8b4e commit db622ff

1 file changed

Lines changed: 49 additions & 2 deletions

File tree

pom.xml

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ CSV files of various types.
106106
<distributionManagement>
107107
<site>
108108
<id>apache.website</id>
109-
<name>Apache Website</name>
110-
<url>${commons.deployment.protocol}://people.apache.org/www/commons.apache.org/csv/</url>
109+
<name>Apache Commons Site</name>
110+
<url>scm:svn:https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-csv/</url>
111111
</site>
112112
</distributionManagement>
113113

@@ -307,4 +307,51 @@ CSV files of various types.
307307
</plugins>
308308
</reporting>
309309

310+
<profiles>
311+
<profile>
312+
<id>setup-checkout</id>
313+
<activation>
314+
<file>
315+
<missing>site-content</missing>
316+
</file>
317+
</activation>
318+
<build>
319+
<plugins>
320+
<plugin>
321+
<groupId>org.apache.maven.plugins</groupId>
322+
<artifactId>maven-antrun-plugin</artifactId>
323+
<version>1.7</version>
324+
<executions>
325+
<execution>
326+
<id>prepare-checkout</id>
327+
<phase>pre-site</phase>
328+
<goals>
329+
<goal>run</goal>
330+
</goals>
331+
<configuration>
332+
<tasks>
333+
<exec executable="svn">
334+
<arg line="checkout --depth immediates ${commons.scmPubUrl} ${commons.scmPubCheckoutDirectory}" />
335+
</exec>
336+
337+
<exec executable="svn">
338+
<arg line="update --set-depth exclude ${commons.scmPubCheckoutDirectory}/javadocs" />
339+
</exec>
340+
341+
<pathconvert pathsep=" " property="dirs">
342+
<dirset dir="${commons.scmPubCheckoutDirectory}" includes="*" />
343+
</pathconvert>
344+
<exec executable="svn">
345+
<arg line="update --set-depth infinity ${dirs}" />
346+
</exec>
347+
</tasks>
348+
</configuration>
349+
</execution>
350+
</executions>
351+
</plugin>
352+
</plugins>
353+
</build>
354+
</profile>
355+
</profiles>
356+
310357
</project>

0 commit comments

Comments
 (0)