searchpath now handles url

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@956 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 7b10711c05
commit 7605aa3ab1
  1. 9
      jode/jode/JodeWindow.java

@ -25,6 +25,7 @@ import java.awt.event.*;
///#endif ///#endif
import java.io.*; import java.io.*;
import jode.bytecode.ClassInfo; import jode.bytecode.ClassInfo;
import jode.bytecode.SearchPath;
import jode.decompiler.*; import jode.decompiler.*;
public class JodeWindow public class JodeWindow
@ -241,10 +242,7 @@ public class JodeWindow
///#endif ///#endif
lastClassName = classField.getText(); lastClassName = classField.getText();
String cp = classpathField.getText(); ClassInfo.setClassPath(classpathField.getText());
cp = cp.replace(':', jode.bytecode.SearchPath.protocolSeparator);
cp = cp.replace(',', File.pathSeparatorChar);
ClassInfo.setClassPath(cp);
ImportHandler imports = new ImportHandler(); ImportHandler imports = new ImportHandler();
try { try {
ClassInfo clazz; ClassInfo clazz;
@ -291,7 +289,8 @@ public class JodeWindow
String cp = System.getProperty("java.class.path"); String cp = System.getProperty("java.class.path");
if (cp != null) if (cp != null)
win.setClasspath(cp.replace(File.pathSeparatorChar, ',')); win.setClasspath(cp.replace(File.pathSeparatorChar,
SearchPath.pathSeparatorChar));
String cls = win.getClass().getName(); String cls = win.getClass().getName();
win.setClass(cls); win.setClass(cls);

Loading…
Cancel
Save