maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r432514 - in /maven/sandbox/maven-shared-jar/src/main/java/org/apache/maven/shared/jar/taxon: AbstractJarTaxonExposer.java JarTaxonAnalyzer.java JarTaxonExposer.java
Date Fri, 18 Aug 2006 08:26:09 GMT
Author: evenisse
Date: Fri Aug 18 01:26:07 2006
New Revision: 432514

URL: http://svn.apache.org/viewvc?rev=432514&view=rev
Log:
Reinitialize exposers before each run. Maybe a per-lookup instantiation strategy would be
better

Modified:
    maven/sandbox/maven-shared-jar/src/main/java/org/apache/maven/shared/jar/taxon/AbstractJarTaxonExposer.java
    maven/sandbox/maven-shared-jar/src/main/java/org/apache/maven/shared/jar/taxon/JarTaxonAnalyzer.java
    maven/sandbox/maven-shared-jar/src/main/java/org/apache/maven/shared/jar/taxon/JarTaxonExposer.java

Modified: maven/sandbox/maven-shared-jar/src/main/java/org/apache/maven/shared/jar/taxon/AbstractJarTaxonExposer.java
URL: http://svn.apache.org/viewvc/maven/sandbox/maven-shared-jar/src/main/java/org/apache/maven/shared/jar/taxon/AbstractJarTaxonExposer.java?rev=432514&r1=432513&r2=432514&view=diff
==============================================================================
--- maven/sandbox/maven-shared-jar/src/main/java/org/apache/maven/shared/jar/taxon/AbstractJarTaxonExposer.java
(original)
+++ maven/sandbox/maven-shared-jar/src/main/java/org/apache/maven/shared/jar/taxon/AbstractJarTaxonExposer.java
Fri Aug 18 01:26:07 2006
@@ -43,6 +43,16 @@
 
     private List vendors = null;
 
+    public void initialize()
+    {
+        jar = null;
+        groupIds = null;
+        artifactIds = null;
+        versions = null;
+        names = null;
+        vendors = null;
+    }
+
     public Jar getJar()
     {
         return jar;

Modified: maven/sandbox/maven-shared-jar/src/main/java/org/apache/maven/shared/jar/taxon/JarTaxonAnalyzer.java
URL: http://svn.apache.org/viewvc/maven/sandbox/maven-shared-jar/src/main/java/org/apache/maven/shared/jar/taxon/JarTaxonAnalyzer.java?rev=432514&r1=432513&r2=432514&view=diff
==============================================================================
--- maven/sandbox/maven-shared-jar/src/main/java/org/apache/maven/shared/jar/taxon/JarTaxonAnalyzer.java
(original)
+++ maven/sandbox/maven-shared-jar/src/main/java/org/apache/maven/shared/jar/taxon/JarTaxonAnalyzer.java
Fri Aug 18 01:26:07 2006
@@ -44,6 +44,7 @@
         for ( Iterator i = exposers.iterator(); i.hasNext(); )
         {
             JarTaxonExposer exposer = (JarTaxonExposer) i.next();
+            exposer.initialize();
             exposer.setJar( jar );
             addExposer( taxon, exposer );
         }

Modified: maven/sandbox/maven-shared-jar/src/main/java/org/apache/maven/shared/jar/taxon/JarTaxonExposer.java
URL: http://svn.apache.org/viewvc/maven/sandbox/maven-shared-jar/src/main/java/org/apache/maven/shared/jar/taxon/JarTaxonExposer.java?rev=432514&r1=432513&r2=432514&view=diff
==============================================================================
--- maven/sandbox/maven-shared-jar/src/main/java/org/apache/maven/shared/jar/taxon/JarTaxonExposer.java
(original)
+++ maven/sandbox/maven-shared-jar/src/main/java/org/apache/maven/shared/jar/taxon/JarTaxonExposer.java
Fri Aug 18 01:26:07 2006
@@ -30,6 +30,8 @@
 
     void setJar( Jar jar );
 
+    void initialize();
+
     void expose();
 
     boolean isAuthoritative();



Mime
View raw message