Permalink
Browse files

Allow to deploy into context path different from "/"

  • Loading branch information...
1 parent 801a116 commit 199fb51fb6f55c9e18536c6554950c7ac1ad525b Konstantin Boudnik committed Apr 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 starter/src/main/java/com/xlson/standalonewar/Starter.java
@@ -55,7 +55,7 @@ public static void main(String[] args) throws Exception {
WebAppContext context = new WebAppContext();
context.setServer(server);
- context.setContextPath("/");
+ context.setContextPath(System.getProperty("app.context", "/"));
ProtectionDomain protectionDomain = Starter.class.getProtectionDomain();
URL location = protectionDomain.getCodeSource().getLocation();

0 comments on commit 199fb51

Please sign in to comment.