import java.io.File;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
+import java.net.URISyntaxException;
import java.net.URL;
import java.util.Enumeration;
import java.util.Properties;
import junit.framework.TestCase;
import org.aspectj.bridge.AbortException;
+import org.aspectj.testing.util.TestUtil;
import org.aspectj.testing.util.TestUtil.TestError;
import org.aspectj.util.FileUtil;
import org.aspectj.weaver.tools.WeavingAdaptor;
* Aspects on ASPECTPATH but missing from CLASSPATH
*/
public void testIncompletePath() {
- URL aspectjrt = FileUtil.getFileURL(new File(ASPECTJRT));
- setSystemProperty(WeavingURLClassLoader.WEAVING_ASPECT_PATH, ADVICE_ASPECTS+File.pathSeparator+aspectjrt.toString());
+ setSystemProperty(WeavingURLClassLoader.WEAVING_ASPECT_PATH, ADVICE_ASPECTS+File.pathSeparator+new File(ASPECTJRT).toString());
setSystemProperty(WeavingURLClassLoader.WEAVING_CLASS_PATH, CLASSES_JAR);
WeavingURLClassLoader loader = new WeavingURLClassLoader(getClass().getClassLoader());
StringTokenizer st = new StringTokenizer(cp,File.pathSeparator);
while (st.hasMoreElements()) {
String cpElement = st.nextToken();
- System.out.println("Checking: "+cpElement+" exists? "+new File(cpElement).exists());
+// System.out.println("Checking: "+cpElement+" exists? "+new File(cpElement).exists());
}
}