コード例 #1
0
  protected void preExecute() throws BuildException {
    super.preExecute();

    if (this.loginSpec != null) {
      if (this.loginSpec.getUrl(this.getProject()).length() == 0) {
        throw new BuildException(
            this.stringRepository.getString("notDefined", "LoginSpec Datasource URL"));
      }
    }
  }
コード例 #2
0
  public void execute() throws BuildException {
    super.execute();

    int status =
        this.execute(
            this.getSessionName(),
            this.getSessionsFile(),
            this.getUrl(),
            this.getDriverClass(),
            this.getUser(),
            this.getPassword());

    if (status == 0) {
      if (this.property != null) this.getProject().setNewProperty(this.property, "true");
    }
  }
コード例 #3
0
  protected void initialize() {
    super.initialize();

    this.property = null;
    this.loginSpec = null;
  }