- 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.
- Kubernetes修煉手冊
- Citrix XenApp Performance Essentials
- 嵌入式Linux開發技術
- 從零開始寫Linux內核:一書學透核心原理與實現
- Linux從零開始學(視頻教學版)
- SOA實踐者說
- 嵌入式應用程序設計綜合教程(微課版)
- 高性能Linux服務器構建實戰:運維監控、性能調優與集群應用
- 開源安全運維平臺OSSIM疑難解析:入門篇
- Docker+Kubernetes應用開發與快速上云
- Linux服務器配置與管理
- NetDevOps入門與實踐
- Linux基礎使用與案例
- Windows 8實戰從入門到精通(超值版)
- 新編電腦辦公(Windows 10+ Office 2013版)從入門到精通