[
https://issues.apache.org/jira/browse/HADOOP-8924?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13551382#comment-13551382
]
Alejandro Abdelnur commented on HADOOP-8924:
--------------------------------------------
Yeah, I'm good with this approach.
The MD5 computed by saveVersion.sh is:
{code}
srcChecksum=`find src/main/java -name '*.java' | LC_ALL=C sort | xargs md5sum |
md5sum | cut -d ' ' -f 1`
{code}
This is, sort the files, MD5 on each file, and them MD5 on the MD5 output of
all files.
The MD5 computed by the plugin is a single MD5 on the content of ALL files,
sorted.
So the MD5s computed by the script and the plugin won't be the same.
But the MD5 of the plugin should always be the same in diff platforms for the
same source.
> Hadoop Common creating package-info.java must not depend on sh, at least for
> Windows
> ------------------------------------------------------------------------------------
>
> Key: HADOOP-8924
> URL: https://issues.apache.org/jira/browse/HADOOP-8924
> Project: Hadoop Common
> Issue Type: Improvement
> Components: build
> Affects Versions: trunk-win
> Reporter: Chris Nauroth
> Assignee: Alejandro Abdelnur
> Fix For: trunk-win
>
> Attachments: HADOOP-8924.2.patch,
> HADOOP-8924-branch-trunk-win.2.patch, HADOOP-8924-branch-trunk-win.patch,
> HADOOP-8924.patch
>
>
> Currently, the build process relies on saveVersion.sh to generate
> package-info.java with a version annotation. The sh binary may not be
> available on all developers' machines (e.g. Windows without Cygwin). This
> issue tracks removal of that dependency in Hadoop Common.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira