From e5f8b040971516dd6ce485ff448eb8400837102e Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Fri, 16 Apr 2004 09:59:02 +0000 Subject: [PATCH] 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 --- src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java b/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java index 392db5df2..ebe05a0b1 100644 --- a/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java +++ b/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java @@ -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; } /**