getLog().info("------------------------------------------------------------------------");
getLog().info(" Authentication : SUCCESS");
getLog().info(" Session : " + authentication.getSession());
//getLog().info(" Uid : " + authentication.getUid());
getLog().info("------------------------------------------------------------------------");
UpLoader upLoader = upload(authentication);
if (upLoader.getResult() == 0) {
getLog().info(" File UpLoad : SUCCESS");
getLog().info(" File URL : " + upLoader.getFile());
getLog().info(" File size : " + upLoader.getSize());
getLog().info("------------------------------------------------------------------------");
CreateObject createObject = createObject(upLoader,authentication);
if (createObject.getResult() == 0) {
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");
getLog().error(" Error : " + upLoader.getError());
throw new MojoExecutionException(upLoader.getError());
}
} else {
getLog().error("Authentication : FAILED");
getLog().error(" Error : " + authentication.getError());
throw new MojoExecutionException(authentication.getError());