ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 43114] repeatedly compiled
Date Tue, 02 Sep 2008 13:44:48 GMT

Jerry Andrews <> changed:

           What    |Removed                     |Added
                 CC|                            |

--- Comment #10 from Jerry Andrews <>  2008-09-02 06:44:47 PST ---
(In reply to comment #9)
> As a workaround, can you at least do
> <touch>
>   <fileset dir="tmp-src" include="**/"/>
> </>
> before <javac>?

That doesn't work if the target package directory doesn't already exist and the
package contains other classes or packages which fall alphabetically above  In our case, if I do a clean and build, the file is never compiled, because the target package is created
by other .java files compiled in the package before the compiler gets to, then the rules above prevent its being built, because the
directory is newer than the file.  The only workaround I have is to build specifically and first, then the rest of the .java files in a
second call to javac.

It would be very nice if we could simply configure javac so that it follows the
rules above (which seem pretty good, overall), but override them explicitly if
we know that is going to have annotations. Alternately,
ensure package-info sorts to the top of the javac compile list for a given
package and associated sub-packages.  Such a sort would make sure the package
directory was created by the package-info compile (thereby alleviating the
problem with "clean" builds).

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message