Stefan Bodewig 7 years ago
parent
commit
801a44a207
2 changed files with 6 additions and 1 deletions
  1. +3
    -0
      src/main/org/apache/tools/ant/util/ChainedMapper.java
  2. +3
    -1
      src/main/org/apache/tools/ant/util/FileNameMapper.java

+ 3
- 0
src/main/org/apache/tools/ant/util/ChainedMapper.java View File

@@ -35,6 +35,9 @@ public class ChainedMapper extends ContainerMapper {
public String[] mapFileName(String sourceFileName) {
List inputs = new ArrayList();
List results = new ArrayList();
// we do this even if the sourceFileName is null. Some
// resources have a null name and users may use a mapper like
// MergeMapper to provide a name for it.
results.add(sourceFileName);
FileNameMapper mapper = null;



+ 3
- 1
src/main/org/apache/tools/ant/util/FileNameMapper.java View File

@@ -52,7 +52,9 @@ public interface FileNameMapper {
* omit the source file in question.</p>
*
* @param sourceFileName the name of the source file relative to
* some given basedirectory.
* some given basedirectory. Might be {@code
* null} for resources that don't provide a
* name.
* @return an array of strings if the rule applies to the source file, or
* null if it does not.
*/


Loading…
Cancel
Save