return schemaFiles;
}
protected Database readModel(File[] files) throws MojoExecutionException
{
DatabaseIO reader = new DatabaseIO();
Database model = null;
reader.setValidateXml(validateXml);
reader.setUseInternalDtd(useInternalDtd);
for (int idx = 0; (files != null) && (idx < files.length); idx++)
{
Database curModel = null;
if (!files[idx].isFile())
{
throw new MojoExecutionException("Path " + files[idx].getAbsolutePath() + " does not denote a file");
}
else if (!files[idx].canRead())
{
throw new MojoExecutionException("Could not read schema file " + files[idx].getAbsolutePath());
}
else
{
try
{
curModel = reader.read(files[idx]);
getLog().info("Read schema file " + files[idx].getAbsolutePath());
}
catch (Exception ex)
{
throw new MojoExecutionException("Could not read schema file "+files[idx].getAbsolutePath()+": "+ex.getLocalizedMessage(), ex);