Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Commit

Permalink
Restore binary backwards compatibility of Inputs.create method.
Browse files Browse the repository at this point in the history
The `Inputs.create` method has been modified by
60c7e4d to add support for IncOptions.
That broke both binary and source compatibility. Let's restore the old
signature for Inputs.create and deprecate it at the same time.

Fixes another instance of #44.
  • Loading branch information
gkossakowski committed Aug 20, 2014
1 parent 2a2f502 commit 3b70bee
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/main/scala/com/typesafe/zinc/Inputs.scala
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,20 @@ object Inputs {
mirrorAnalysis = mirrorAnalysisCache
)

@deprecated("Use the variant that takes `incOptions` parameter, instead.", "0.3.5.3")
def create(
classpath: JList[File],
sources: JList[File],
classesDirectory: File,
scalacOptions: JList[String],
javacOptions: JList[String],
analysisCache: File,
analysisMap: JMap[File, File],
compileOrder: String,
mirrorAnalysisCache: Boolean): Inputs =
create(classpath, sources, classesDirectory, scalacOptions, javacOptions,
analysisCache, analysisMap, compileOrder, IncOptions(), mirrorAnalysisCache)

/**
* By default the cache location is relative to the classes directory (for example, target/classes/../cache/classes).
*/
Expand Down

0 comments on commit 3b70bee

Please sign in to comment.