package nl.nn.adapterframework.configuration;

import java.net.URL;

public class BasePathClassLoader extends ClassLoader {
	private String basePath;
	
	public BasePathClassLoader(ClassLoader parent, String basePath) {
		super(parent);
		this.basePath = basePath;
	}

	@Override
	public URL getResource(String name) {
		URL url = getParent().getResource(basePath + name);
		if (url != null) {
			return url;
		} else {
			return getParent().getResource(name);
		}
	}

}

@@ -38,19 +38,17 @@
 uration;
-%0D%0A%0D
+%0A
 %0Aimport 
@@ -60,19 +60,17 @@
 net.URL;
-%0D%0A%0D
+%0A
 %0Apublic 
@@ -116,17 +116,16 @@
 Loader %7B
-%0D
 %0A%09privat
@@ -146,12 +146,10 @@
 ath;
-%0D
 %0A%09
-%0D
 %0A%09pu
@@ -211,17 +211,16 @@
 ePath) %7B
-%0D
 %0A%09%09super
@@ -228,17 +228,16 @@
 parent);
-%0D
 %0A%09%09this.
@@ -256,23 +256,20 @@
 asePath;
-%0D
 %0A%09%7D
-%0D%0A%0D
+%0A
 %0A%09@Overr
@@ -271,17 +271,16 @@
 Override
-%0D
 %0A%09public
@@ -310,17 +310,16 @@
  name) %7B
-%0D
 %0A%09%09URL u
@@ -364,17 +364,16 @@
 + name);
-%0D
 %0A%09%09if (u
@@ -385,17 +385,16 @@
  null) %7B
-%0D
 %0A%09%09%09retu
@@ -400,17 +400,16 @@
 urn url;
-%0D
 %0A%09%09%7D els
@@ -411,17 +411,16 @@
 %7D else %7B
-%0D
 %0A%09%09%09retu
@@ -456,20 +456,15 @@
 me);
-%0D
 %0A%09%09%7D
-%0D
 %0A%09%7D
-%0D%0A%0D
+%0A
 %0A%7D
-%0D
 %0A

Fix newlines