You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Marco Brandizi (JIRA)" <ji...@apache.org> on 2017/04/04 16:57:42 UTC

[jira] [Comment Edited] (JENA-1297) Code to set JENA_HOME in scripts doesn't work (links)

    [ https://issues.apache.org/jira/browse/JENA-1297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15955423#comment-15955423 ] 

Marco Brandizi edited comment on JENA-1297 at 4/4/17 4:57 PM:
--------------------------------------------------------------

OK, I've figured out but Jena doesn't build on my laptop (stuck on some test). So I've tested it by just copying that new script under my current Jena installation and running it as said initially. Result is that it works (yeah!), so I'd say it would work on the final release too. Remember that other scripts around (tdbXXX and probably those in Fuseki too) look like to need the same patch.

Thank you.


was (Author: zakmck):
OK, I've figured out but Jena doesn't build on my laptop (stuck on some test). So I've tested it by just copying that new script under my current Jena installation and running it as said initially. Result is that it works (yeah!), so I'd say it would work on the final release too. Remember that other scripts around (tdbXXX and probably those in Fuseki too) looks like to need the same patch.

Thank you.

> Code to set JENA_HOME in scripts doesn't work (links)
> -----------------------------------------------------
>
>                 Key: JENA-1297
>                 URL: https://issues.apache.org/jira/browse/JENA-1297
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Cmd line tools
>    Affects Versions: Jena 3.2.0
>         Environment: OS X 10.11.6 (15G1217). Java 1.8.0_92
>            Reporter: Marco Brandizi
>            Assignee: A. Soroka
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)