Skip to content

Commit b9260ce

Browse files
committed
faster checkout with excluding javadocs directory which contains previous versions
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/cli/trunk@1423217 13f79535-47bb-0310-9956-ffa450edef68
1 parent 9b5312a commit b9260ce

1 file changed

Lines changed: 104 additions & 52 deletions

File tree

pom.xml

Lines changed: 104 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -188,60 +188,68 @@
188188
</build>
189189

190190
<reporting>
191-
<plugins>
192-
<plugin>
193-
<groupId>org.apache.maven.plugins</groupId>
194-
<artifactId>maven-javadoc-plugin</artifactId>
195-
<configuration>
196-
<linksource>true</linksource>
197-
<links>
198-
<link>http://download.oracle.com/javase/6/docs/api</link>
199-
</links>
200-
</configuration>
201-
</plugin>
202-
<plugin>
203-
<groupId>org.apache.maven.plugins</groupId>
204-
<artifactId>maven-checkstyle-plugin</artifactId>
205-
<version>2.1</version>
206-
<configuration>
207-
<configLocation>${basedir}/src/conf/checkstyle.xml</configLocation>
208-
<enableRulesSummary>false</enableRulesSummary>
209-
<headerFile>${basedir}/src/conf/HEADER.txt</headerFile>
210-
</configuration>
211-
</plugin>
212-
<plugin>
213-
<groupId>org.codehaus.mojo</groupId>
214-
<artifactId>findbugs-maven-plugin</artifactId>
215-
<version>2.4.0</version>
216-
<configuration>
217-
<threshold>Normal</threshold>
218-
<effort>Default</effort>
219-
</configuration>
220-
</plugin>
221-
<plugin>
222-
<groupId>org.codehaus.mojo</groupId>
223-
<artifactId>cobertura-maven-plugin</artifactId>
224-
<version>2.2</version>
225-
</plugin>
226-
<plugin>
227-
<groupId>org.codehaus.mojo</groupId>
228-
<artifactId>clirr-maven-plugin</artifactId>
229-
<version>2.2.1</version>
230-
<configuration>
231-
<comparisonVersion>1.2</comparisonVersion>
232-
</configuration>
233-
</plugin>
234-
<plugin>
235-
<groupId>org.apache.maven.plugins</groupId>
236-
<artifactId>maven-pmd-plugin</artifactId>
237-
<version>2.7.1</version>
238-
<configuration>
239-
<targetJdk>${maven.compile.source}</targetJdk>
240-
</configuration>
241-
</plugin>
242-
</plugins>
191+
<plugins>
192+
<plugin>
193+
<groupId>org.apache.maven.plugins</groupId>
194+
<artifactId>maven-javadoc-plugin</artifactId>
195+
<configuration>
196+
<linksource>true</linksource>
197+
<links>
198+
<link>http://download.oracle.com/javase/6/docs/api</link>
199+
</links>
200+
</configuration>
201+
</plugin>
202+
<plugin>
203+
<groupId>org.apache.maven.plugins</groupId>
204+
<artifactId>maven-checkstyle-plugin</artifactId>
205+
<version>2.1</version>
206+
<configuration>
207+
<configLocation>${basedir}/src/conf/checkstyle.xml</configLocation>
208+
<enableRulesSummary>false</enableRulesSummary>
209+
<headerFile>${basedir}/src/conf/HEADER.txt</headerFile>
210+
</configuration>
211+
</plugin>
212+
<plugin>
213+
<groupId>org.codehaus.mojo</groupId>
214+
<artifactId>findbugs-maven-plugin</artifactId>
215+
<version>2.4.0</version>
216+
<configuration>
217+
<threshold>Normal</threshold>
218+
<effort>Default</effort>
219+
</configuration>
220+
</plugin>
221+
<plugin>
222+
<groupId>org.codehaus.mojo</groupId>
223+
<artifactId>cobertura-maven-plugin</artifactId>
224+
<version>2.2</version>
225+
</plugin>
226+
<plugin>
227+
<groupId>org.codehaus.mojo</groupId>
228+
<artifactId>clirr-maven-plugin</artifactId>
229+
<version>2.2.1</version>
230+
<configuration>
231+
<comparisonVersion>1.2</comparisonVersion>
232+
</configuration>
233+
</plugin>
234+
<plugin>
235+
<groupId>org.apache.maven.plugins</groupId>
236+
<artifactId>maven-pmd-plugin</artifactId>
237+
<version>2.7.1</version>
238+
<configuration>
239+
<targetJdk>${maven.compile.source}</targetJdk>
240+
</configuration>
241+
</plugin>
242+
</plugins>
243243
</reporting>
244244

245+
<distributionManagement>
246+
<site>
247+
<id>apache.website</id>
248+
<name>Apache Commons Site</name>
249+
<url>scm:svn:${commons.scmPubUrl}</url>
250+
</site>
251+
</distributionManagement>
252+
245253
<profiles>
246254
<profile>
247255
<id>rc</id>
@@ -254,6 +262,50 @@
254262
</site>
255263
</distributionManagement>
256264
</profile>
265+
<profile>
266+
<id>setup-checkout</id>
267+
<activation>
268+
<file>
269+
<missing>${scmPubCheckoutDirectory}</missing>
270+
</file>
271+
</activation>
272+
<build>
273+
<plugins>
274+
<plugin>
275+
<groupId>org.apache.maven.plugins</groupId>
276+
<artifactId>maven-antrun-plugin</artifactId>
277+
<version>1.7</version>
278+
<executions>
279+
<execution>
280+
<id>prepare-checkout</id>
281+
<phase>pre-site</phase>
282+
<goals>
283+
<goal>run</goal>
284+
</goals>
285+
<configuration>
286+
<tasks>
287+
<exec executable="svn">
288+
<arg line="checkout --depth immediates ${commons.scmPubUrl} ${commons.scmPubCheckoutDirectory}" />
289+
</exec>
290+
291+
<exec executable="svn">
292+
<arg line="update --set-depth exclude ${commons.scmPubCheckoutDirectory}/javadocs" />
293+
</exec>
294+
295+
<pathconvert pathsep=" " property="dirs">
296+
<dirset dir="${commons.scmPubCheckoutDirectory}" includes="*" />
297+
</pathconvert>
298+
<exec executable="svn">
299+
<arg line="update --set-depth infinity ${dirs}" />
300+
</exec>
301+
</tasks>
302+
</configuration>
303+
</execution>
304+
</executions>
305+
</plugin>
306+
</plugins>
307+
</build>
308+
</profile>
257309
</profiles>
258310

259311
</project>

0 commit comments

Comments
 (0)