Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-659

[PATCH] Fix behavior of scripts when invoked via symlink

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-7
    • 1.0-beta-8
    • None
    • None
    • Unixes, Mac OS X

    Description

      This patch to the unix shell scripts accomplishes two things:

      (1) Fixes their behavior when invoked via a symlink. For instance, if /opt/local/bin/groovy is a symlink to the script in the actual install location, invoking /opt/local/bin/grooy will fail because groovy doesn't properly calculate groovy home in the presense of the symlink.

      (2) Improves behavior under Mac OS X. If JAVA_HOME isn't set, the scripts detect this automatically and calculate a reasonable value.

      This patch is an update to one submitted as part of an earlier bug (http://jira.codehaus.org/browse/GROOVY-490), which has been ignored for months. This patch supercedes that one.

      This patch is against cvs HEAD.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            guillaume Guillaume Sauthier
            jberry James David Berry
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment