Jesse
Jesse

Reputation: 47

Using Gradle (build.gradle) to run ANT build.xml file

What am I doing wrong?? It's not running my build.xml file.

Also, how would I be able to express the existing Ant logic in Gradle? Ex: Changing a build.xml to build.gradle and be able to have the same out put when compiled.

--Stacktrace

Upvotes: 2

Views: 6146

Answers (2)

Benjamin Muschko
Benjamin Muschko

Reputation: 33476

Gradle allows you to import a full Ant build.

ant.importBuild 'build.xml'

Effectively this turns Ant targets into Gradle tasks which can be executed from the command line. Please see the Gradle user guide for more information.

Upvotes: 2

Sumit Singh
Sumit Singh

Reputation: 21

It may happen that your build.xml may not be on the classpath. Please check it once. Thanks

Upvotes: 1

Related Questions