ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maart...@apache.org
Subject svn commit: r983833 - /ant/ivy/core/branches/2.2.x/src/java/org/apache/ivy/ant/IvyPublish.java
Date Mon, 09 Aug 2010 21:46:52 GMT
Author: maartenc
Date: Mon Aug  9 21:46:51 2010
New Revision: 983833

URL: http://svn.apache.org/viewvc?rev=983833&view=rev
Log:
Reverting unwanted changes to IvyPublish

Modified:
    ant/ivy/core/branches/2.2.x/src/java/org/apache/ivy/ant/IvyPublish.java

Modified: ant/ivy/core/branches/2.2.x/src/java/org/apache/ivy/ant/IvyPublish.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/branches/2.2.x/src/java/org/apache/ivy/ant/IvyPublish.java?rev=983833&r1=983832&r2=983833&view=diff
==============================================================================
--- ant/ivy/core/branches/2.2.x/src/java/org/apache/ivy/ant/IvyPublish.java (original)
+++ ant/ivy/core/branches/2.2.x/src/java/org/apache/ivy/ant/IvyPublish.java Mon Aug  9 21:46:51
2010
@@ -34,7 +34,6 @@ import org.apache.ivy.core.module.id.Mod
 import org.apache.ivy.core.publish.PublishOptions;
 import org.apache.ivy.core.settings.IvySettings;
 import org.apache.tools.ant.BuildException;
-import org.apache.tools.ant.DynamicAttribute;
 
 /**
  * This task allow to publish a module revision to an Ivy repository.
@@ -386,14 +385,12 @@ public class IvyPublish extends IvyTask 
         this.update = update;
     }
 
-    public class PublishArtifact implements Artifact, DynamicAttribute {
+    public class PublishArtifact implements Artifact {
         private String ext;
 
         private String name;
 
         private String type;
-        
-        private Map extra = new HashMap();
 
         public String[] getConfigurations() {
             return null;
@@ -440,23 +437,23 @@ public class IvyPublish extends IvyTask 
         }
 
         public String getAttribute(String attName) {
-            return (String) extra.get(attName);
+            return null;
         }
 
         public Map getAttributes() {
-            return extra;
+            return new HashMap();
         }
 
         public String getExtraAttribute(String attName) {
-            return (String) extra.get(attName);
+            return null;
         }
 
         public Map getExtraAttributes() {
-            return extra;
+            return new HashMap();
         }
         
         public Map getQualifiedExtraAttributes() {
-            return extra;
+            return new HashMap();
         }
 
         public String getStandardAttribute(String attName) {
@@ -470,10 +467,6 @@ public class IvyPublish extends IvyTask 
         public boolean isMetadata() {
             return false;
         }
-        
-        public void setDynamicAttribute(String name, String value) {
-            extra.put(name, value);
-        }
     }
 
     public static class ArtifactsPattern {



Mime
View raw message