[
https://issues.apache.org/jira/browse/HADOOP-12194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrew Wang updated HADOOP-12194:
---------------------------------
Attachment: hadoop-12194.001.patch
Patch attached. Saves a json file with CRC32 checksums in the build directory,
and skips protoc generation if they match. I tested by running {{mvn -X
compile}} twice, seeing the "Stale source" logs going way down, then modifying
a proto file and seeing it recompile.
Would appreciate some similar testing from reviewers.
Between this and HADOOP-12193, we're much closer to a working incremental
build, at least for some modules.
> Support for incremental generation in the protoc plugin
> -------------------------------------------------------
>
> Key: HADOOP-12194
> URL: https://issues.apache.org/jira/browse/HADOOP-12194
> Project: Hadoop Common
> Issue Type: Improvement
> Affects Versions: 2.0.6-alpha
> Reporter: Andrew Wang
> Assignee: Andrew Wang
> Attachments: hadoop-12194.001.patch
>
>
> The protoc maven plugin currently generates new Java classes every time,
> which means Maven always picks up changed files in the build. It would be
> better if the protoc plugin only generated new Java classes when the source
> protoc files change.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)