ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs XSLTProcess.java
Date Fri, 16 Apr 2004 09:59:03 GMT
bodewig     2004/04/16 02:59:03

  Modified:    src/main/org/apache/tools/ant/taskdefs XSLTProcess.java
  Log:
  Use addMapper instead pf createMapper as suggested by Peter
  
  Revision  Changes    Path
  1.85      +3 -5      ant/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java
  
  Index: XSLTProcess.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java,v
  retrieving revision 1.84
  retrieving revision 1.85
  diff -u -r1.84 -r1.85
  --- XSLTProcess.java	16 Apr 2004 08:36:01 -0000	1.84
  +++ XSLTProcess.java	16 Apr 2004 09:59:02 -0000	1.85
  @@ -173,17 +173,15 @@
   
       /**
        * 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;
       }
   
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message