Community
Participate
Working Groups
Created attachment 76953 [details] example project files Build ID: I20070621-1340 Steps To Reproduce: * Create an Eclipse Java project. * Specify an include and/or an exclude filter pattern. For example, place an exclude filter of *.txt. * Place a file ending in .txt in the project's source path. * The Eclipse build will not include .txt when compiling into bin/. * Export the project to ant using eclipse2ant 1.1.4. Run the ant target either standalone or with Eclipse ant. The bin/ includes the .txt file. More information: The init target's copy task fileset always includes the same exclude filter. This does not match Eclipse treatment of the include/exclude filter and leads to a different build result. <target name="init"> <mkdir dir="bin"/> <copy includeemptydirs="false" todir="bin"> <fileset dir="${EXTERNAL.link}" excludes="**/*.launch, **/*.java"/> </copy> </target>
Created attachment 76955 [details] proposed patch
Created attachment 76961 [details] proposed patch v2 Added elements for the original exclude filters. I haven't compiled this code since I don't have the full eclipse2ant environment, but I hope this saves some work and helps implement this patch quickly.
Ryan, you are right. There is an inconsistence. Either Eclipse behaviour changed or I overlooked it. I think, formerly only this property influenced the resource copying: Java -> Compiler -> Building -> Filtered Resources I have not verified your patch yet. But thanks anyway.
Thanks Ryan
Created attachment 77046 [details] whole BuildFileCreator.java file Richard, here is the whole file since my patch file was unintelligible. Thanks.
Thanks, Ryan. Your fix works perfectly.
Will this file be tagged for inclusion in the 3.4 release?
Created attachment 129521 [details] BuildFileCreator.java: Merged Ryan's fix into current source If this helps I merged Ryan's fix into the current source. Sorry, can't provide a patch.
applied patched version of BuildFileCreator to HEAD
verified
Removing iplog+ from bug. This is used to indicate a contribution embedded in a comment. http://wiki.eclipse.org/Development_Resources/Automatic_IP_Log