Browse Source

Make Jikes happy

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277567 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 20 years ago
parent
commit
2f6f27f427
2 changed files with 8 additions and 8 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/Execute.java
  2. +7
    -7
      src/main/org/apache/tools/ant/types/PropertySet.java

+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/Execute.java View File

@@ -1162,7 +1162,7 @@ public class Execute {
catch (InterruptedException e) {
//ignore
}
FILE_UTILS.delete(f);
FileUtils.delete(f);
}
}.start();
}


+ 7
- 7
src/main/org/apache/tools/ant/types/PropertySet.java View File

@@ -166,11 +166,11 @@ public class PropertySet extends DataType {
* @param to output pattern.
*/
public void setMapper(String type, String from, String to) {
Mapper mapper = createMapper();
Mapper m = createMapper();
Mapper.MapperType mapperType = new Mapper.MapperType();
mapperType.setValue(type);
mapper.setFrom(from);
mapper.setTo(to);
m.setFrom(from);
m.setTo(to);
}

/**
@@ -302,19 +302,19 @@ public class PropertySet extends DataType {
} else {
names = cachedNames;
}
FileNameMapper mapper = null;
FileNameMapper m = null;
Mapper myMapper = getMapper();
if (myMapper != null) {
mapper = myMapper.getImplementation();
m = myMapper.getImplementation();
}
Properties properties = new Properties();
//iterate through the names, get the matching values
for (Iterator iter = names.iterator(); iter.hasNext();) {
String name = (String) iter.next();
String value = (String) props.get(name);
if (mapper != null) {
if (m != null) {
//map the names
String[] newname = mapper.mapFileName(name);
String[] newname = m.mapFileName(name);
if (newname != null) {
name = newname[0];
}


Loading…
Cancel
Save