* @param filePath an individual Schema to generate code for.
*/
private void processFile(final String filePath) {
log("Processing " + filePath);
try {
Generator ddlgen = GeneratorFactory.createDDLGenerator(
_databaseEngine, _globalProperties, _databaseEngineProperties);
Mapping mapping = new Mapping();
mapping.loadMapping(filePath);
new MappingUnmarshaller().loadMappingOnly(mapping);
// TODO: Joachim 2007-09-07 the InternalContext should be set into the unmarshaller!
ddlgen.setMapping(mapping);
ddlgen.generateDDL(_outputStream);
} catch (IOException e) {
throw new BuildException ("Problem finding the Castor JDO mapping file "
+ _mappingFile.getAbsolutePath(), e);
} catch (MappingException e) {
throw new BuildException ("Problem loading the Castor JDO mapping file "