/**
* Array of all mandatory properties required for a project without child.
*/
- private static final String[] MANDATORY_PROPERTIES_FOR_SIMPLE_PROJECT = {PROPERTY_PROJECT_BASEDIR, PROPERTY_PROJECT_KEY, PROPERTY_PROJECT_NAME, PROPERTY_PROJECT_VERSION,
- PROPERTY_SOURCES};
+ private static final String[] MANDATORY_PROPERTIES_FOR_SIMPLE_PROJECT = {
+ PROPERTY_PROJECT_BASEDIR, PROPERTY_PROJECT_KEY, PROPERTY_PROJECT_NAME, PROPERTY_PROJECT_VERSION, PROPERTY_SOURCES
+ };
/**
* Array of all mandatory properties required for a project with children.
private final String serverUrl;
private final String userAgent;
- private final String login;
- private final String password;
- private ServerConnection(String serverUrl, String app, String appVersion, String login, String password) {
+ private ServerConnection(String serverUrl, String app, String appVersion) {
this.serverUrl = serverUrl;
this.userAgent = app + "/" + appVersion;
- this.login = login;
- this.password = password;
}
static ServerConnection create(Properties properties) {
String serverUrl = properties.getProperty("sonar.host.url");
String app = properties.getProperty(InternalProperties.RUNNER_APP);
String appVersion = properties.getProperty(InternalProperties.RUNNER_APP_VERSION);
- String login = properties.getProperty("sonar.login");
- String password = properties.getProperty("sonar.password");
- return new ServerConnection(serverUrl, app, appVersion, login, password);
+ return new ServerConnection(serverUrl, app, appVersion);
}
void download(String path, File toFile) {
request.acceptGzipEncoding().uncompress(true);
request.connectTimeout(CONNECT_TIMEOUT_MILLISECONDS).readTimeout(READ_TIMEOUT_MILLISECONDS);
request.userAgent(userAgent);
- if (login != null) {
- request.basic(login, password!=null ? password : "");
- }
return request;
}