diff options
Diffstat (limited to 'nailgun_launcher/NailgunLauncher.java')
-rw-r--r-- | nailgun_launcher/NailgunLauncher.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/nailgun_launcher/NailgunLauncher.java b/nailgun_launcher/NailgunLauncher.java index c213518..3290bdb 100644 --- a/nailgun_launcher/NailgunLauncher.java +++ b/nailgun_launcher/NailgunLauncher.java @@ -97,10 +97,12 @@ public class NailgunLauncher{ } try{ - stage1classLoader - .loadClass("cbt.Stage1") - .getMethod("main", String[].class, ClassLoader.class) - .invoke( null, (Object) args, stage1classLoader); + Integer exitCode = + (Integer) stage1classLoader + .loadClass("cbt.Stage1") + .getMethod("run", String[].class, ClassLoader.class, Boolean.class) + .invoke( null, (Object) args, stage1classLoader, stage1SourcesChanged); + System.exit(exitCode); }catch(Exception e){ System.err.println(stage1classLoader); throw e; |