DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=37148>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=37148 Summary: javac nested <src> element troube with excludes Product: Ant Version: 1.6.5 Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Core tasks AssignedTo: dev@ant.apache.org ReportedBy: [EMAIL PROTECTED] An excludes attribute in a javac call will work properly. But when that excludes is moved into a nested <src> element, the includes fails in a strange way. Examples: ====================================== WORKING Version with attribute "excludes" ====================================== Ant project file snippet ======================== ... <target name="game" depends="init" description="Builds the Game development version"> <mkdir dir="${testbuild}"/> <mkdir dir="${build}"/> <javac destdir="${build}" deprecation="on" debug="${debug}" optimize="${optimize}" source="1.4" target="1.4" excludes="poi/**/*"> <src><pathelement location="src"/> </src> <src><pathelement location="generated"/> </src> <classpath refid="project.class.path"/> </javac> </target> ... =================== ant output snippet =================== fileset: Setup scanner in dir /home/cafgdev/CAFG/src with patternSet{ includes: [] excludes: [poi/**/*] } [javac] com/gametable/games/cafg/client/AbilityEditor.java omitted as com/gametable/games/cafg/client/AbilityEditor.class is up to date. [javac] com/gametable/games/cafg/client/AttackEditor.java omitted as com/gametable/games/cafg/client/AttackEditor.class is up to date. ... fileset: Setup scanner in dir /home/cafgdev/CAFG/generated with patternSet{ includes: [] excludes: [poi/**/*] } ... ========================================== ===== FAILS ===== project file snippet -------------------- ... <target name="game" depends="init" description="Builds the Game development version"> <mkdir dir="${testbuild}"/> <mkdir dir="${build}"/> <javac destdir="${build}" deprecation="on" debug="${debug}" optimize="${optimize}" source="1.4" target="1.4"> <src><fileset dir="src" excludes="poi/**/*"/></src> <src><pathelement location="src"/> </src> <src><pathelement location="generated"/> </src> <classpath refid="project.class.path"/> </javac> </target> ... ================================================== ant output (note the repeated "fileset" output below which does not occur in the successful compile) ================================================== ... fileset: Setup scanner in dir /home/cafgdev/CAFG/src with patternSet{ includes: [] excludes: [poi/**/*] }fileset: Setup scanner in dir /home/cafgdev/CAFG/src with patternSet{ includes: [] excludes: [poi/**/*] } BUILD FAILED /home/cafgdev/CAFG/build.xml:47: /home/cafgdev/CAFG/src/com/gametable/games/cafg/client/AbilityEditor.java is not a directory. at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(AbstractFileSet.java:352) at org.apache.tools.ant.taskdefs.MatchingTask.getDirectoryScanner(MatchingTask.java:186) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:751) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) at org.apache.tools.ant.Project.executeTarget(Project.java:1185) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) at org.apache.tools.ant.Project.executeTargets(Project.java:1068) at org.apache.tools.ant.Main.runBuild(Main.java:668) at org.apache.tools.ant.Main.startAnt(Main.java:187) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67) ============================= -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]