@ SuppressWarnings ( "rawtypes" ) private static void parseCommandLine ( final PluginDefinition pluginDef , final Element xmlPluginElement ) { Element commandLine = xmlPluginElement . element ( "command-line" ) ; if ( commandLine != null ) { // The plugin has a command line... Element options = commandLine . element ( "options" ) ; if ( options == null ) { // The command line is empty... return ; } for ( Iterator < Element > i = options . elementIterator ( ) ; i . hasNext ( ) ; ) { pluginDef . addOption ( parsePluginOption ( i . next ( ) ) ) ; } } }
Updates the plugin definition with the commandline read from the xml file .