DmgSchemaAG dmg = new DmgSchemaAG();
baseWithMVWSchema.manageSchema(dmg);
MvwSchemaAG mvw = new MvwSchemaAG();
baseWithMVWSchema.manageSchema(mvw);
StringArrayList searchdirs = new StringArrayList();
if (srcdir.size() > 0){
searchdirs = new StringArrayList();
for(String dir: srcdir){
searchdirs.add(workspace.toString() + "/" + dir);
}
}
else{
searchdirs = srcdir;
}
schemaFinder = new ConfigFinder(searchdirs.iterator());
if (debug.booleanValue())
schemaFinder.debug(true);
schemaFinder.addSuffix(".dms");
// Add additional jars to search for DMS configs
if (jars.size() > 0){
for(String jar: jars){
schemaFinder.addJarPrefix(jar);
}
}
// schemaFinder.addJarEnding("DMSchema.jar");
schemaFinder.findConfigs();
schemaParser = new DmsSchemaParser(baseSchema, schemaFinder);
// schemaParser.parseSchema(baseWithMVWSchema, "mvw", true);
defManager = new MvwDefinitionManager(baseWithMVWSchema, schemaParser);
aggregateManager = new MvwDefinitionManager(baseWithMVWSchema, schemaParser);
configFinder = new ConfigFinder(searchdirs.iterator());
// Add additional jars to search for MVW configs
if (jars.size() > 0){
for(String jar: jars){
configFinder.addJarPrefix(jar);