Skip to content

Commit 6a2ca22

Browse files
committed
set temp home in jcoder_home
1 parent 9bd33c1 commit 6a2ca22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/Bootstrap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ public static void main(String[] args) throws Exception {
110110
File jcoderHome = new File(home);
111111

112112
makeFiles(jcoderHome, logPath);
113-
114113
context.setContextPath("/");
115114
context.setServer(server);
116115
context.setMaxFormContentSize(0);
@@ -130,6 +129,7 @@ public static void main(String[] args) throws Exception {
130129
if (location.toExternalForm().endsWith(".jar")) { // 如果是jar包
131130
context.setDescriptor(location.toExternalForm() + "!/webapp/WEB-INF/web.xml");
132131
context.setWarResource(Resource.newResource(Bootstrap.class.getResource("webapp")));
132+
context.setTempDirectory(new File(jcoderHome,".temp"));
133133
} else {
134134
context.setWar("src/main/webapp");
135135
}

0 commit comments

Comments
 (0)