mirror of https://github.com/sbt/sbt.git
First set of refactorings from review.
* Split Java analyzing compile into its own class. * MixedAnalyzingCompiler now only does the mixing * Start moving methods around to more-final locations * Static analyzingCompile method now constructs a MixedAnalyzingCOmpiler and delegates to incremental compile.
This commit is contained in:
parent
4a42aa0027
commit
8e81aabed0
|
|
@ -1,5 +1,10 @@
|
||||||
package xsbti.compile;
|
package xsbti.compile;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An API for reporting when files are being compiled.
|
||||||
|
*
|
||||||
|
* Note; This is tied VERY SPECIFICALLY to scala.
|
||||||
|
*/
|
||||||
public interface CompileProgress {
|
public interface CompileProgress {
|
||||||
void startUnit(String phase, String unitPath);
|
void startUnit(String phase, String unitPath);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -44,8 +44,18 @@ public interface IncrementalCompiler<Analysis, ScalaCompiler>
|
||||||
* @param instance The Scala version to use
|
* @param instance The Scala version to use
|
||||||
* @param interfaceJar The compiler interface jar compiled for the Scala version being used
|
* @param interfaceJar The compiler interface jar compiled for the Scala version being used
|
||||||
* @param options Configures how arguments to the underlying Scala compiler will be built.
|
* @param options Configures how arguments to the underlying Scala compiler will be built.
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
ScalaCompiler newScalaCompiler(ScalaInstance instance, File interfaceJar, ClasspathOptions options, Logger log);
|
ScalaCompiler newScalaCompiler(ScalaInstance instance, File interfaceJar, ClasspathOptions options, Logger log);
|
||||||
|
/**
|
||||||
|
* Creates a compiler instance that can be used by the `compile` method.
|
||||||
|
*
|
||||||
|
* @param instance The Scala version to use
|
||||||
|
* @param interfaceJar The compiler interface jar compiled for the Scala version being used
|
||||||
|
* @param options Configures how arguments to the underlying Scala compiler will be built.
|
||||||
|
*/
|
||||||
|
ScalaCompiler newScalaCompiler(ScalaInstance instance, File interfaceJar, ClasspathOptions options);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Compiles the source interface for a Scala version. The resulting jar can then be used by the `newScalaCompiler` method
|
* Compiles the source interface for a Scala version. The resulting jar can then be used by the `newScalaCompiler` method
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue