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 12:17:43 GMT
On 2010-06-09, bool wrote:

> ==============================================================
> <?xml version="1.0" encoding="UTF-8"?>
> <project name="Base" default="find_java" basedir=".">
>     <description> Build file </description>

>     <target name="find_java">
>     <subant target="clean_generated_java_files" defaultexcludes="true">
>              <fileset dir="${basedir}"
>                  includes="**/build.xml"
>                  defaultexcludes="true">
>              </fileset>
>     </subant>
>     </target>

> </project>
> ==============================================================

I haven't actually tried it, but from the root cause of the bug you can
probably work around this by - against all intuiton - make the .svn
directories included, like in

              <fileset dir="${basedir}"
                  defaultexcludes="true">
                <include name="**/build.xml"/>
                <include name="**/.svn"/>
              </fileset>

This should avoid the code path taken for directories that are
themselves not included which is the only one that was unguarded against
recursively excluded directories.

Stefan

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


Mime
View raw message