Skip to content

Commit

Permalink
set temp home in jcoder_home
Browse files Browse the repository at this point in the history
  • Loading branch information
ansjsun committed Jul 10, 2018
1 parent 9bd33c1 commit 6a2ca22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/Bootstrap.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ public static void main(String[] args) throws Exception {
File jcoderHome = new File(home);

makeFiles(jcoderHome, logPath);

context.setContextPath("/");
context.setServer(server);
context.setMaxFormContentSize(0);
Expand All @@ -130,6 +129,7 @@ public static void main(String[] args) throws Exception {
if (location.toExternalForm().endsWith(".jar")) { // 如果是jar包
context.setDescriptor(location.toExternalForm() + "!/webapp/WEB-INF/web.xml");
context.setWarResource(Resource.newResource(Bootstrap.class.getResource("webapp")));
context.setTempDirectory(new File(jcoderHome,".temp"));
} else {
context.setWar("src/main/webapp");
}
Expand Down

0 comments on commit 6a2ca22

Please sign in to comment.