https://issues.apache.org/bugzilla/show_bug.cgi?id=47118
Summary: chmod dir attribute not equivalent to implicit fileset
wrt includes
Product: Ant
Version: 1.7.1
Platform: PC
OS/Version: Mac OS X 10.4
Status: NEW
Severity: normal
Priority: P2
Component: Core tasks
AssignedTo: notifications@ant.apache.org
ReportedBy: adam_lounds@hotmail.com
<chmod dir="mydir" perm="ugo+x" /> should be equivalent to
<chmod perm="ugo+x">
<fileset dir="mydir" />
</chmod>
as it has an implicit fileset according to the docs.
However, the second example chmods everything in the dir (the expected
behaviour as per the fileset docs), the first doesn't and I need to use
<chmod dir="mydir" perm="ugo+x" includes="*" /> in order to get the same
functionality.
Fileset docs: includes comma- or space-separated list of patterns of files
that must be included; all files are included when omitted.
Chmod docs: includes comma- or space-separated list of patterns of files
that must be included.
(admittedly no mention of default behaviour when includes is omitted in chmod
docs, but docs should be explicit if behaviour is not derived from fileset)
Thx,
--
Adam
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
|