Skip to content

Commit 8d3cdba

Browse files
author
mgricken
committed
Disabling ConcJUnit with the "enable/disable" checkbox didn't work.
M src/edu/rice/cs/drjava/DrJava.java git-svn-id: file:///tmp/test-svn/trunk@5100 fe72c1cf-3628-48e9-8b72-1c46755d3cff
1 parent 38289eb commit 8d3cdba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drjava/src/edu/rice/cs/drjava/DrJava.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public static void configureAndLoadDrJavaRoot(String[] args) {
180180
}
181181
boolean restart = (getConfig().getSetting(MASTER_JVM_ARGS).length() > 0)
182182
|| (!"".equals(masterMemory) && !OptionConstants.heapSizeChoices.get(0).equals(masterMemory))
183-
|| junitLocationConfigured;
183+
|| (DrJava.getConfig().getSetting(OptionConstants.RT_CONCJUNIT_LOCATION_ENABLED) && junitLocationConfigured);
184184
_log.log("restart: "+restart);
185185

186186
LinkedList<String> classArgs = new LinkedList<String>();
@@ -205,7 +205,8 @@ public static void configureAndLoadDrJavaRoot(String[] args) {
205205
// extend classpath if JUnit/ConcJUnit location specified
206206
_log.log("JVMBuilder: classPath = "+jvmb.classPath());
207207
ArrayList<File> extendedClassPath = new ArrayList<File>();
208-
if (junitLocationConfigured) {
208+
if (DrJava.getConfig().getSetting(OptionConstants.RT_CONCJUNIT_LOCATION_ENABLED) &&
209+
junitLocationConfigured) {
209210
extendedClassPath.add(junitLocation);
210211
}
211212
for(File f: jvmb.classPath()) { extendedClassPath.add(f); }

0 commit comments

Comments
 (0)