File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,7 @@ dependencies {
32
32
33
33
// log
34
34
// support old version
35
- compile ' log4j:log4j:1.2.16'
36
- compile ' org.slf4j:slf4j-log4j12:1.6.1'
35
+ // compile 'log4j:log4j:1.2.16'
37
36
// new version use log
38
37
compile ' org.slf4j:slf4j-api:1.7.21'
39
38
compile ' org.apache.logging.log4j:log4j-slf4j-impl:2.6.2'
@@ -54,16 +53,19 @@ dependencies {
54
53
compile ' javax.inject:javax.inject:1'
55
54
compile ' javax:javaee-api:7.0'
56
55
compile ' io.netty:netty-all:4.1.2.Final'
56
+ compile ' org.eclipse.jetty:jetty-servlet:9.2.2.v20140723'
57
+
58
+
57
59
58
60
59
61
// web server
60
- providedCompile ' org.eclipse.jetty:jetty-webapp:9.2.2.v20140723'
62
+ providedCompile ' org.eclipse.jetty:jetty-webapp:9.2.2.v20140723'
61
63
providedCompile ' org.eclipse.jetty:jetty-jsp:9.2.2.v20140723'
62
64
providedCompile ' org.eclipse.jetty:jetty-continuation:9.2.2.v20140723'
63
65
providedCompile ' org.eclipse.jetty.websocket:websocket-server:9.2.2.v20140723'
64
66
providedCompile ' org.eclipse.jetty.websocket:javax-websocket-server-impl:9.2.2.v20140723'
65
67
66
-
68
+
67
69
testCompile ' junit:junit:4.12'
68
70
69
71
war{
@@ -75,12 +77,6 @@ dependencies {
75
77
def schemaJarFile = project. configurations. providedCompile
76
78
77
79
schemaJarFile. each{source ->
78
- println source
79
- if (source. name== ' javax.servlet-api-3.1.0.jar' ){
80
- from(source){
81
- into ' WEB-INF/lib'
82
- }
83
- }
84
80
from zipTree(source)
85
81
exclude(" **/*.SF" )
86
82
}
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ public class Bootstrap {
20
20
private static final String PREFIX = "jcoder_" ;
21
21
22
22
public static void main (String [] args ) throws Exception {
23
-
23
+
24
24
for (String arg : args ) {
25
25
if (arg .startsWith ("-f" )) {
26
26
if (arg .contains ("=" )) {
@@ -84,6 +84,11 @@ public static void main(String[] args) throws Exception {
84
84
context .setContextPath ("/" );
85
85
context .setServer (server );
86
86
context .setMaxFormContentSize (0 );
87
+ context .setServerClasses (new String [] {
88
+ "org.objectweb.asm." , // hide asm used by jetty
89
+ "org.eclipse.jdt." , // hide jdt used by jetty
90
+ "-org.eclipse.jetty." // hide other jetty classes
91
+ });
87
92
88
93
context .setWelcomeFiles (new String [] { "Home.jsp" });
89
94
Original file line number Diff line number Diff line change 8
8
import org .nutz .mvc .ioc .provider .ComboIocProvider ;
9
9
10
10
@ Modules (packages = { "org.nlpcn.jcoder.controller" }, scanPackage = true )
11
- @ IocBy (type = ComboIocProvider .class , args = {"*anno" , "org.nlpcn.jcoder" })
11
+ @ IocBy (type = ComboIocProvider .class , args = { "*anno" , "org.nlpcn.jcoder" })
12
12
@ Encoding (input = "UTF-8" , output = "UTF-8" )
13
13
@ SetupBy (SiteSetup .class )
14
14
public class App {
15
-
16
15
}
You can’t perform that action at this time.
0 commit comments