incubator-nmaven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sisb...@apache.org
Subject svn commit: r542392 - /incubator/nmaven/trunk/plugins/maven-vsinstaller-plugin/src/main/java/org/apache/maven/dotnet/plugin/vsinstaller/VsInstallerMojo.java
Date Tue, 29 May 2007 02:57:08 GMT
Author: sisbell
Date: Mon May 28 19:57:07 2007
New Revision: 542392

URL: http://svn.apache.org/viewvc?view=rev&rev=542392
Log:
Configurable remote repo for Visual Studio installer to obtain artifacts.

Modified:
    incubator/nmaven/trunk/plugins/maven-vsinstaller-plugin/src/main/java/org/apache/maven/dotnet/plugin/vsinstaller/VsInstallerMojo.java

Modified: incubator/nmaven/trunk/plugins/maven-vsinstaller-plugin/src/main/java/org/apache/maven/dotnet/plugin/vsinstaller/VsInstallerMojo.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/plugins/maven-vsinstaller-plugin/src/main/java/org/apache/maven/dotnet/plugin/vsinstaller/VsInstallerMojo.java?view=diff&rev=542392&r1=542391&r2=542392
==============================================================================
--- incubator/nmaven/trunk/plugins/maven-vsinstaller-plugin/src/main/java/org/apache/maven/dotnet/plugin/vsinstaller/VsInstallerMojo.java
(original)
+++ incubator/nmaven/trunk/plugins/maven-vsinstaller-plugin/src/main/java/org/apache/maven/dotnet/plugin/vsinstaller/VsInstallerMojo.java
Mon May 28 19:57:07 2007
@@ -55,6 +55,11 @@
     private String localRepository;
 
     /**
+     * @parameter expression="${remoteRepository}"
+     */
+    private String remoteRepository;
+
+    /**
      * @component
      */
     private ArtifactContext artifactContext;
@@ -88,12 +93,14 @@
             throw new MojoExecutionException(
                 "NMAVEN-1600-000: Failed to create the repository registry for this plugin",
e );
         }
-
-        ArtifactRepository remoteArtifactRepository = new DefaultArtifactRepository( "nmaven",
-                                                                                     "http://localhost:8080/repository",
-                                                                                     new
DefaultRepositoryLayout() );
         List<ArtifactRepository> remoteRepositories = new ArrayList<ArtifactRepository>();
-        remoteRepositories.add( remoteArtifactRepository );
+        if ( remoteRepository != null )
+        {
+            ArtifactRepository remoteArtifactRepository =
+                new DefaultArtifactRepository( "nmaven", remoteRepository, new DefaultRepositoryLayout()
);
+            remoteRepositories.add( remoteArtifactRepository );
+        }
+
         artifactContext.init( project, remoteRepositories, new File( localRepository ) );
 
         try



Mime
View raw message