private List < String > initCommand ( ) { List < String > command = new ArrayList < String > ( ) ; command . add ( cmd ) ; command . add ( "install" ) ; if ( acceptLicense ) { command . add ( "--acceptLicense" ) ; } else { command . add ( "--viewLicenseAgreement" ) ; } if ( to != null ) { command . add ( "--to=" + to ) ; } if ( from != null ) { command . add ( "--from=" + from ) ; } return command ; }
Generate a String list containing all the parameter for the command .