getLog().info("File registration : SUCCESS");
getLog().info(" Registration ID : " + createObject.getResponse().getObject().getId());
getLog().info(" Developer ID : " + createObject.getResponse().getObject().getDeveloper());
getLog().info("------------------------------------------------------------------------");
if (System.getProperty("jelastic-session") == null) {
LogOut logOut = logOut(authentication);
if (logOut.getResult() == 0){
getLog().info(" LogOut : SUCCESS");
} else {
getLog().info("LogOut : FAILED");
getLog().error("Error : " + logOut.getError());
throw new MojoExecutionException(logOut.getError());
}
}
}
} else {
getLog().error("File upload : FAILED");