Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Wilkins2015-10-21 05:56:46 +0000
committerGreg Wilkins2015-10-21 05:56:58 +0000
commit20072252c0469a4a24e705557bf1872d27e64a44 (patch)
tree0e80c50bc33d3508cc493e186c9a79e8d7e087a0 /jetty-deploy
parent781a380fbd6f5f8186a88b107ce90755e04a4db6 (diff)
downloadorg.eclipse.jetty.project-20072252c0469a4a24e705557bf1872d27e64a44.tar.gz
org.eclipse.jetty.project-20072252c0469a4a24e705557bf1872d27e64a44.tar.xz
org.eclipse.jetty.project-20072252c0469a4a24e705557bf1872d27e64a44.zip
Set jetty home/base for GlobalWebappConfigBinding
Diffstat (limited to 'jetty-deploy')
-rw-r--r--jetty-deploy/src/main/java/org/eclipse/jetty/deploy/bindings/GlobalWebappConfigBinding.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/bindings/GlobalWebappConfigBinding.java b/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/bindings/GlobalWebappConfigBinding.java
index 0c4121896f..15289d5016 100644
--- a/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/bindings/GlobalWebappConfigBinding.java
+++ b/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/bindings/GlobalWebappConfigBinding.java
@@ -97,6 +97,8 @@ public class GlobalWebappConfigBinding implements AppLifeCycle.Binding
Resource resource = Resource.newResource(app.getOriginId());
File file = resource.getFile();
jettyXmlConfig.getIdMap().put("Server",app.getDeploymentManager().getServer());
+ jettyXmlConfig.getProperties().put("jetty.home",System.getProperty("jetty.home","."));
+ jettyXmlConfig.getProperties().put("jetty.base",System.getProperty("jetty.base","."));
jettyXmlConfig.getProperties().put("jetty.webapp",file.getCanonicalPath());
jettyXmlConfig.getProperties().put("jetty.webapps",file.getParentFile().getCanonicalPath());

Back to the top