- Gradle Effective Implementations Guide(Second Edition)
- Hubert Klein Ikkink
- 158字
- 2021-07-16 10:43:21
Task name abbreviation
Before we look at more Gradle command-line options, it is good to discuss a real-time save feature of Gradle: task name abbreviation. With task name abbreviation, we don't have to type the complete task name on the command line. We only have to type enough of the name to make it unique within the build.
In our first build, we only have one task, so the gradle h
command should work just fine. However, we didn't take the built-in help
task into account. So, to uniquely identify our helloWorld
task, we use the hello
abbreviation:
$ gradle -q hello Hello world.
We can also abbreviate each word in a CamelCase task name. For example, our helloWorld
task name can be abbreviated to hW
:
$ gradle -q hW Hello world.
This feature saves us the time spent in typing the complete task name and can speed up the execution of our tasks.
- 嵌入式Linux開發技術
- Linux運維實戰:CentOS7.6操作系統從入門到精通
- Social Media Mining with R
- Modern Web Testing with TestCafe
- Windows Server 2012 Hyper-V:Deploying the Hyper-V Enterprise Server Virtualization Platform
- Mobile-first Bootstrap
- 鴻蒙生態:開啟萬物互聯的智慧新時代
- 無蘋果不生活 OS X Mountain Lion隨身寶典
- SharePoint 2013 WCM Advanced Cookbook
- SharePoint 2013 應用開發實戰
- 嵌入式系統及其應用(第三版)
- Joomla! 3 Template Essentials
- Learning Magento 2 Administration
- OpenStack系統架構設計實戰
- RHCSARHCE 紅帽Linux認證學習指南(第7版)EX200 & EX300