You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@zookeeper.apache.org by "Christopher Tubbs (Jira)" <ji...@apache.org> on 2020/04/07 22:45:00 UTC

[jira] [Created] (ZOOKEEPER-3786) Simplify generation of VersionInfoMain and Info

Christopher Tubbs created ZOOKEEPER-3786:
--------------------------------------------

             Summary: Simplify generation of VersionInfoMain and Info
                 Key: ZOOKEEPER-3786
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3786
             Project: ZooKeeper
          Issue Type: Improvement
          Components: build
            Reporter: Christopher Tubbs
            Assignee: Christopher Tubbs
             Fix For: 3.7.0


The VerGen command is currently compiled and executed in a separate step prior to compilation of the rest of zookeeper-server. This is wasteful, complicated, and unnecessary.

Maven has built-in resource filtering for classes, so you can inject the system properties into the build and generate sources to be compiled that have the necessary information. (For example, see Accumulo's FilteredConstants).

I have a pull request ready to address this, which I will push up shortly.





--
This message was sent by Atlassian Jira
(v8.3.4#803005)