Skip to content

Instantly share code, notes, and snippets.

@mads-hartmann
Created August 20, 2010 14:04
Show Gist options
  • Save mads-hartmann/540381 to your computer and use it in GitHub Desktop.
Save mads-hartmann/540381 to your computer and use it in GitHub Desktop.
import sbt._
class Project(info: ProjectInfo) extends DefaultProject(info)
{
lazy val sctags = compileWithSctags
protected def compileWithSctags = task {
val compilerConfig = new MainCompileConfig {
override def baseCompileOptions = CompileOption("-Xplugin:sctags_2.8.0.Beta1-RC2-1.0.jar") :: super.baseCompileOptions.toList
}
new CompileConditional(compilerConfig, buildCompiler).run
} dependsOn(clean) describedAs("Prepare compiler to run with sctags plugin")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment