private String [ ] getHubProgramArguments ( ) throws IOException { LOGGER . entering ( ) ; LOGGER . fine ( "This instance is considered a SeLion Grid Hub" ) ; List < String > args = new LinkedList <> ( ) ; if ( ! commands . contains ( HUB_CONFIG_ARG ) ) { String hubConfig = HUB_CONFIG_FILE ; // To verify this is SeLion Sauce Grid or not if ( commands . contains ( SeLionGridHubConfiguration . TYPE_ARG ) && commands . contains ( InstanceType . SELION_SAUCE_HUB . getFriendlyName ( ) ) ) { hubConfig = HUB_SAUCE_CONFIG_FILE ; InstallHelper . copyFileFromResources ( HUB_SAUCE_CONFIG_FILE_RESOURCE , HUB_SAUCE_CONFIG_FILE ) ; InstallHelper . copyFileFromResources ( NODE_SAUCE_CONFIG_FILE_RESOURCE , NODE_SAUCE_CONFIG_FILE ) ; InstallHelper . copyFileFromResources ( SAUCE_CONFIG_FILE_RESOURCE , SAUCE_CONFIG_FILE ) ; } else { InstallHelper . copyFileFromResources ( HUB_CONFIG_FILE_RESOURCE , HUB_CONFIG_FILE ) ; } args . add ( HUB_CONFIG_ARG ) ; args . add ( hubConfig ) ; } LOGGER . exiting ( args . toString ( ) ) ; return args . toArray ( new String [ args . size ( ) ] ) ; }
Get SeLion Grid related arguments to pass