Package org.apache.jetspeed.maven.plugins.db.ddlutils.io

Examples of org.apache.jetspeed.maven.plugins.db.ddlutils.io.DatabaseIO


        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);
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.maven.plugins.db.ddlutils.io.DatabaseIO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.