phil swenson wrote:
>
> I have a gradle script to build a DBUtil.jar in my project. Inside this
> DBUtil.jar I have a method DBUtil.cleanDatabase() which is part of my
> product. I want to leverage this utility method from gradle so a developer
> can just type "gradle cleanDatabase".
>
If the DBUtil Jar ships with your product, JavaExec (or Project.exec {})
sounds like the best solution. It's just a few lines of code, so I don't
think it pays off to introduce a complicated new feature (partial script
compilation) for this use case.
--
Peter Niederwieser
Developer, Gradle
http://www.gradle.org
Trainer & Consultant, Gradleware
http://www.gradleware.com
Creator, Spock Framework
http://spockframework.org
--
View this message in context:
http://gradle.1045684.n5.nabble.com/Interpreted-gradle-script-tp4262811p4264419.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email