String old = project.getProperty("build.compiler"); project.setProperty("build.compiler", "scala.tools.scalac4ant.AntAdaptor"); super.execute(); if (old == null) project.setProperty("build.compiler", "modern"); else project.setProperty("build.compiler", old);
Project project = getProject(); String old = project.getProperty("build.compiler"); project.setProperty("build.compiler", "scala.tools.scalac4ant.AntAdaptor"); super.execute(); if (old == null) project.setProperty("build.compiler", "modern"); else project.setProperty("build.compiler", old);
    public void execute() {        String old = project.getProperty("build.compiler");        project.setProperty("build.compiler", "scala.tools.scalac4ant.AntAdaptor");        super.execute();        if (old == null)            project.setProperty("build.compiler", "modern");        else            project.setProperty("build.compiler", old);    }