incubator-easyant-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jlboud...@apache.org
Subject svn commit: r1366454 - /incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/RegisterArtifact.java
Date Fri, 27 Jul 2012 17:00:03 GMT
Author: jlboudart
Date: Fri Jul 27 17:00:03 2012
New Revision: 1366454

URL: http://svn.apache.org/viewvc?rev=1366454&view=rev
Log:
Fix issue with RegisterArtifact, conf attributes get handle by prepareAndCheck method as this
class extends IvyPostResolveTask
Thanks unit test for highlighting this ;)

Modified:
    incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/RegisterArtifact.java

Modified: incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/RegisterArtifact.java
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/RegisterArtifact.java?rev=1366454&r1=1366453&r2=1366454&view=diff
==============================================================================
--- incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/RegisterArtifact.java
(original)
+++ incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/RegisterArtifact.java
Fri Jul 27 17:00:03 2012
@@ -35,7 +35,7 @@ public class RegisterArtifact extends Iv
     private String name;
     private String type;
     private String ext;
-    private String conf = "*";
+    private String confs = "*";
     private String classifier;
 
     @Override
@@ -56,7 +56,7 @@ public class RegisterArtifact extends Iv
             extraAttributes.put("m:classifier", getClassifier());
         }
         MDArtifact artifact = new MDArtifact(md, artName, type, ext, null, extraAttributes);
-        String[] configurations = getConf().split(",");
+        String[] configurations = getConfs().split(",");
         for (int i = 0; i < configurations.length; i++) {
             if ("*".equals(configurations[i])) {
                 String[] declaredConfs = md.getConfigurationsNames();
@@ -109,12 +109,12 @@ public class RegisterArtifact extends Iv
         this.ext = ext;
     }
 
-    public String getConf() {
-        return conf;
+    public String getConfs() {
+        return confs;
     }
 
-    public void setConf(String conf) {
-        this.conf = conf;
+    public void setConfs(String confs) {
+        this.confs = confs;
     }
 
     public String getClassifier() {



Mime
View raw message