Hi Env: JDK 1.6.0, ANT 1.7.1
I spend some time figuring out a classpath dependancy problem in my build file, and finally cornered the cause to the surprinsing file selection of <fileset> when using the following syntax. <patternset id="mypatternset"> </patternset> <path id="path.main.compile"> <fileset dir="${mydir}"> <patternset refid="mypatternset"/> </fileset> </path> The above syntax make "path.main.compile" contains all files under ${mydir}. Is patternset applying an implicit <include name="**"/> ? Is fileset discarding the patternset as it does not declare any pattern ? Is that the intended behavior? To fix the problem, I just have to be more specific in the patternset definition, such as: <patternset id="mypatternset"> <exclude name="**"/> </patternset> This example might seem of no use :) However I use this path reference to designate a project's dependancies to other of our projects, and some projects are standalone, so I need an empty patternset for them. Regards -- View this message in context: http://www.nabble.com/Fileset-with-%22empty%22-patternset-selects-all-files-instead-tp25736704p25736704.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org