public void validateArguments() throws BuildException {
    if (name == null) {
      throw new BuildException("name attribute must be specified for module entry");
    }

    File outputDir = getOutputDir();
    if (outputDir == null) {
      throw new BuildException("Cannot find " + getKind() + " output for module " + name + ": '" + getOutputDirProperty() + "' property isn't defined");
    }
    if (!outputDir.exists()) {
      throw new BuildException("No " + getKind() + " output found for module " + name + ": " + outputDir + " doesn't exist");
    }
  }
public void validateArguments()