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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to