mirror of https://github.com/sbt/sbt.git
Add xsbti.Reporter to required inputs instead of maxErrors.
This commit is contained in:
parent
550599bea0
commit
d0c1b536e8
|
|
@ -9,7 +9,6 @@ import xsbti.Logger;
|
||||||
public interface JavaCompiler
|
public interface JavaCompiler
|
||||||
{
|
{
|
||||||
/** Compiles Java sources using the provided classpath, output directory, and additional options.
|
/** Compiles Java sources using the provided classpath, output directory, and additional options.
|
||||||
* If supported, the number of reported errors should be limited to `maximumErrors`.
|
|
||||||
* Output should be sent to the provided logger.*/
|
* Output should be sent to the provided logger.*/
|
||||||
void compile(File[] sources, File[] classpath, Output output, String[] options, int maximumErrors, Logger log);
|
void compile(File[] sources, File[] classpath, Output output, String[] options, Logger log);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,9 +22,6 @@ public interface Options
|
||||||
/** The options to pass to the Java compiler other than the sources and classpath to use. */
|
/** The options to pass to the Java compiler other than the sources and classpath to use. */
|
||||||
String[] javacOptions();
|
String[] javacOptions();
|
||||||
|
|
||||||
/** The maximum number of errors that the Scala compiler should report.*/
|
|
||||||
int maxErrors();
|
|
||||||
|
|
||||||
/** Controls the order in which Java and Scala sources are compiled.*/
|
/** Controls the order in which Java and Scala sources are compiled.*/
|
||||||
CompileOrder order();
|
CompileOrder order();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ package xsbti.compile;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import xsbti.Maybe;
|
import xsbti.Maybe;
|
||||||
|
import xsbti.Reporter;
|
||||||
|
|
||||||
/** Configures incremental recompilation. */
|
/** Configures incremental recompilation. */
|
||||||
public interface Setup<Analysis>
|
public interface Setup<Analysis>
|
||||||
|
|
@ -26,4 +27,7 @@ public interface Setup<Analysis>
|
||||||
|
|
||||||
/** If returned, the progress that should be used to report scala compilation to. */
|
/** If returned, the progress that should be used to report scala compilation to. */
|
||||||
Maybe<CompileProgress> progress();
|
Maybe<CompileProgress> progress();
|
||||||
|
|
||||||
|
/** The reporter that should be used to report scala compilation to. */
|
||||||
|
Reporter reporter();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue