This repository was archived by the owner on Sep 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +29
-18
lines changed
scala/no/java/submitit/app Expand file tree Collapse file tree 5 files changed +29
-18
lines changed Original file line number Diff line number Diff line change 213
213
</execution >
214
214
</executions >
215
215
</plugin >
216
- <plugin >
217
- <groupId >org.mortbay.jetty</groupId >
218
- <artifactId >maven-jetty-plugin</artifactId >
219
- </plugin >
220
216
<plugin >
221
217
<groupId >org.apache.maven.plugins</groupId >
222
218
<artifactId >maven-eclipse-plugin</artifactId >
Original file line number Diff line number Diff line change 65
65
</dependency >
66
66
</dependencies >
67
67
68
+ <build >
69
+ <plugins >
70
+ <plugin >
71
+ <groupId >org.mortbay.jetty</groupId >
72
+ <artifactId >maven-jetty-plugin</artifactId >
73
+ <configuration >
74
+ <systemProperties >
75
+ <systemProperty >
76
+ <name >submitit.properties</name >
77
+ <value >${basedir} /src/test/resources/submitit.properties</value >
78
+ </systemProperty >
79
+ <systemProperty >
80
+ <name >wicket.configuration</name >
81
+ <value >development</value >
82
+ </systemProperty >
83
+ </systemProperties >
84
+ </configuration >
85
+ </plugin >
86
+ </plugins >
87
+ </build >
88
+
68
89
</project >
Original file line number Diff line number Diff line change @@ -35,8 +35,8 @@ import authorization.IUnauthorizedComponentInstantiationListener
35
35
class SubmititApp extends WebApplication with LoggHandling {
36
36
37
37
override def init () {
38
- SubmititApp .propertyFileName = super .getServletContext.getInitParameter (" submitit.properties" )
39
- if (SubmititApp .propertyFileName == null ) throw new Exception (""" You must specify "submitit.properties" as a init parameter .""" )
38
+ SubmititApp .propertyFileName = System .getProperty (" submitit.properties" )
39
+ if (SubmititApp .propertyFileName == null ) throw new Exception (""" You must specify "submitit.properties" as a system property .""" )
40
40
val props = PropertyIOUtils .loadRessource(SubmititApp .propertyFileName)
41
41
42
42
SubmititApp .properties = DefaultConfigValues .mergeConfig(props)
Original file line number Diff line number Diff line change 30
30
<session-timeout >120</session-timeout >
31
31
</session-config >
32
32
33
- <context-param >
34
- <param-name >submitit.properties</param-name >
35
- <param-value >submitit-webapp/src/test/resources/submitit.properties</param-value >
36
- </context-param >
37
33
<context-param >
38
34
<param-name >wicket.configuration</param-name >
39
- <param-value >development </param-value >
35
+ <param-value >deployment </param-value >
40
36
</context-param >
41
37
42
38
</web-app >
Original file line number Diff line number Diff line change @@ -34,17 +34,15 @@ object JettyStarter {
34
34
bb.setContextPath(" /" );
35
35
bb.setWar(webappDir.toString);
36
36
37
- System .setProperty(" submitit.properties" , new File (getBaseDir(getClass), " src/main/resources/submitit.properties" ).toString)
38
-
37
+ System .setProperty(" submitit.properties" , new File (getBaseDir(getClass), " src/test/resources/submitit.properties" ).toString)
38
+ System .setProperty(" wicket.configuration" , " development" )
39
+
39
40
server.addHandler(bb);
40
41
41
42
try {
42
- System .out.println(" >>> STARTING EMBEDDED JETTY SERVER, PRESS ANY KEY TO STOP " );
43
+ System .out.println(" >>> STARTING EMBEDDED JETTY SERVER... " );
43
44
server.start();
44
- while (System .in.available() == 0 ) {
45
- Thread .sleep(5000 );
46
- }
47
- server.stop();
45
+ System .out.println(" >>> Jetty Started @ port 8081" );
48
46
server.join();
49
47
} catch {
50
48
case e : Exception => {
You can’t perform that action at this time.
0 commit comments