Uploaded image for project: 'Alfresco'
  1. Alfresco
  2. ALF-20943

Make ant target set-revision-number work with both git and svn

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Unprioritized
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.0
    • Component/s: ZZ_Archive
    • Security Level: external (External user)
    • Labels:
      None

      Description

      The ant target set-revision-number depends on the checkout being a subversion checkout. Since there now is a mirror of Alfresco Community on Github this target fails if the checkout (clone) is not a subversion checkout.

      The attached patch will check if the checkout is subversion or git by checking for the .svn and .git folder in project root. Using this we can determine what scm tool is used and set the revision number for the build accordingly.

      It also adds an echo to display the retrieved revision number (or commit hash in case of git).

        Attachments

          Structure

            Activity

              People

              • Assignee:
                closedissues Closed Issues
                Reporter:
                loftux Peter Löfgren
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response:

                  Structure Helper Panel