process( line, resources );
boolean result = process( line, resources ); if( !result ) { System.exit( 1 ); } else { System.exit( 0 ); }
    public BuilderPlugin( Logger logger, String[] args )        throws Exception    {        m_logger = logger;        m_library = new DefaultLibrary( logger );                Parser parser = new Parser();        parser.setGroup( COMMAND_GROUP );                try        {            CommandLine line = parser.parse( args );            m_verbose = line.hasOption( VERBOSE_OPTION );            if( line.hasOption( HELP_OPTION ) )            {                processHelp();                System.exit( 0 );            }            else            {                // setup the build version                                if( line.hasOption( VERSION_OPTION ) )                {                    String version = (String) line.getValue( VERSION_OPTION, "SNAPSHOT" );                    System.setProperty( "build.signature", version );                    if( m_verbose )                    {                        getLogger().info( "Setting version to: " + version );                    }                }                                if( line.hasOption( LIST_OPTION ) )                {                    Resource[] resources = getTargetSelection( line );                    if( resources.length == 0 )                    {                        getLogger().info( "Empty selection." );                        System.exit( 0 );                    }                    else                    {                        list( resources );                    }                }                else                {                    Resource[] resources = getSelection( line );                    if( resources.length == 0 )                    {                        getLogger().info( "Empty selection." );                        System.exit( 0 );                    }                    process( line, resources );                }            }        }        catch( OptionException e )        {            m_logger.error( e.getMessage() );        }    }