Author: olamy
Date: Tue Oct 25 08:12:33 2011
New Revision: 1188559
URL: http://svn.apache.org/viewvc?rev=1188559&view=rev
Log:
do not store those test artifacts in the scm: use dependency plugin to get them
Removed:
maven/sandbox/trunk/wagon/wagon-benchmarks/wagon-benchmarks-ahc/src/test/apache-maven-3.0.3-bin.zip
maven/sandbox/trunk/wagon/wagon-benchmarks/wagon-benchmarks-ahc/src/test/httpclient-4.1.2.jar
maven/sandbox/trunk/wagon/wagon-benchmarks/wagon-benchmarks-http-lightweight/src/test/apache-maven-3.0.3-bin.zip
maven/sandbox/trunk/wagon/wagon-benchmarks/wagon-benchmarks-http-lightweight/src/test/httpclient-4.1.2.jar
maven/sandbox/trunk/wagon/wagon-benchmarks/wagon-benchmarks-http/src/test/apache-maven-3.0.3-bin.zip
maven/sandbox/trunk/wagon/wagon-benchmarks/wagon-benchmarks-http/src/test/httpclient-4.1.2.jar
Modified:
maven/sandbox/trunk/wagon/wagon-benchmarks/pom.xml
maven/sandbox/trunk/wagon/wagon-benchmarks/wagon-benchmarks-api/src/main/java/org/apache/maven/wagon/benchmarks/AbstractWagonHttpClientTest.java
Modified: maven/sandbox/trunk/wagon/wagon-benchmarks/pom.xml
URL:
http://svn.apache.org/viewvc/maven/sandbox/trunk/wagon/wagon-benchmarks/pom.xml?rev=1188559&r1=1188558&r2=1188559&view=diff
==============================================================================
--- maven/sandbox/trunk/wagon/wagon-benchmarks/pom.xml (original)
+++ maven/sandbox/trunk/wagon/wagon-benchmarks/pom.xml Tue Oct 25 08:12:33 2011
@@ -16,7 +16,8 @@ software distributed under the License i
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
---><project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
@@ -41,6 +42,8 @@ under the License.
<!-- parallel request to do -->
<wagon.benchmark.rq.parallel>8</wagon.benchmark.rq.parallel>
<surefireForkedVmArgs>-Xmx768m -Xms512m -client
-Xss128k</surefireForkedVmArgs>
+ <hugeFilePath>${basedir}/target/apache-maven-3.0.3-bin.zip</hugeFilePath>
+ <mediumFilePath>${basedir}/target/httpclient-4.1.2.jar</mediumFilePath>
</properties>
<modules>
@@ -155,6 +158,46 @@ under the License.
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>2.3</version>
+ <executions>
+ <execution>
+ <id>get-test-files</id>
+ <phase>generate-test-resources</phase>
+ <goals>
+ <goal>copy</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>apache-maven</artifactId>
+ <version>3.0.3</version>
+ <type>zip</type>
+ <classifier>bin</classifier>
+ <overWrite>false</overWrite>
+ <outputDirectory>${basedir}/target</outputDirectory>
+ <destFileName>apache-maven-3.0.3-bin.zip</destFileName>
+ </artifactItem>
+ <artifactItem>
+ <groupId>org.apache.httpcomponents</groupId>
+ <artifactId>httpclient</artifactId>
+ <version>4.1.2</version>
+ <type>jar</type>
+ <overWrite>false</overWrite>
+ <outputDirectory>${basedir}/target</outputDirectory>
+ <destFileName>httpclient-4.1.2.jar</destFileName>
+ </artifactItem>
+ </artifactItems>
+ <outputDirectory>${project.build.directory}/tmp</outputDirectory>
+ <overWriteReleases>false</overWriteReleases>
+ <overWriteSnapshots>true</overWriteSnapshots>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
<pluginManagement>
<plugins>
@@ -171,6 +214,8 @@ under the License.
<java.io.tmpdir>${project.build.directory}</java.io.tmpdir>
<jub.consumers>CONSOLE,H2</jub.consumers>
<jub.db.file>target/.benchmarks</jub.db.file>
+ <hugeFilePath>${hugeFilePath}</hugeFilePath>
+ <mediumFilePath>${mediumFilePath}</mediumFilePath>
</systemPropertyVariables>
</configuration>
</plugin>
Modified:
maven/sandbox/trunk/wagon/wagon-benchmarks/wagon-benchmarks-api/src/main/java/org/apache/maven/wagon/benchmarks/AbstractWagonHttpClientTest.java
URL:
http://svn.apache.org/viewvc/maven/sandbox/trunk/wagon/wagon-benchmarks/wagon-benchmarks-api/src/main/java/org/apache/maven/wagon/benchmarks/AbstractWagonHttpClientTest.java?rev=1188559&r1=1188558&r2=1188559&view=diff
==============================================================================
---
maven/sandbox/trunk/wagon/wagon-benchmarks/wagon-benchmarks-api/src/main/java/org/apache/maven/wagon/benchmarks/AbstractWagonHttpClientTest.java
(original)
+++
maven/sandbox/trunk/wagon/wagon-benchmarks/wagon-benchmarks-api/src/main/java/org/apache/maven/wagon/benchmarks/AbstractWagonHttpClientTest.java
Tue Oct 25 08:12:33 2011
@@ -229,7 +229,7 @@ public abstract class AbstractWagonHttpC
private void hugeFileGet( boolean compressResponse, boolean ssl )
throws Exception
{
- fileGet( compressResponse, ssl, new FileInputStream( new File(
"src/test/apache-maven-3.0.3-bin.zip" ) ) );
+ fileGet( compressResponse, ssl, new FileInputStream( new File(
System.getProperty( "hugeFilePath" ) ) ) );
}
@@ -298,7 +298,7 @@ public abstract class AbstractWagonHttpC
private void mediumFileGet( boolean compressResponse, boolean ssl )
throws Exception
{
- fileGet( compressResponse, ssl, new FileInputStream( new File(
"src/test/httpclient-4.1.2.jar" ) ) );
+ fileGet( compressResponse, ssl, new FileInputStream( new File(
System.getProperty( "mediumFilePath" ) ) ) );
}
private void fileGet( boolean compressResponse, boolean ssl, InputStream
is )