Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-2231

Hardcode SVN revision number in build.xml and DynamicConstants for 2.6.x tags

    XMLWordPrintable

    Details

    • Task
    • Status: Done
    • Major
    • Resolution: Fixed
    • 2.6.0, 2.6.1, 2.6.2, 2.6.3
    • 2.6.0, 2.6.1, 2.6.2, 2.6.3
    • None
    • None

      Description

      For example:

      git diff
      diff --git a/build.xml b/build.xml
      index f1ddfc9..3b965d9 100644
      --- a/build.xml
      +++ b/build.xml
      @@ -1201,7 +1201,7 @@ Please:
           </jar>
      
           <!-- Create buildinfo files -->
      -    <echo message="${MAJOR_VERSION}.${MINOR_VERSION}.${POINT_VERSION}.${REVISION_NUMBER}"
      +    <echo message="${MAJOR_VERSION}.${MINOR_VERSION}.${POINT_VERSION}.12345"
                 file="${pdir}/template/config/buildinfo" />
      
           <taskdef name="concatschema"
      diff --git a/resource/DynamicConstants.java.stubs b/resource/DynamicConstants.java.stubs
      index ab46493..3e9506a 100644
      --- a/resource/DynamicConstants.java.stubs
      +++ b/resource/DynamicConstants.java.stubs
      @@ -67,7 +67,7 @@ public final class DynamicConstants
         /**
          * The official build number for the Directory Server.
          */
      -  public static int BUILD_NUMBER = ${BUILD_NUMBER};
      +  public static int BUILD_NUMBER = 12345;
      
         /**
          * The version qualifier string for the Directory Server.
      

      The same goes for REVISION_NUMBER in DynamicConstants.

        Attachments

          Activity

            People

            matthew Matthew Swift
            matthew Matthew Swift
            Matthew Swift Matthew Swift
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: