Return-Path: Delivered-To: apmail-maven-commits-archive@www.apache.org Received: (qmail 2158 invoked from network); 8 Mar 2009 13:27:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Mar 2009 13:27:53 -0000 Received: (qmail 9483 invoked by uid 500); 8 Mar 2009 13:27:53 -0000 Delivered-To: apmail-maven-commits-archive@maven.apache.org Received: (qmail 9268 invoked by uid 500); 8 Mar 2009 13:27:52 -0000 Mailing-List: contact commits-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list commits@maven.apache.org Received: (qmail 9259 invoked by uid 99); 8 Mar 2009 13:27:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Mar 2009 06:27:52 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Mar 2009 13:27:49 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id D26882388999; Sun, 8 Mar 2009 13:27:28 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r751419 - in /maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo: ./ pom.xml setup.bsh test.properties verify.bsh Date: Sun, 08 Mar 2009 13:27:28 -0000 To: commits@maven.apache.org From: bentmann@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090308132728.D26882388999@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: bentmann Date: Sun Mar 8 13:27:28 2009 New Revision: 751419 URL: http://svn.apache.org/viewvc?rev=751419&view=rev Log: o Added IT for deployment alternative repo Added: maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/ maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/pom.xml (with props) maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/setup.bsh (with props) maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/test.properties (with props) maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/verify.bsh (with props) Added: maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/pom.xml URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/pom.xml?rev=751419&view=auto ============================================================================== --- maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/pom.xml (added) +++ maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/pom.xml Sun Mar 8 13:27:28 2009 @@ -0,0 +1,80 @@ + + + + + + 4.0.0 + + org.apache.maven.its.deploy.adr + test + 1.0 + jar + + + Tests the deployment to an alternative repository specified on the CLI. + + + + true + + + + + it + file:///${basedir}/target/void + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 2.0.2 + + + org.apache.maven.plugins + maven-deploy-plugin + @project.version@ + + + org.apache.maven.plugins + maven-install-plugin + 2.2 + + + org.apache.maven.plugins + maven-jar-plugin + 2.1 + + + org.apache.maven.plugins + maven-resources-plugin + 2.2 + + + org.apache.maven.plugins + maven-surefire-plugin + 2.3.1 + + + + + Propchange: maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/pom.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/pom.xml ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision Added: maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/setup.bsh URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/setup.bsh?rev=751419&view=auto ============================================================================== --- maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/setup.bsh (added) +++ maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/setup.bsh Sun Mar 8 13:27:28 2009 @@ -0,0 +1,14 @@ +import java.io.*; +import java.util.*; + +import org.codehaus.plexus.util.*; + +File file = new File( localRepositoryPath, "org/apache/maven/its/deploy/adr" ); +System.out.println( "Deleting " + file ); +FileUtils.deleteDirectory( file ); + +file = new File( basedir, "target/repo" ); +System.out.println( "Deleting " + file ); +FileUtils.deleteDirectory( file ); + +return true; Propchange: maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/setup.bsh ------------------------------------------------------------------------------ svn:eol-style = native Propchange: maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/setup.bsh ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision Added: maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/test.properties URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/test.properties?rev=751419&view=auto ============================================================================== --- maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/test.properties (added) +++ maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/test.properties Sun Mar 8 13:27:28 2009 @@ -0,0 +1 @@ +altDeploymentRepository = alt-id::default::file:target/repo Propchange: maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/test.properties ------------------------------------------------------------------------------ svn:eol-style = native Propchange: maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/test.properties ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision Added: maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/verify.bsh URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/verify.bsh?rev=751419&view=auto ============================================================================== --- maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/verify.bsh (added) +++ maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/verify.bsh Sun Mar 8 13:27:28 2009 @@ -0,0 +1,21 @@ +import java.io.*; +import java.util.*; + +String[] paths = +{ + "org/apache/maven/its/deploy/adr/test/maven-metadata.xml", + "org/apache/maven/its/deploy/adr/test/1.0/test-1.0.pom", + "org/apache/maven/its/deploy/adr/test/1.0/test-1.0.jar", +}; + +for ( String path : paths ) +{ + File file = new File( new File( basedir, "target/repo" ), path ); + System.out.println( "Checking for existence of " + file ); + if ( !file.isFile() ) + { + throw new FileNotFoundException( "Missing: " + file.getAbsolutePath() ); + } +} + +return true; Propchange: maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/verify.bsh ------------------------------------------------------------------------------ svn:eol-style = native Propchange: maven/plugins/trunk/maven-deploy-plugin/src/it/alt-deploy-repo/verify.bsh ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision