Author: hibou
Date: Fri Aug 12 15:18:40 2011
New Revision: 1157153
URL: http://svn.apache.org/viewvc?rev=1157153&view=rev
Log:
fix standalone retrieve configured with property files
Modified:
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/retrieve/StandaloneRetrieveSerializer.java
Modified:
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/retrieve/StandaloneRetrieveSerializer.java
URL:
http://svn.apache.org/viewvc/ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/retrieve/StandaloneRetrieveSerializer.java?rev=1157153&r1=1157152&r2=1157153&view=diff
==============================================================================
---
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/retrieve/StandaloneRetrieveSerializer.java
(original)
+++
ant/ivy/ivyde/trunk/org.apache.ivyde.eclipse/src/java/org/apache/ivyde/eclipse/retrieve/StandaloneRetrieveSerializer.java
Fri Aug 12 15:18:40 2011
@@ -147,7 +147,7 @@ public class StandaloneRetrieveSerialize
String file = (String) it.next();
Node pathNode = document.createElement(PROPERTYFILE);
settingsNode.appendChild(pathNode);
- attributes = settingsNode.getAttributes();
+ attributes = pathNode.getAttributes();
attr = document.createAttribute(PROPERTYFILE_PATH);
attr.setValue(file);
attributes.setNamedItem(attr);
@@ -266,7 +266,7 @@ public class StandaloneRetrieveSerialize
for (int j = 0; j != children.getLength(); j++) {
Node item = children.item(j);
if (item.getNodeName().equals(PROPERTYFILE)) {
- attributes = node.getAttributes();
+ attributes = item.getAttributes();
path = getAttribute(attributes, PROPERTYFILE_PATH);
propertyFiles.add(path);