public static void main ( final String [ ] args ) throws Exception { // Set the logger to use the text area logger System . setProperty ( "org.apache.commons.logging.Log" , "com.github.bordertech.wcomponents.lde.StandaloneLauncher$TextAreaLogger" ) ; // Set the port number to a random port Configuration internalWComponentConfig = Config . getInstance ( ) ; CompositeConfiguration config = new CompositeConfiguration ( new MapConfiguration ( new HashMap < String , Object > ( ) ) ) ; config . addConfiguration ( internalWComponentConfig ) ; // Internal WComponent config next config . setProperty ( ConfigurationProperties . LDE_SERVER_PORT , 0 ) ; Config . setConfiguration ( config ) ; getInstance ( ) . launcher . run ( ) ; getInstance ( ) . log ( "LDE now running on " + getInstance ( ) . launcher . getUrl ( ) + ' ' ) ; }
The entry point when the launcher is run as a java application .