Skip to content

Commit e265b47

Browse files
committed
add hack for local svnpubsub
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1451344 13f79535-47bb-0310-9956-ffa450edef68
1 parent 821f0dc commit e265b47

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

pom.xml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,8 @@ file comparators, endian transformation classes, and much more.
249249
org.apache.commons.io.output;
250250
org.apache.commons.io.*;version=${project.version};-noimport:=true
251251
</commons.osgi.export>
252+
253+
<commons.scmPubCheckoutDirectory>site-content</commons.scmPubCheckoutDirectory>
252254
</properties>
253255

254256
<build>
@@ -329,4 +331,50 @@ file comparators, endian transformation classes, and much more.
329331
</plugin>
330332
</plugins>
331333
</reporting>
334+
<profiles>
335+
<profile>
336+
<id>setup-checkout</id>
337+
<activation>
338+
<file>
339+
<missing>site-content</missing>
340+
</file>
341+
</activation>
342+
<build>
343+
<plugins>
344+
<plugin>
345+
<groupId>org.apache.maven.plugins</groupId>
346+
<artifactId>maven-antrun-plugin</artifactId>
347+
<version>1.7</version>
348+
<executions>
349+
<execution>
350+
<id>prepare-checkout</id>
351+
<phase>pre-site</phase>
352+
<goals>
353+
<goal>run</goal>
354+
</goals>
355+
<configuration>
356+
<tasks>
357+
<exec executable="svn">
358+
<arg line="checkout --depth immediates ${commons.scmPubUrl} ${commons.scmPubCheckoutDirectory}" />
359+
</exec>
360+
361+
<exec executable="svn">
362+
<arg line="update --set-depth exclude ${commons.scmPubCheckoutDirectory}/javadocs" />
363+
</exec>
364+
365+
<pathconvert pathsep=" " property="dirs">
366+
<dirset dir="${commons.scmPubCheckoutDirectory}" includes="*" />
367+
</pathconvert>
368+
<exec executable="svn">
369+
<arg line="update --set-depth infinity ${dirs}" />
370+
</exec>
371+
</tasks>
372+
</configuration>
373+
</execution>
374+
</executions>
375+
</plugin>
376+
</plugins>
377+
</build>
378+
</profile>
379+
</profiles>
332380
</project>

0 commit comments

Comments
 (0)