https://issues.apache.org/bugzilla/show_bug.cgi?id=48078
Summary: Clarification for documentation for difference
selector
Product: Ant
Version: 1.7.1
Platform: PC
URL: http://ant.apache.org/manual/CoreTypes/selectors.html
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Documentation
AssignedTo: [email protected]
ReportedBy: [email protected]
The documentation for the different selector could be made more clear to
prevent misundertandings for uninitated users regarding files only found in the
targetdir.
I propose changing
"If there is no 'other' file, it's different."
to
"If no file is found in targetdir using the mapper, it's different. If a file
<b>only</b> exists in targetdir then it will not be returned."
<project>
<delete dir="have"/>
<delete dir="havenot"/>
<mkdir dir="have"/>
<mkdir dir="havenot"/>
<echo message="test" file="have/test.txt"/>
<length property="len1">
<fileset dir="havenot">
<different targetdir="have"/>
</fileset>
</length>
<length property="len2">
<fileset dir="have">
<different targetdir="havenot"/>
</fileset>
</length>
<echo message="Why does ${len1} <> ${len2}"/>
</project>
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.