checkAttributes();
log("connecting to woj");
WOJCluster cluster = WOJClusterHelper.buildCluster(3);
log("using cluster "+cluster+" to access WOJ", Project.MSG_VERBOSE);
ClientServerServicesProvider ssp = ClientServerServicesProvider.get(cluster);
UnifiedAuthentificationService.getInstance().setAuthentificationCluster(cluster);
UnifiedAuthentificationService.getInstance().setLoginInfo(getUser(), getPasswd(), WojAntPlugin.getPluginVersion());
Authentification auth;
try {
auth = ssp.getAuthentificationService().authenticate();
if (auth instanceof AuthSuccessfull) {
log("Congratulations! your woj ant plugin installation is successful");
} else if (auth instanceof AuthFailed) {
AuthFailed authFailed = (AuthFailed)auth;
log("Sorry, your authentication failed: "+authFailed.getReasonMessage());