d2r-server should be launchable from any directory #80

Open
cygri opened this Issue Aug 16, 2011 · 1 comment

Comments

Projects
None yet
1 participant
Owner

cygri commented Aug 16, 2011

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.)

Owner

cygri commented Feb 28, 2012

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