Do scala has a wrapper similar to http://antwrap.rubyforge.org/. I understand it would be quick easy to call ant methods 开发者_Python百科directly from the REPL of as a script but was wondering if there is a DSL or wrapper around ant?
I think SBT is what yo are looking for essentially. It uses Scala 2.7 syntax but most of the time you barely need to write any script at all as long as you stick to a directory structure. It uses Ant and Ivy underneath and has excellent integration with Ant+Ivy and Maven based projects. You should definitely check it out. It's super easy to get started.
Update:
So I didn't read closely enough of the question it seems. I believe Gradle can do what you want. Gradle also has a Scala plugin. The downside is that this requires learning yet another language just to be able to write a build script. In the end you'll be using Groovy to write a Gradle build script that invokes an Ant build.xml that calls into Java to build a Scala project for you. This sounds like a lot of work.
BTW, you always have the choice to use JRuby and antwrap together. I don't want to know how slow this will be though.
As far as I have checked: No, there isn't.
Most people seem to use SBT, which has a slightly different feature set, but does an excellent job at building/running/deploying/testing/packaging.
精彩评论