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

Commit

Permalink
Merge pull request #59 from gkossakowski/issue-44
Browse files Browse the repository at this point in the history
Restore binary compatibility of IncOptions constructor.
  • Loading branch information
gkossakowski committed Aug 1, 2014
2 parents a503927 + 8142326 commit 2a2f502
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/main/scala/com/typesafe/zinc/Settings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,21 @@ case class IncOptions(
recompileOnMacroDef: Boolean = DefaultIncOptions.recompileOnMacroDef,
nameHashing: Boolean = DefaultIncOptions.nameHashing
) {
@deprecated("Use the primary constructor instead.", "0.3.5.2")
def this(
transitiveStep: Int,
recompileAllFraction: Double,
relationsDebug: Boolean,
apiDebug: Boolean,
apiDiffContextSize: Int,
apiDumpDirectory: Option[File],
transactional: Boolean,
backup: Option[File]
) = {
this(transitiveStep, recompileAllFraction, relationsDebug, apiDebug, apiDiffContextSize,
apiDumpDirectory, transactional, backup, DefaultIncOptions.recompileOnMacroDef,
DefaultIncOptions.nameHashing)
}
def options: sbt.inc.IncOptions = {
sbt.inc.IncOptions(
transitiveStep,
Expand Down

0 comments on commit 2a2f502

Please sign in to comment.