Repository: jena Updated Branches: refs/heads/master e076d42dd -> 334460ae7
Notes on adding custom code when launching Fuseki Project: http://git-wip-us.apache.org/repos/asf/jena/repo Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/334460ae Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/334460ae Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/334460ae Branch: refs/heads/master Commit: 334460ae7936456152f917a1d83fb425a2fe98b8 Parents: e076d42 Author: Andy Seaborne <[email protected]> Authored: Sat Jan 17 09:00:14 2015 +0000 Committer: Andy Seaborne <[email protected]> Committed: Sat Jan 17 09:00:14 2015 +0000 ---------------------------------------------------------------------- jena-fuseki2/jena-fuseki-dist/fuseki-server | 17 ++++++++++++++++- jena-fuseki2/jena-fuseki-dist/fuseki-server.bat | 9 +++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/jena/blob/334460ae/jena-fuseki2/jena-fuseki-dist/fuseki-server ---------------------------------------------------------------------- diff --git a/jena-fuseki2/jena-fuseki-dist/fuseki-server b/jena-fuseki2/jena-fuseki-dist/fuseki-server index 6ed1ece..6342aba 100755 --- a/jena-fuseki2/jena-fuseki-dist/fuseki-server +++ b/jena-fuseki2/jena-fuseki-dist/fuseki-server @@ -33,7 +33,6 @@ for J in "$JAR1" "$JAR2" do # Expand J="$(echo $J)" - echo $J if [ -e "$J" ] then JAR="$J" @@ -63,3 +62,19 @@ export FUSEKI_BASE="${FUSEKI_BASE:-$PWD/run}" JVM_ARGS=${JVM_ARGS:--Xmx1200M} exec java $JVM_ARGS -jar "$JAR" "$@" + +## Adding custom code to the Fuseki server: +## +## It is also possible to launch Fuseki using +## java $JVM_ARGS -cp "$JAR" org.apache.jena.fuseki.cmd.FusekiCmd "$@" +## +## "exec" is optional - it simple frees up a OS process. +## In this way, you can add custom java to the classpath: +## +## APPJAR=MyCode.jar +## java $JVM_ARGS -cp "$JAR:$APPJAR" org.apache.jena.fuseki.cmd.FusekiCmd "$@" + + + + + http://git-wip-us.apache.org/repos/asf/jena/blob/334460ae/jena-fuseki2/jena-fuseki-dist/fuseki-server.bat ---------------------------------------------------------------------- diff --git a/jena-fuseki2/jena-fuseki-dist/fuseki-server.bat b/jena-fuseki2/jena-fuseki-dist/fuseki-server.bat index 5881660..9977a23 100644 --- a/jena-fuseki2/jena-fuseki-dist/fuseki-server.bat +++ b/jena-fuseki2/jena-fuseki-dist/fuseki-server.bat @@ -17,3 +17,12 @@ @echo off @REM modify this to name the server jar java -Xmx1200M -jar fuseki-server.jar %* + +@REM Adding custom code to the Fuseki server: +@REM +@REM It is also possible to launch Fuseki using +@REM java ..jvmarsg... -cp $JAR org.apache.jena.fuseki.cmd.FusekiCmd %* +@REM +@REM In this way, you can add custom java to the classpath: +@REM +@REM java ... -cp fuseki-server.jar;MyCustomCode.jar org.apache.jena.fuseki.cmd.FusekiCmd %*
