Skip to content
Discussion options

You must be logged in to vote

I fixed this by opening a transaction with the following self-defined ResourceSet:

     public class NonExternalResourceSetImpl extends ResourceSetImpl {
		public NonExternalResourceSetImpl() {
			super();
		}
		
		@Override
		public Resource getResource(URI uri, boolean loadOnDemand) {
			try {
				Resource resource = super.getResource(uri, loadOnDemand);
				return resource;
			} catch (Exception e) {
				System.out.println("getResource() for " + uri);
				Resource resource = super.getResource(uri, false);
				System.err.println("Cannot find " + uri + ", ignore loading this resource!");
				return resource;
			}
		}
	}

It sets loadOnDemand to false for files that cannot be found, effect…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ewoudwerkman
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants