ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 52096] Add an option to <javac> to suppress creation of package-info.class
Date Fri, 28 Oct 2011 10:10:58 GMT

Stefan Bodewig <> 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 <> 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" .../>


<javac ...>
    <pathelement location="src/java/fld1"/>
    <pathelement location="src/java/fld2"/>

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 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:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message