Skip to content
Permalink
Browse files
Make sure we don't use a static catalog as catalogs from one module w…
…ill spill into others
  • Loading branch information
dkulp committed May 22, 2014
1 parent 5ac1d70 commit df53775f327284b3a74a749bab634d43d4df7ea9
Showing 1 changed file with 8 additions and 2 deletions.
@@ -379,10 +379,16 @@ private int run(String[] args, final XJCErrorListener listener, final File file)
}
final ClassLoader loader = new URLClassLoader(urls.toArray(new URL[urls.size()]));

CatalogManager.getStaticManager().setIgnoreMissingProperties(true);
final CatalogResolver catResolver = new CatalogResolver(true) {
CatalogManager cm = new CatalogManager();
cm.setUseStaticCatalog(false);
cm.setIgnoreMissingProperties(true);
final CatalogResolver catResolver = new CatalogResolver(cm) {
public InputSource resolveEntity(String publicId, String systemId) {
String resolved = getResolvedEntity(publicId, systemId);
//System.out.println("Resolved: ");
//System.out.println(" : " + publicId);
//System.out.println(" : " + systemId);
//System.out.println(" -> " + resolved);
if (resolved == null) {
return null;
}

0 comments on commit df53775

Please sign in to comment.