I realize you didn't write this but mind cleaning up this code?

    if (addedClasspath != "") settings.classpath.append(addedClasspath)