throw new BuildException(ex);
if (isFailOnError()) { throw new BuildException(ex); } else { task.log(ex.getLocalizedMessage(), Project.MSG_ERR); }
    public void execute(Task task, Database model) throws BuildException    {        BasicDataSource dataSource = getDataSource();        if (dataSource == null)        {            throw new BuildException("No database specified.");        }        Platform platform = getPlatform();        try        {            platform.dropDatabase(dataSource.getDriverClassName(),                                  dataSource.getUrl(),                                  dataSource.getUsername(),                                  dataSource.getPassword());            task.log("Dropped database", Project.MSG_INFO);        }        catch (UnsupportedOperationException ex)        {            task.log("Database platform "+getPlatform().getDatabaseName()+" does not support database dropping via JDBC", Project.MSG_ERR);        }        catch (Exception ex)        {            throw new BuildException(ex);        }    }