Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

d2r-server should be launchable from any directory #80

Open
cygri opened this Issue · 1 comment

1 participant

@cygri
Owner

Currently, you have to be in the D2RQ directory. Removing that restriction would be good for cronjobs etc. (All other scripts should already run from anywhere.)

@cygri
Owner

Clarification: It's actually already possible to call the various scripts from outside of the D2RQ directory, and the dump-rdf and generate-mapping scripts work fine for me from wherever I call them.

The problem is that d2r-server, in JettyLauncher.start, looks for the webapp directory in a path relative to the current directory, and it will throw a FileNotFoundException from inside Jetty if run from somewhere else.

The solution could be to cd into the D2RQ directory before starting the Java call, and back to the original directory afterwards.

@jgeluk's patch unfortunately doesn't solve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.