implement embedded interface

This commit is contained in:
Mark Harrah 2012-04-18 16:01:45 -04:00
parent 5d4b89c965
commit acc03cb293
2 changed files with 6 additions and 5 deletions

View File

@ -52,9 +52,10 @@ public interface IncrementalCompiler<Analysis, ScalaCompiler>
* to create a ScalaCompiler for incremental compilation. It is the client's responsibility to manage compiled jars for * to create a ScalaCompiler for incremental compilation. It is the client's responsibility to manage compiled jars for
* different Scala versions. * different Scala versions.
* *
* @param label A brief name describing the source component for use in error messages
* @param sourceJar The jar file containing the compiler interface sources. These are published as sbt's compiler-interface-src module. * @param sourceJar The jar file containing the compiler interface sources. These are published as sbt's compiler-interface-src module.
* @param targetJar Where to create the output jar file containing the compiled classes. * @param targetJar Where to create the output jar file containing the compiled classes.
* @param instance The ScalaInstance to compile the compiler interface for. * @param instance The ScalaInstance to compile the compiler interface for.
* @param log The logger to use during compilation. */ * @param log The logger to use during compilation. */
void compileInterfaceJar(File sourceJar, File targetJar, ScalaInstance instance, Logger log); void compileInterfaceJar(String label, File sourceJar, File targetJar, File interfaceJar, ScalaInstance instance, Logger log);
} }

View File

@ -17,8 +17,8 @@ public interface Setup<Analysis>
/** If true, no sources are actually compiled and the Analysis from the previous compilation is returned.*/ /** If true, no sources are actually compiled and the Analysis from the previous compilation is returned.*/
boolean skip(); boolean skip();
/** The directory used to cache information across compilations. /** The file used to cache information across compilations.
* This directory can be removed to force a full recompilation. * This file can be removed to force a full recompilation.
* The directory should be unique and not shared between compilations. */ * The file should be unique and not shared between compilations. */
File cacheDirectory(); File cacheFile();
} }