Buggy code:
; public static String [ ] CLI_PARAM_PASSWORD = new String [ ] { "password" , "p" } ; public static String [ ] CLI_PARAM_HOST = new String [ ] { "host" , "h" } ; public static String [ ] CLI_PARAM_FTP_HOST = new String [ ] { "ftphost" , "f" } ; public static String [ ] CLI_PARAM_PROJECT = new String [ ] { "project" , "i" } ; public static String [ ] CLI_PARAM_PROTO = new String [ ] { "proto" , "t" } ; public static String [ ] CLI_PARAM_INSECURE = new String [ ] { "insecure" , "s" } ; public static String [ ] CLI_PARAM_EXECUTE = new String [ ] { "execute" , "e" } ; public static String [ ] CLI_PARAM_VERSION = new String [ ] { "version" , "V" } ; public static String [ ] CLI_PARAM_DEFAULT_DATE_FOREIGN_KEY = new String [ ] { "default-date-fk" , "D" } ; public static String CLI_PARAM_SCRIPT = "script" ; private static String DEFAULT_PROPERTIES = "gdi.properties" ; private static org . apache . commons . cli . Options ops = new org . apache . commons . cli . Options ( ) ; public static Option [ ] Options = new Option [ ] { new Option ( GdcDI . CLI_PARAM_HELP [ 1 ] , GdcDI . CLI_PARAM_HELP [ 0 ] , false , "Print<seq2seq4repair_space>command<seq2seq4repair_space>reference" ) , new Option ( GdcDI . CLI_PARAM_USERNAME [ 1 ] , GdcDI . CLI_PARAM_USERNAME [ 0 ] , true , "GoodData<seq2seq4repair_space>username" ) , new Option ( GdcDI . CLI_PARAM_PASSWORD [ 1 ] , GdcDI . CLI_PARAM_PASSWORD [ 0 ] , true , "GoodData<seq2seq4repair_space>password" ) , new Option ( GdcDI . CLI_PARAM_HOST [ 1 ] , GdcDI . CLI_PARAM_HOST [ 0 ] , true , "GoodData<seq2seq4repair_space>host" ) , new Option ( GdcDI . CLI_PARAM_FTP_HOST [ 1 ] , GdcDI . CLI_PARAM_FTP_HOST [ 0 ] , true , "GoodData<seq2seq4repair_space>FTP<seq2seq4repair_space>host" ) , new Option ( GdcDI . CLI_PARAM_PROJECT [ 1 ] , GdcDI . CLI_PARAM_PROJECT [ 0 ] , true , "GoodData<seq2seq4repair_space>project<seq2seq4repair_space>identifier<seq2seq4repair_space>(a<seq2seq4repair_space>string<seq2seq4repair_space>like<seq2seq4repair_space>nszfbgkr75otujmc4smtl6rf5pnmz9yl)" ) , new Option ( GdcDI . CLI_PARAM_PROTO [ 1 ] , GdcDI . CLI_PARAM_PROTO [ 0 ] , true , "HTTP<seq2seq4repair_space>or<seq2seq4repair_space>HTTPS<seq2seq4repair_space>(deprecated)" ) , new Option ( GdcDI . CLI_PARAM_INSECURE [ 1 ] , GdcDI . CLI_PARAM_INSECURE [ 0 ] , false , "Disable<seq2seq4repair_space>encryption" ) , new Option ( GdcDI . CLI_PARAM_VERSION [ 1 ] , GdcDI . CLI_PARAM_VERSION [ 0 ] , false , "Prints<seq2seq4repair_space>the<seq2seq4repair_space>tool<seq2seq4repair_space>version." ) , new Option ( GdcDI . CLI_PARAM_EXECUTE [ 1 ] , GdcDI . CLI_PARAM_EXECUTE [ 0 ] , true , "Commands<seq2seq4repair_space>and<seq2seq4repair_space>params<seq2seq4repair_space>to<seq2seq4repair_space>execute<seq2seq4repair_space>before<seq2seq4repair_space>the<seq2seq4repair_space>commands<seq2seq4repair_space>in<seq2seq4repair_space>provided<seq2seq4repair_space>files" ) , new Option ( GdcDI . CLI_PARAM_DEFAULT_DATE_FOREIGN_KEY [ 1 ] , GdcDI . CLI_PARAM_DEFAULT_DATE_FOREIGN_KEY [ 0 ] , true , "Foreign<seq2seq4repair_space>key<seq2seq4repair_space>to<seq2seq4repair_space>represent<seq2seq4repair_space>an<seq2seq4repair_space>'unknown'<seq2seq4repair_space>date" ) } ; private CliParams cliParams = null ; private Connector [ ] connectors = null ; private ProcessingContext context = new ProcessingContext ( ) ; private boolean finishedSucessfuly = false ; private static long LOCK_EXPIRATION_TIME = 1000 * 3600 ; private static final String BUILD_NUMBER = "" ; private GdcDI ( CommandLine ln , Properties defaults ) { } protected CliParams parse ( CommandLine ln , Properties defaults ) throws InvalidArgumentException { GdcDI . l . debug ( ( "Parsing<seq2seq4repair_space>cli<seq2seq4repair_space>" + ln ) ) ; CliParams cp = new CliParams ( ) ; for ( Option o : GdcDI . Options ) { String name = o . getLongOpt ( ) ; if ( ln . hasOption ( name ) ) { cp . put ( name , ln . getOptionValue ( name ) ) ; } else if ( ( defaults . getProperty ( name ) ) != null ) { cp . put ( name , defaults . getProperty ( name ) ) ; } } if ( cp . containsKey ( GdcDI . CLI_PARAM_VERSION [ 0 ] ) ) { <START_BUG> GdcDI . l . info ( ( "GoodData<seq2seq4repair_space>CL<seq2seq4repair_space>version<seq2seq4repair_space>1.2.41-BETA" + ( ( GdcDI . BUILD_NUMBER . length ( ) ) > 0 ? ",<seq2seq4repair_space>build<seq2seq4repair_space>" + ( GdcDI . BUILD_NUMBER ) : "." ) ) ) ; <END_BUG> System . exit ( 0 ) ; } if ( ! ( cp . containsKey ( GdcDI . CLI_PARAM_HOST [ 0 ] ) ) ) { cp . put ( GdcDI . CLI_PARAM_HOST [ 0 ] , DEFAULT_HOST ) ; } GdcDI . l . debug ( ( "Using<seq2seq4repair_space>host<seq2seq4repair_space>" + ( cp . get ( GdcDI . CLI_PARAM_HOST [ 0 ] ) ) ) ) ; if ( ! ( cp . containsKey ( GdcDI . CLI_PARAM_FTP_HOST [ 0 ] ) ) ) { String [ ] hcs = cp . get ( GdcDI . CLI_PARAM_HOST [ 0 ] ) . split ( "\\." ) ; if ( ( hcs != null ) && ( ( hcs . length ) > 0 ) ) { String ftpHost = "" ; for ( int i = 0 ; i < ( hcs . length ) ; i ++ ) { if ( i > 0 ) ftpHost += "." + ( hcs [ i ] ) ; else ftpHost = ( hcs [ i ] ) + ( N . FTP_SRV_SUFFIX ) ; } cp . put ( GdcDI . CLI_PARAM_FTP_HOST [ 0 ] , ftpHost ) ; } else { throw new InvalidArgumentException ( ( "Invalid<seq2seq4repair_space>format<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>GoodData<seq2seq4repair_space>REST<seq2seq4repair_space>API<seq2seq4repair_space>host:<seq2seq4repair_space>" + ( cp . get ( GdcDI . CLI_PARAM_HOST [ 0 ] ) ) ) ) ; } } GdcDI . l . debug ( ( "Using<seq2seq4repair_space>FTP<seq2seq4repair_space>host<seq2seq4repair_space>" + ( cp . get ( GdcDI . CLI_PARAM_FTP_HOST [ 0 ] ) ) ) ) ; if ( cp . containsKey ( GdcDI . CLI_PARAM_PROTO [ 0 ] ) ) { String proto = ln . getOptionValue ( GdcDI . CLI_PARAM_PROTO [ 0 ] ) . toLowerCase ( ) ; if ( ( ! ( "http" . equalsIgnoreCase ( proto ) ) ) && ( ! ( "https" . equalsIgnoreCase ( proto ) ) ) ) { throw new InvalidArgumentException ( ( ( "Invalid<seq2seq4repair_space>'" + ( GdcDI . CLI_PARAM_PROTO [ 0 ] ) ) + "'<seq2seq4repair_space>parameter.<seq2seq4repair_space>Use<seq2seq4repair_space>HTTP<seq2seq4repair_space>or<seq2seq4repair_space>HTTPS." ) ) ;

Fix:
GdcDI . l . info ( ( "GoodData<seq2seq4repair_space>CL<seq2seq4repair_space>version<seq2seq4repair_space>1.2.42-BETA" + ( ( GdcDI . BUILD_NUMBER . length ( ) ) > 0 ? ",<seq2seq4repair_space>build<seq2seq4repair_space>" + ( GdcDI . BUILD_NUMBER ) : "." ) ) ) ;