maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdca...@apache.org
Subject svn commit: r508242 - /maven/shared/trunk/maven-plugin-testing-tools/src/main/java/org/apache/maven/shared/test/plugin/ProjectTool.java
Date Thu, 15 Feb 2007 23:54:06 GMT
Author: jdcasey
Date: Thu Feb 15 15:54:05 2007
New Revision: 508242

URL: http://svn.apache.org/viewvc?view=rev&rev=508242
Log:
Adding code to allow the testing version of the component to reference the main local repository
as a remote repository, so snapshots that are installed locally but not yet deployed can be
used from there.

Modified:
    maven/shared/trunk/maven-plugin-testing-tools/src/main/java/org/apache/maven/shared/test/plugin/ProjectTool.java

Modified: maven/shared/trunk/maven-plugin-testing-tools/src/main/java/org/apache/maven/shared/test/plugin/ProjectTool.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-plugin-testing-tools/src/main/java/org/apache/maven/shared/test/plugin/ProjectTool.java?view=diff&rev=508242&r1=508241&r2=508242
==============================================================================
--- maven/shared/trunk/maven-plugin-testing-tools/src/main/java/org/apache/maven/shared/test/plugin/ProjectTool.java
(original)
+++ maven/shared/trunk/maven-plugin-testing-tools/src/main/java/org/apache/maven/shared/test/plugin/ProjectTool.java
Thu Feb 15 15:54:05 2007
@@ -37,6 +37,7 @@
 import org.apache.maven.model.DistributionManagement;
 import org.apache.maven.model.Model;
 import org.apache.maven.model.Plugin;
+import org.apache.maven.model.Repository;
 import org.apache.maven.model.Site;
 import org.apache.maven.model.io.xpp3.MavenXpp3Reader;
 import org.apache.maven.model.io.xpp3.MavenXpp3Writer;
@@ -282,6 +283,15 @@
             
             distMgmt.setRepository( deployRepo );
             distMgmt.setSnapshotRepository( deployRepo );
+            
+            Repository localAsRemote = new Repository();
+            localAsRemote.setId( "testing.mainLocalAsRemote" );
+            
+            File localRepoDir = repositoryTool.findLocalRepositoryDirectory();
+            localAsRemote.setUrl( localRepoDir.toURL().toExternalForm() );
+            
+            model.addRepository( localAsRemote );
+            model.addPluginRepository( localAsRemote );
             
             Site site = new Site();
             



Mime
View raw message