hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-4503) ant jar when run for first time does not inclue version information
Date Thu, 23 Oct 2008 12:36:44 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-4503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12642152#action_12642152
] 

Steve Loughran commented on HADOOP-4503:
----------------------------------------

what does {{ ant -version}} say?  package-info handling is a source of trouble in <java>
as it doesnt create an output file, which can screw up dependency logic no-end.

Note on package-info.java

package-info.java files were introduced in Java5 to allow package level annotations. On compilation,
if the java file does not contain runtime annotations, there will be no .class file for the
java file. Up to Ant 1.7.1, when the <javac> task is run again, the task will try to
compile the package-info java files again.

from: http://ant.apache.org/manual/CoreTasks/javac.html

In Ant 1.7.1 the package-info.java will only be compiled if:

   1. If a package-info.class file exists and is older than the package-info.java file.
   2. If the directory for the package-info.class file does not exist.
   3. If the directory for the package-info.class file exists, and has an older modification
time than the the package-info.java file. In this case <javac> will touch the corresponding
.class directory on successful compilation.



> ant jar when run for first time does not inclue version information
> -------------------------------------------------------------------
>
>                 Key: HADOOP-4503
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4503
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: build
>         Environment: linux builds and windows builds
>            Reporter: Sreekanth Ramakrishnan
>         Attachments: antfile, antfile1
>
>
> Ant jar when run for first time does not include version information.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message