incubator-nmaven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sisb...@apache.org
Subject svn commit: r579869 - in /incubator/nmaven/trunk/components/dotnet-artifact/src/main/java/org/apache/maven/dotnet/artifact: NetDependenciesRepository.java impl/NetDependenciesRepositoryImpl.java
Date Thu, 27 Sep 2007 02:19:27 GMT
Author: sisbell
Date: Wed Sep 26 19:19:26 2007
New Revision: 579869

URL: http://svn.apache.org/viewvc?rev=579869&view=rev
Log:
Public method for getting the config props of the NetDependency. This can be used by plugins
to get the version of NMaven that they need to run under.

Modified:
    incubator/nmaven/trunk/components/dotnet-artifact/src/main/java/org/apache/maven/dotnet/artifact/NetDependenciesRepository.java
    incubator/nmaven/trunk/components/dotnet-artifact/src/main/java/org/apache/maven/dotnet/artifact/impl/NetDependenciesRepositoryImpl.java

Modified: incubator/nmaven/trunk/components/dotnet-artifact/src/main/java/org/apache/maven/dotnet/artifact/NetDependenciesRepository.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-artifact/src/main/java/org/apache/maven/dotnet/artifact/NetDependenciesRepository.java?rev=579869&r1=579868&r2=579869&view=diff
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-artifact/src/main/java/org/apache/maven/dotnet/artifact/NetDependenciesRepository.java
(original)
+++ incubator/nmaven/trunk/components/dotnet-artifact/src/main/java/org/apache/maven/dotnet/artifact/NetDependenciesRepository.java
Wed Sep 26 19:19:26 2007
@@ -65,4 +65,6 @@
      *         specified match policies
      */
     List<Dependency> getDependenciesFor( List<NetDependencyMatchPolicy> matchPolicies
);
+
+    String getProperty(String key);
 }

Modified: incubator/nmaven/trunk/components/dotnet-artifact/src/main/java/org/apache/maven/dotnet/artifact/impl/NetDependenciesRepositoryImpl.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/dotnet-artifact/src/main/java/org/apache/maven/dotnet/artifact/impl/NetDependenciesRepositoryImpl.java?rev=579869&r1=579868&r2=579869&view=diff
==============================================================================
--- incubator/nmaven/trunk/components/dotnet-artifact/src/main/java/org/apache/maven/dotnet/artifact/impl/NetDependenciesRepositoryImpl.java
(original)
+++ incubator/nmaven/trunk/components/dotnet-artifact/src/main/java/org/apache/maven/dotnet/artifact/impl/NetDependenciesRepositoryImpl.java
Wed Sep 26 19:19:26 2007
@@ -59,6 +59,9 @@
      */
     private ArtifactFactory artifactFactory;
 
+    private Hashtable properties;
+
+
     /**
      * Constructor. This method is intended to be invoked by the <code>RepositoryRegistry<code>,
not by the
      * application developer.
@@ -73,6 +76,7 @@
     public void load( InputStream inputStream, Hashtable properties )
         throws IOException
     {
+        this.properties = properties;
         NetDependencyXpp3Reader xpp3Reader = new NetDependencyXpp3Reader();
         Reader reader = new InputStreamReader( inputStream );
         NetDependencyModel model;
@@ -136,6 +140,11 @@
             }
         }
         return dependencies;
+    }
+
+    public String getProperty( String key )
+    {
+        return (String) properties.get( key );
     }
 
     /**



Mime
View raw message