if (actions==null) throw new JbpmException("actions is null in jbpmschema task");
// get the hibernate Configuration
Configuration configuration = AntHelper.getConfiguration(cfg,properties);
JbpmSchema jbpmSchema = new JbpmSchema(configuration);
SchemaExport schemaExport = new SchemaExport(configuration);
if (output!=null) schemaExport.setOutputFile(output);
if (delimiter!=null) schemaExport.setDelimiter(delimiter);
StringTokenizer tokenizer = new StringTokenizer(actions, ",");
while (tokenizer.hasMoreTokens()) {
String action = tokenizer.nextToken();
if ("drop".equalsIgnoreCase(action)) {
schemaExport.drop(!quiet, !text);
} else if ("create".equalsIgnoreCase(action)) {
schemaExport.create(!quiet, !text);
} else if ("clean".equalsIgnoreCase(action)) {
jbpmSchema.cleanSchema();
}
}
}