Permalink
Browse files

Re #1000631. Modified so the compilers are not reset when the classpa…

…th is invalid.

The reset in this case is useless, generates log and was making the tests fail on trully
headless systems.
  • Loading branch information...
1 parent 9125945 commit 597eab428f55d0d2de4baf62ed364f18cd737c9c @skyluc skyluc committed Oct 28, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 org.scala-ide.sdt.core/src/scala/tools/eclipse/ScalaProject.scala
@@ -401,10 +401,14 @@ class ScalaProject(val underlying: IProject) extends HasLogger {
def classpathHasChanged() {
classpathCheckLock.synchronized {
try {
- resetCompilers()
// mark as in progress
classpathHasBeenChecked= false
checkClasspath()
+ if (classpathValid) {
+ // no point to reset the compilers on an invalid classpath,
+ // it would not work anyway
+ resetCompilers()
+ }
}
}
}

0 comments on commit 597eab4

Please sign in to comment.