private Database readSingleSchemaFile ( DatabaseIO reader , File schemaFile ) { Database model = null ; if ( ! schemaFile . isFile ( ) ) { log ( "Path " + schemaFile . getAbsolutePath ( ) + " does not denote a schema file" , Project . MSG_ERR ) ; } else if ( ! schemaFile . canRead ( ) ) { log ( "Could not read schema file " + schemaFile . getAbsolutePath ( ) , Project . MSG_ERR ) ; } else { try { model = reader . read ( schemaFile ) ; log ( "Read schema file " + schemaFile . getAbsolutePath ( ) , Project . MSG_INFO ) ; } catch ( Exception ex ) { throw new BuildException ( "Could not read schema file " + schemaFile . getAbsolutePath ( ) + ": " + ex . getLocalizedMessage ( ) , ex ) ; } } return model ; }
Reads a single schema file .