org.web3j.mavenplugin.solidity.CompilerResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of web3j-maven-plugin Show documentation
Show all versions of web3j-maven-plugin Show documentation
Mojo's web3j Maven plugin is used to create java classes based on the solidity
contract files.
package org.web3j.mavenplugin.solidity;
/**
* Container for the compile result.
*
*/
public class CompilerResult {
public String errors;
public String output;
private boolean success = false;
public CompilerResult(String errors, String output, boolean success) {
this.errors = errors;
// https://ethereum.stackexchange.com/questions/11912/unable-to-define-greetercontract-in-the-greeter-tutorial-breaking-change-in-sol
this.output = output.replaceAll(":", "");
this.success = success;
}
public boolean isFailed() {
return !success;
}
}