src/java/fr/jayasoft/ivy/repository/ssh/SshRepository.java
/**
     * Replace the argument placeholder with argument or append the argument if no 
     * placeholder is present
     * @param command with argument placeholder or not
     * @param argument 
     * @return replaced full command
     */
Replace the argument placeholder with argument or append the argument if no
placeholder is present
@param command with argument placeholder or not
@param argument
@return replaced full command
Replace the argument placeholder with argument or append the argument if no placeholder is present @param command with argument placeholder or not @param argument @return replaced full command
private String replaceArgument(String command, String argument) {
        String fullCmd;
        if(command.indexOf(ARGUMENT_PLACEHOLDER) == -1) {
            fullCmd = command + " " + argument;
        } else {
            fullCmd = command.replaceAll(ARGUMENT_PLACEHOLDER,argument);
        }
        return fullCmd;
    }
private String replaceArgument ( String command , String argument ) { String fullCmd ; if ( command . indexOf ( ARGUMENT_PLACEHOLDER ) == - 1 ) { fullCmd = command + " " + argument ; } else { fullCmd = command . replaceAll ( ARGUMENT_PLACEHOLDER , argument ) ; } return fullCmd ; }
Replace the argument placeholder with argument or append the argument if no
 placeholder is present
 @param command with argument placeholder or not
 @param argument
 @return replaced full command
Replace the argument placeholder with argument or append the argument if no placeholder is present @param command with argument placeholder or not @param argument @return replaced full command