Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add a build step to a Play 2.0 (scala/sbt) project

I'm writing a Play 2.0 project in Scala, and I need to run a command-line tool before SBT starts deciding what to compile (the command will create/replace a .scala file in the project with one generated from some data). I'm a complete novice in SBT, and some quick time on Google didn't turn up anything promising. How should I do this?

like image 294
Ben Dilts Avatar asked Feb 12 '13 06:02

Ben Dilts


1 Answers

For creating sources prior to compilation, have a look at source generators:

http://www.scala-sbt.org/0.12.3/docs/Howto/generatefiles.html

like image 183
Manuel Bernhardt Avatar answered Oct 15 '22 18:10

Manuel Bernhardt