Bug 15596 - Identity mapper in uptodate task.
Summary: Identity mapper in uptodate task.
Status: NEW
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: 1.5
Hardware: All other
: P3 enhancement with 2 votes (vote)
Target Milestone: ---
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-21 00:19 UTC by Greg Charles
Modified: 2009-07-16 02:20 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Charles 2002-12-21 00:19:23 UTC
The identity mapper would be more useful in the uptodate task if there were a 
way to specify a target directory. In particular, I'm obfuscating classes, 
which creates a structure in an "obfuscatedclasses" directory that is identical 
to the structure in "classes". I would like to use uptodate to check if any 
clear class file is newer than the associated obfuscated class file. That would 
indicate the need to rerun the obfuscater. 

Something like this would be useful:

<uptodate property="obfuscate.done" targetdir="{build}/obfuscatedclasses">
    <srcfiles dir="${build}/classes" includes="**/*.class" />
    <mapper type="identity">
</uptodate>

This would also be nicely parallel to the the identity mapper in the copy task.