From 696784054a5e3e39096f395b4757a0e466b37672 Mon Sep 17 00:00:00 2001 From: Stefan Zeiger Date: Tue, 8 Mar 2016 14:29:11 +0100 Subject: Add a `genprod` command to the sbt build --- build.sbt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'build.sbt') diff --git a/build.sbt b/build.sbt index 4600f46840..a78cf530c6 100644 --- a/build.sbt +++ b/build.sbt @@ -649,7 +649,14 @@ lazy val root = (project in file(".")) publishArtifact := false, publish := {}, publishLocal := {}, - commands ++= ScriptCommands.all + commands ++= ScriptCommands.all, + // Generate (Product|TupleN|Function|AbstractFunction)*.scala files. Once the ANT build is gone, + // we should move them into a managedSources dir instead of overwriting sources checked into git. + commands += Command.command("genprod") { state => + val dir = (((baseDirectory in ThisBuild).value) / "src" / "library" / "scala").getPath + genprod.main(Array(dir)) + state + } ) .aggregate(library, reflect, compiler, interactive, repl, replJline, replJlineEmbedded, scaladoc, scalap, partestExtras, junit, libraryAll, scalaDist).settings( -- cgit v1.2.3