ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: subant task scans .svn folders
Date Thu, 10 Jun 2010 11:06:00 GMT
On 2010-06-09, Stefan Bodewig wrote:

> This sounds like a bug.

OK, let me try to 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$ ant
Buildfile: /tmp/testbed/build.xml

hello:
     [echo] hello

BUILD SUCCESSFUL
Total time: 1 second

so we have a build file build.xml invoking sub.xml via subant and it
works.  We also have two .svn subdirs and a property def controlling
default excludes.

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

this confirms your truss findings.  I've opened
<https://issues.apache.org/bugzilla/show_bug.cgi?id=49420>

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message