Building and Testing with Gradle by Tim Berglund & Matthew McCullough

Building and Testing with Gradle by Tim Berglund & Matthew McCullough

Author:Tim Berglund & Matthew McCullough [Tim Berglund]
Language: eng
Format: epub
Tags: COMPUTERS / Programming Languages / Java
ISBN: 9781449304621
Publisher: O'Reilly Media
Published: 2011-07-04T16:00:00+00:00


The result is an ability to treat the Ant build’s contents as a Gradle task from anywhere else in the Gradle ecosystem. This is an implementation of the Facade pattern; all the utility of the Ant build is maintained, but all the value that Gradle brings to builds is additionally available to the buildmaster.

If we query Gradle for what Gradle tasks it knows about in Example 3-12, the answer will include the helloViaAttribute Ant target.

Example 3-13. Task list from the imported Ant project

$ gradle tasks :tasks Help tasks __________ dependencies - Displays the dependencies of root project 'ant-import-to-gradle'. help - Displays a help message projects - Displays the subprojects of root project 'ant-import-to-gradle'. properties - Displays the properties of root project 'ant-import-to-gradle'. tasks - Displays the tasks in root project 'ant-import-to-gradle'. Other tasks ___________ helloViaAttribute To see all tasks and more detail, run with --all.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.