public void setCredentials ( String username , String password ) { if ( GitTaskUtils . isNullOrBlankString ( username ) || GitTaskUtils . isNullOrBlankString ( password ) ) { throw new IllegalArgumentException ( "Credentials must not be empty." ) ; } credentials = new UsernamePasswordCredentialsProvider ( username , password ) ; }
Sets the Git credentials