Bläddra i källkod

removing unused reliance on fork

tags/V1_2_1
wisberg 19 år sedan
förälder
incheckning
5329f5329e
1 ändrade filer med 1 tillägg och 20 borttagningar
  1. 1
    20
      testing/src/org/aspectj/testing/harness/bridge/CompilerRun.java

+ 1
- 20
testing/src/org/aspectj/testing/harness/bridge/CompilerRun.java Visa fil

@@ -389,12 +389,7 @@ public class CompilerRun implements IAjcRun {
sandbox.setAspectpath(aspectFiles, checkReadable, this);
}

// set bootclasspath if set for forking
AbstractRunSpec.Fork fork = spec.getFork();
String bootclasspath = fork.getJavaBootclasspath();
if (fork.fork() && (!LangUtil.isEmpty(bootclasspath))) {
sandbox.setBootclasspath(bootclasspath, this);
}
// XXX todo set bootclasspath if set for forking?
return true;
}

@@ -701,20 +696,6 @@ public class CompilerRun implements IAjcRun {
return result;
}

/** @return true if javac is available on the classpath */
// private static boolean haveJavac() { // XXX copy/paste from JavaCWrapper.java
// Class compilerClass = null;
// try {
// compilerClass = Class.forName("com.sun.tools.javac.Main");
// } catch (ClassNotFoundException ce1) {
// try {
// compilerClass = Class.forName("sun.tools.javac.Main");
// } catch (ClassNotFoundException ce2) {
// }
// }
// return (null != compilerClass);
// }

protected String compiler;

// use same command - see also IncCompiler.Spec.fresh

Laddar…
Avbryt
Spara