https://issues.apache.org/bugzilla/show_bug.cgi?id=52096
Stefan Bodewig <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |1.8.3 Summary|Package detection wrong in |Add an option to <javac> to |creation of empty |suppress creation of |package-info class (JAVAC |package-info.class |task) | Severity|normal |enhancement --- Comment #5 from Stefan Bodewig <[email protected]> 2011-10-28 10:10:58 UTC --- I really don't want to argue the best practice term here, one last note: Of course the folder structure is best determnied by the project but you should tell Ant about it. So rather than <javac src="src/java" .../> use <javac ...> <src> <pathelement location="src/java/fld1"/> <pathelement location="src/java/fld2"/> </src> </javac> or a dirset nested into src if you want to keep it dynamic. It's not that Ant wants to enforce a structure, it just needs understanding the one you use. Back to the topic at hand: the class file created really only is there for Ant, not javac. Some package level annotations don't create anything in class files so Ant will always recompile the package-info.java files unless it creates them itself - something you don't care about. I'll turn this into an enhancement request, change the subject and look into implementing it. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
