public static void main ( String [ ] args ) { LogConfig . initMinimal ( ) ; try { Distribution dist = new ClassLoaderDistribution ( ) ; InstallOptions opts = null ; if ( args . length == 0 ) { opts = new InstallOptions ( dist ) ; } else { Map < String , String > props = new HashMap < String , String > ( ) ; for ( String file : args ) { props . putAll ( FileUtils . loadMap ( new File ( file ) ) ) ; } opts = new InstallOptions ( dist , props ) ; } // set fedora.home System . setProperty ( "fedora.home" , opts . getValue ( InstallOptions . FEDORA_HOME ) ) ; new Installer ( dist , opts ) . install ( ) ; } catch ( Exception e ) { printException ( e ) ; System . exit ( 1 ) ; } }
Command - line entry point .