Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-1297

Code to set JENA_HOME in scripts doesn't work (links)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Jena 3.2.0
    • Fix Version/s: None
    • Component/s: Cmd line tools
    • Labels:
      None
    • Environment:

      OS X 10.11.6 (15G1217). Java 1.8.0_92

      Description

      I'm trying the script bin/sparql, to me the code that deals with links when setting JENA_HOME is unnecessary, it ends up setting '.' as the prefix for lib/ ad triggering main class not found (when putting $JENA_HOME/bin in PATH).

      The same script works when I set JENA_HOME with the physical path of Jena, not its symlink (which I don't like, because I prefer to upgrade by symlinking the last version to 'jena' and not having to change anything else).

      I've tried a version of such script where I removed all if [ -L ... ] and it works perfectly well. In my opinion, the existing code (using dirname ... && pwd) is enough to track the folder where the script is.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ajs6f Adam Soroka
                Reporter:
                zakmck Marco Brandizi
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: