Skip to content

Commit 0bac2a0

Browse files
committed
Make RunApp an application
1 parent 7846145 commit 0bac2a0

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/main/java/act/boot/app/RunApp.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ public class RunApp {
1919

2020
private static final Logger logger = L.get(RunApp.class);
2121

22+
public static void start() throws Exception {
23+
start(null, null, "");
24+
}
25+
2226
public static void start(Class<?> anyController) throws Exception {
2327
start(null, null, anyController);
2428
}
@@ -64,4 +68,8 @@ public static void start(String appName, String appVersion, String packageName)
6468
}
6569
System.out.printf("it talks %sms to start the app\n", $.ms() - ts);
6670
}
71+
72+
public static void main(String[] args) throws Exception {
73+
start();
74+
}
6775
}

0 commit comments

Comments
 (0)