You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-commits@incubator.apache.org by ma...@apache.org on 2007/06/11 21:27:33 UTC

svn commit: r546293 - /incubator/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/m2/PomModuleDescriptorParser.java

Author: maartenc
Date: Mon Jun 11 14:27:32 2007
New Revision: 546293

URL: http://svn.apache.org/viewvc?view=rev&rev=546293
Log:
Little code cleanup: the pom parser doesn't need IvySettings

Modified:
    incubator/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/m2/PomModuleDescriptorParser.java

Modified: incubator/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/m2/PomModuleDescriptorParser.java
URL: http://svn.apache.org/viewvc/incubator/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/m2/PomModuleDescriptorParser.java?view=diff&rev=546293&r1=546292&r2=546293
==============================================================================
--- incubator/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/m2/PomModuleDescriptorParser.java (original)
+++ incubator/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/m2/PomModuleDescriptorParser.java Mon Jun 11 14:27:32 2007
@@ -127,8 +127,6 @@
     private static final class Parser extends AbstractParser {
         private static final String JAR_EXTENSION = "jar";
 
-        private IvySettings settings;
-
         private Stack contextStack = new Stack();
 
         private String organisation;
@@ -155,9 +153,8 @@
         
         private StringBuffer buffer = new StringBuffer();
 
-        public Parser(ModuleDescriptorParser parser, IvySettings settings, Resource res) {
+        public Parser(ModuleDescriptorParser parser, Resource res) {
             super(parser);
-            this.settings = settings;
             setResource(res);
             md.setResolvedPublicationDate(new Date(res.getLastModified()));
             for (int i = 0; i < MAVEN2_CONFIGURATIONS.length; i++) {
@@ -385,7 +382,7 @@
 
     public ModuleDescriptor parseDescriptor(IvySettings settings, URL descriptorURL, Resource res,
             boolean validate) throws ParseException, IOException {
-        Parser parser = new Parser(this, settings, res);
+        Parser parser = new Parser(this, res);
         try {
             XMLHelper.parse(descriptorURL, null, parser);
         } catch (SAXException ex) {