官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 广南县| 察哈| 龙南县| 青岛市| 永修县| 黔江区| 公主岭市| 沾化县| 怀来县| 宾川县| 合作市| 城步| 苍溪县| 会泽县| 永宁县| 珠海市| 呼伦贝尔市| 报价| 六枝特区| 永修县| 耿马| 左权县| 铜川市| 民和| 玛多县| 郓城县| 嘉兴市| 墨玉县| 景宁| 当阳市| 文化| 张家界市| 宁河县| 南平市| 兰溪市| 南岸区| 托克逊县| 曲麻莱县| 辽阳县| 任丘市| 昌都县|