UIMA
  1. UIMA
  2. UIMA-1834

Automate inclusion of current release / version info in uimaj and uima-as

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.1SDK
    • Labels:
      None

      Description

      Both uimaj and uima-as have static Java strings identifying the release version. These have been manually maintained. Automate this so the right version is inserted (from the pom), and perhaps also consider including svn tag info. Also consider whether to maintain this info at a finer grain (e.g., for each Jar), and if so, how to make it available at run time.

        Activity

        Hide
        Marshall Schor added a comment -

        In uima sdk, the methods are in uimaj-core, UIMAFramework_impl.

        In uima-as, the methods are in uimaj-as-core, in UimaAsVersion.

        Show
        Marshall Schor added a comment - In uima sdk, the methods are in uimaj-core, UIMAFramework_impl. In uima-as, the methods are in uimaj-as-core, in UimaAsVersion.
        Hide
        Marshall Schor added a comment -

        The pom's <version> is now substituted (using filtering) into the Java sources that return these values. Added / modified new classes, UimaVersion and UimaAsVersion, which are not in the source-path, and have substitutable values for the version (major, minor, incremental), and updated the pom to use filtered resource processing to produce a new class under target which has the version info from the pom substituted in; this generated-source is then added to the set of source files to be compiled.

        Note - just as in every other project using generated sources, after checking this out, use the m2Eclipse menu pick on the project, Maven -> update configuration, to get it to recognize the generated sources and update its (Eclipse) classpath.

        Show
        Marshall Schor added a comment - The pom's <version> is now substituted (using filtering) into the Java sources that return these values. Added / modified new classes, UimaVersion and UimaAsVersion, which are not in the source-path, and have substitutable values for the version (major, minor, incremental), and updated the pom to use filtered resource processing to produce a new class under target which has the version info from the pom substituted in; this generated-source is then added to the set of source files to be compiled. Note - just as in every other project using generated sources, after checking this out, use the m2Eclipse menu pick on the project, Maven -> update configuration, to get it to recognize the generated sources and update its (Eclipse) classpath.

          People

          • Assignee:
            Unassigned
            Reporter:
            Marshall Schor
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development