ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 17199] - patch to allow custom conditions (+ filters..)
Date Tue, 25 Feb 2003 14:31:06 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17199>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17199

patch to allow custom conditions (+ filters..)





------- Additional Comments From peter.reilly@corvil.com  2003-02-25 14:31 -------
Made the following changes to the patch:
1) changed signature of mapper back to orignal ant and added an extra
attribute to mapper <mapper map="custom or current">

This means that current java code that uses Mapper.java will
still work.

2) As a result of this, the changes to taskdefs/optional/RenameExtensions.java have
been reverted.

3) The patch was compressed (using gzip), it is now in uncompressed format.

4) Tested against current cvs of 25-feb-03.
 
The use of Mapper is now:
  <target name="custom_mapper">
    <path id="testclasses">
      <pathelement location="../../../../build/testcases" />
      <pathelement path="${java.class.path}" />
    </path>
    
    <typedef
      name="custom_mapper" 
      classname="org.apache.tools.ant.types.CustomMapper"
      classpathref="testclasses"
    />
    <mkdir dir="customcopytest"/>
    <copy todir="customcopytest">
      <fileset dir="../../../main">
        <include name="**/taskdefs/*.java"/>
      </fileset>
      <mapper map="custom_mapper"/>
    </copy>
  </target>

Mime
View raw message