Skip to content

Instantly share code, notes, and snippets.

@kutami
kutami / Launcher_mainWithExitCode.java
Created February 23, 2017 16:33
org.codehaus.plexus.classworlds.launcher.Launcher
public static int mainWithExitCode( String[] args )
throws Exception
{
String classworldsConf = System.getProperty( CLASSWORLDS_CONF );
InputStream is;
Launcher launcher = new Launcher();
ClassLoader cl = Thread.currentThread().getContextClassLoader();
@kutami
kutami / Launcher_main.java
Last active February 23, 2017 16:30
org.codehaus.plexus.classworlds.launcher.Launcher
public static void main( String[] args )
{
try
{
int exitCode = mainWithExitCode( args );
System.exit( exitCode );
}
catch ( Exception e )
{