private List < String > buildCommandLine ( GitRmOptions options , File path , List < File > paths ) { List < String > cmdline = new ArrayList < String > ( ) ; cmdline . add ( JavaGitConfiguration . getGitCommand ( ) ) ; cmdline . add ( "rm" ) ; if ( null != options ) { if ( options . isOptCached ( ) ) { cmdline . add ( "--cached" ) ; } if ( options . isOptF ( ) ) { cmdline . add ( "-f" ) ; } if ( options . isOptN ( ) ) { cmdline . add ( "-n" ) ; } if ( options . isOptQ ( ) ) { cmdline . add ( "-q" ) ; } if ( options . isOptR ( ) ) { cmdline . add ( "-r" ) ; } } if ( null != path ) { cmdline . add ( path . getPath ( ) ) ; } else { for ( File f : paths ) { cmdline . add ( f . getPath ( ) ) ; } } return cmdline ; }
Builds the command line .