ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43114] New: - package-info.java repeatedly compiled
Date Mon, 13 Aug 2007 22:03:08 GMT
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=43114>.
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=43114

           Summary: package-info.java repeatedly compiled
           Product: Ant
           Version: 1.7.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P3
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: jglick@netbeans.org


If you have a file package-info.java in a source tree and run <javac> on the
tree, all the regular sources will be compiled into class files, but not
package-info.java - which is correct. However, if (after making no source
changes) you rerun the same task for an incremental build, Ant will report one
file being recompiled. This is confusing, and also probably slows down
incremental builds a bit.

It is not a good idea to simply exclude **/package-info.java from the source
fileset; Javadoc needs them, and javac might as well (when using annotation
processors anyway). Better to just have the up-to-date check in <javac> know to
expect package-info.class to not exist.

-- 
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message