Skip to content

Commit

Permalink
attempted fix for #22 to try avoid jetty locking the files which brea…
Browse files Browse the repository at this point in the history
…ks "mvn -Pwatch" on windows
  • Loading branch information
jstrachan committed Apr 3, 2013
1 parent 5531b98 commit 5c6010d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions hawtio-web/src/test/java/io/hawt/sample/Main.java
Expand Up @@ -91,6 +91,13 @@ public boolean apply(File file) {
context.setContextPath(contextPath);
context.setParentLoaderPriority(true);

// lets try disable the memory mapped file which causes issues
// on Windows when using mvn -Pwatch
// see http://docs.codehaus.org/display/JETTY/Files+locked+on+Windows
// https://github.com/hawtio/hawtio/issues/22
context.setCopyWebDir(true);
context.setInitParameter("useFileMappedBuffer", "false");

Server server = new Server(port);
server.setHandler(context);

Expand Down

0 comments on commit 5c6010d

Please sign in to comment.