I would like to checkout a tag from SVN and then build an RPM. I’ve written the checkout as a Gradle task, and the RPM build is in an existing Ant target. I want the Gradle task to precede the Ant target. Here are the definitions:
Gradle
ant.importBuild "build.xml"
task checkout << {
…
}
Ant (build.xml)
<target name="build-tarball" depends="build-war">
…
</target>
<target name="build-rpm" depends="checkout,build-tarball">
…
</target>
When I run the Ant target build-rpm from Gradle, I want the Gradle checkout task to run, then the build-tarball Ant target, and then the build-rpm target. Unfortunately, checkout never happens, and build-tarball (with its dependencies) starts running. Naturally it fails.
Any insight into how to get the dependency sequence to be honored is appreciated.
Thanks.