Browse Source

Use addMapper instead pf createMapper as suggested by Peter

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276329 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 21 years ago
parent
commit
e5f8b04097
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java

+ 2
- 4
src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java View File

@@ -173,17 +173,15 @@ public class XSLTProcess extends MatchingTask implements XSLTLogger {

/**
* Defines the mapper to map source to destination files.
* @return a mapper to be configured
* @exception BuildException if more than one mapper is defined
* @since Ant 1.6.2
*/
public Mapper createMapper() throws BuildException {
public void addMapper(Mapper mapper) {
if (mapperElement != null) {
throw new BuildException("Cannot define more than one mapper",
getLocation());
}
mapperElement = new Mapper(getProject());
return mapperElement;
mapperElement = mapper;
}

/**


Loading…
Cancel
Save