aboutsummaryrefslogtreecommitdiff
path: root/nailgun_launcher
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-03-28 00:35:02 -0400
committerChristopher Vogt <oss.nsp@cvogt.org>2017-03-28 10:09:33 -0400
commit3232a1557aabd1ef3a59cbea38c883d4abb7ff32 (patch)
tree09ae92e35fe40b95143b0fb0291aff00f399bbc2 /nailgun_launcher
parenta3e5f304e99ff47165af6ed20182f06700e15b33 (diff)
downloadcbt-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')
-rw-r--r--nailgun_launcher/NailgunLauncher.java2
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;