Subversion Repositories XServices

Compare Revisions

Ignore whitespace Rev 181 → Rev 180

/xservices/trunk/src/java/net/brutex/xservices/types/ant/AntProperty.java
18,7 → 18,6
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
 
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
 
45,13 → 44,13
/**
* Converts a Map<String, String> into a list of
* AntProperties.
* @param newMap The map to convert
* @param map The map to convert
* @return A list of key/value pairs
*/
public static List<AntProperty> createAntPropertyList(Map<String, Object> newMap) {
public static List<AntProperty> createAntPropertyList(Map<String, String> map) {
List<AntProperty> list = new ArrayList<AntProperty>();
for(Map.Entry<String, Object> e : newMap.entrySet()) {
list.add(new AntProperty(e.getKey(), (String)e.getValue()));
for(Map.Entry<String, String> e : map.entrySet()) {
list.add(new AntProperty(e.getKey(), e.getValue()));
}
return list;
}
/xservices/trunk/src/java/net/brutex/xservices/util/RunTask.java
19,7 → 19,6
import java.io.PrintStream;
import java.util.HashMap;
import java.util.Map;
 
import net.brutex.xservices.types.ReturnCode;
import net.brutex.xservices.types.ant.AntProperty;
 
81,14 → 80,14
*/
public ReturnCode postTask() throws BuildException {
int returnCode = 0;
Map<String, Object> origMap = new HashMap<String, Object>();
Map<String, Object> newMap = null;
Map<String, String> origMap = new HashMap<String, String>();
Map<String, String> newMap = null;
origMap.putAll(antproject.getProperties());
antproject.executeTarget(anttarget.getName());
newMap = antproject.getProperties();
newMap.putAll(antproject.getUserProperties());
for (Map.Entry<String, Object> e : origMap.entrySet()) {
for (Map.Entry<String, String> e : origMap.entrySet()) {
newMap.remove(e.getKey());
}