lib/vx/builder/script/scala.rb in vx-builder-0.0.23 vs lib/vx/builder/script/scala.rb in vx-builder-0.0.24
- old
+ new
@@ -14,9 +14,17 @@
env.announce.tap do |i|
i << "echo Using scala #{scala env}"
end
+ env.init.tap do |i|
+ i << trace_sh_command("export SCALA_VERSION=#{scala env}")
+ end
+
+ env.install.tap do |i|
+ i << "if [[ -d project || -f build.sbt ]] ; then #{trace_sh_command "sbt ++#{scala env} update"} ; fi"
+ end
+
if env.source.script.empty?
env.script.tap do |i|
i << "if [[ -d project || -f build.sbt ]] ; then #{trace_sh_command "sbt ++#{scala env} test"} ; fi"
end
end