You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2010/06/10 13:05:19 UTC

DO NOT REPLY [Bug 49420] New: scans excluded directories

https://issues.apache.org/bugzilla/show_bug.cgi?id=49420

           Summary: <subant> scans excluded directories
           Product: Ant
           Version: 1.8.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: notifications@ant.apache.org
        ReportedBy: bodewig@apache.org


most likely the culprit is DirectoryScanner and not subant.  For background see
<http://mail-archives.apache.org/mod_mbox/ant-user/201006.mbox/%3C28829117.post@talk.nabble.com%3E>

I can reproduce this:

stefan@machine:/tmp/testbed$ mkdir -p .svn/foo/bar
stefan@machine:/tmp/testbed$ mkdir -p dummy/.svn/foo/bar
stefan@machine:/tmp/testbed$ echo '<project><target
name="hello"><echo>hello</echo></target></project>' > dummy/sub.xml
stefan@machine:/tmp/testbed$ echo '<project><property name="def"
value="true"/><subant target="hello"><fileset dir="." includes="**/sub.xml"
defaultexcludes="${def}"/></subant></project>' > build.xml
stefan@machine:/tmp/testbed$ strace -f ant 2>&1 | fgrep .svn   
[pid 19650] open("/tmp/testbed/dummy/.svn",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 17
[pid 19650] open("/tmp/testbed/dummy/.svn/foo",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 17
[pid 19650] open("/tmp/testbed/dummy/.svn/foo/bar",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 17
[pid 19650] open("/tmp/testbed/.svn",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 17
[pid 19650] open("/tmp/testbed/.svn/foo",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 17
[pid 19650] open("/tmp/testbed/.svn/foo/bar",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 17

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 49420] scans excluded directories

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49420

Stefan Bodewig <bo...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |1.8.2

--- Comment #1 from Stefan Bodewig <bo...@apache.org> 2010-06-10 07:34:40 EDT ---
fixed with svn revision 953281

stefan@machine:/tmp/testbed$ strace -f ant 2>&1 | fgrep .svn
[pid 21645] open("/tmp/testbed/dummy/.svn",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 16
[pid 21645] open("/tmp/testbed/.svn",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 16
stefan@machine:/tmp/testbed$ strace -f ant -Ddef=false 2>&1 | fgrep .svn
[pid 23780] open("/tmp/testbed/dummy/.svn",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 16
[pid 23780] open("/tmp/testbed/dummy/.svn/foo",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 16
[pid 23780] open("/tmp/testbed/dummy/.svn/foo/bar",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 16
[pid 23780] open("/tmp/testbed/.svn",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 16
[pid 23780] open("/tmp/testbed/.svn/foo",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 16
[pid 23780] open("/tmp/testbed/.svn/foo/bar",
O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 16

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.