File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,13 +38,25 @@ public class Main
3838
3939 protected static final String CONNECTION_STATUS_SERVER_HOST = "localhost" ;
4040
41+ public static void main (String ...args )
42+ {
43+ Main main = new Main ();
44+ }
45+
4146 public Main ()
4247 {
43- Runtime .getRuntime ().addShutdownHook (new Thread (() -> {
44- try {
48+ Runtime .getRuntime ().addShutdownHook (new Thread (() ->
49+ {
50+ try
51+ {
4552 String script = new File ("scripts/shutdown.sh" ).getAbsolutePath ();
53+
4654 new ProcessBuilder ("bash" , script ).inheritIO ().start ().waitFor ();
47- } catch (Exception e ) { e .printStackTrace (System .err ); }
55+ }
56+ catch (Exception e )
57+ {
58+ e .printStackTrace (System .err );
59+ }
4860 }, "ShutdownHook" ));
4961
5062 CommonRails .printStartRecipeSpinner ();
@@ -93,9 +105,4 @@ public Main()
93105
94106 NITRO .BRIDGE .start ();
95107 }
96-
97- public static void main (String ...args )
98- {
99- Main main = new Main ();
100- }
101108}
You can’t perform that action at this time.
0 commit comments