ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 48078] New: Clarification for documentation for difference selector
Date Wed, 28 Oct 2009 18:27:15 GMT
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: notifications@ant.apache.org
        ReportedBy: suchko.pm@mellon.com


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} &lt;&gt; ${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.

Mime
View raw message