10000 All projects can be locked now. by jsuereth · Pull Request #83 · scala/scala · GitHub
[go: up one dir, main page]

Skip to content

All projects can be locked now. #83

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 30, 2011
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ object ScalaBuild extends Build with Layers {
"Unlocks the locker layer of the compiler so that it will be recompiled on changed source files.")
lazy val lockFile: SettingKey[File] = SettingKey("lock-file",
"Location of the lock file compiling this project.")
// New tasks/settings specific to the scala build.
lazy val lock: TaskKey[Unit] = TaskKey("lock", "Locks this project so it won't be recompiled.")
lazy val unlock: TaskKey[Unit] = TaskKey("unlock", "Unlocks this project so it will be recompiled.")
lazy val makeDist: TaskKey[File] = TaskKey("make-dist",
"Creates a mini-distribution (scala home directory) for this build in a zip file.")
lazy val makeExplodedDist: TaskKey[File] = TaskKey("make-exploded-dist",
Expand Down Expand Up @@ -164,7 +167,9 @@ object ScalaBuild extends Build with Layers {
// Most libs in the compiler use this order to build.
compileOrder in Compile := CompileOrder.JavaThenScala,
lockFile <<= target(_ / "compile.lock"),
skip in Compile <<= lockFile.map(_ exists)
skip in Compile <<= lockFile.map(_ exists),
lock <<= lockFile map { f => IO.touch(f) },
unlock <<= lockFile map IO.delete
)

// --------------------------------------------------------------
Expand Down
0