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 10707] - Add <mapper> for <Delete>
Date Fri, 12 Jul 2002 17:34:45 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=10707>.
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=10707

Add <mapper> for <Delete>





------- Additional Comments From bruce@callenish.com  2002-07-12 17:34 -------
I misread your problem. Here is how I would do what you are asking for using 
selectors:

<delete>
  <fileset dir="./src">
    <or>
      <and>
        <filename name="**/*.java"/>
        <present targetdir="./src">
          <mapper type="glob" from="*.java" to="*.sqlj"/>
        </present>
      </and>
      <and>
        <filename name="**/*.ser"/>
        <present targetdir="./src">
          <mapper type="glob" from="*.java" to="*.sqlj"/>
        </present>
      </and>
    </or>
  </fileset>
</delete>

I haven't actually tested this but it should be approximately right. If not, it 
should be clear what you need to fix, anyway.

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


Mime
View raw message