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    {        if (getDataSource() == null)        {            throw new BuildException("No database specified.");        }        Platform platform = getPlatform();        try        {            if (isAlterDatabase())            {                platform.alterTables(model, true, true, true);            }            else            {                platform.createTables(model, true, true);            }            task.log("Written schema to database", Project.MSG_INFO);        }        catch (Exception ex)        {            throw new BuildException(ex);        }    }