mirror of
https://github.com/sbt/sbt.git
synced 2026-09-04 08:45:56 +02:00
Add xsbti.Reporter to required inputs instead of maxErrors.
This commit is contained in:
committed by
Mark Harrah
parent
b5a29987e6
commit
76943e82ed
@@ -9,7 +9,6 @@ import xsbti.Logger;
|
||||
public interface JavaCompiler
|
||||
{
|
||||
/** 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.*/
|
||||
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. */
|
||||
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.*/
|
||||
CompileOrder order();
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ package xsbti.compile;
|
||||
|
||||
import java.io.File;
|
||||
import xsbti.Maybe;
|
||||
import xsbti.Reporter;
|
||||
|
||||
/** Configures incremental recompilation. */
|
||||
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. */
|
||||
Maybe<CompileProgress> progress();
|
||||
|
||||
/** The reporter that should be used to report scala compilation to. */
|
||||
Reporter reporter();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user