src/java/fr/jayasoft/ivy/repository/vsftp/VsftpRepository.java
/**
	 * The behaviour of vsftp with some commands is to log the resulting message on the error stream,
	 * even if everything is ok.
	 *  
	 * So it's quite difficult if there was an error or not.
	 * 
	 * Hence we compare the response with the expected message and deal with it.
	 * The problem is that this is very specific to the version of vsftp used for the test,
	 * 
	 * That's why expected messages are obtained using overridable protected methods.
	 */
The behaviour of vsftp with some commands is to log the resulting message on the error stream,
even if everything is ok.

So it's quite difficult if there was an error or not.

Hence we compare the response with the expected message and deal with it.
The problem is that this is very specific to the version of vsftp used for the test.

That's why expected messages are obtained using overridable protected methods.
The behaviour of vsftp with some commands is to log the resulting message on the error stream even if everything is ok . So it ' s quite difficult if there was an error or not . Hence we compare the response with the expected message and deal with it . The problem is that this is very specific to the version of vsftp used for the test . That ' s why expected messages are obtained using overridable protected methods .
protected void sendCommand(String command, Pattern expectedResponse, long timeout) throws IOException {
		String response = sendCommand(command, true, timeout);
		if (!expectedResponse.matcher(response).matches()) {
			Message.debug("invalid response from server:");
			Message.debug("expected: '"+expectedResponse+"'");
			Message.debug("was:      '"+response+"'");
			throw new IOException(response);
		}
	}
protected void sendCommand ( String command , Pattern expectedResponse , long timeout ) throws IOException { String response = sendCommand ( command , true , timeout ) ; if ( ! expectedResponse . matcher ( response ) . matches ( ) ) { Message . debug ( "invalid response from server:" ) ; Message . debug ( "expected: '" + expectedResponse + "'" ) ; Message . debug ( "was:      '" + response + "'" ) ; throw new IOException ( response ) ; } }
The behaviour of vsftp with some commands is to log the resulting message on the error stream,
 even if everything is ok.
The behaviour of vsftp with some commands is to log the resulting message on the error stream even if everything is ok .