diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-28 00:35:02 -0400 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-28 10:09:33 -0400 |
commit | 3232a1557aabd1ef3a59cbea38c883d4abb7ff32 (patch) | |
tree | 09ae92e35fe40b95143b0fb0291aff00f399bbc2 /nailgun_launcher/NailgunLauncher.java | |
parent | a3e5f304e99ff47165af6ed20182f06700e15b33 (diff) | |
download | cbt-3232a1557aabd1ef3a59cbea38c883d4abb7ff32.tar.gz cbt-3232a1557aabd1ef3a59cbea38c883d4abb7ff32.tar.bz2 cbt-3232a1557aabd1ef3a59cbea38c883d4abb7ff32.zip |
add support for forking the jvm process when invoking a main class
and add example of using akka-http that doesn’t work without this.
Also add functionality to emulate inheritIO when running via nailgun
process. Only caveat right now: user has to press ENTER to terminate
the input strea.
Diffstat (limited to 'nailgun_launcher/NailgunLauncher.java')
-rw-r--r-- | nailgun_launcher/NailgunLauncher.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nailgun_launcher/NailgunLauncher.java b/nailgun_launcher/NailgunLauncher.java index 1c6f3b5..0601919 100644 --- a/nailgun_launcher/NailgunLauncher.java +++ b/nailgun_launcher/NailgunLauncher.java @@ -56,6 +56,8 @@ public class NailgunLauncher{ ClassLoader.getSystemClassLoader().getParent() ); + public static boolean runningViaNailgun = System.out.getClass().getName().equals("com.martiansoftware.nailgun.ThreadLocalPrintStream"); + public static List<File> compatibilitySourceFiles; public static List<File> nailgunLauncherSourceFiles; public static List<File> stage1SourceFiles; |