From f567832ee91ac15a0b08f2df81c5ad31cefedc0f Mon Sep 17 00:00:00 2001 From: DONG Date: Tue, 8 Sep 2015 22:00:12 +0200 Subject: [PATCH] Update the_java_plugin/java_plugin_resources.md --- the_java_plugin/java_plugin_resources.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/the_java_plugin/java_plugin_resources.md b/the_java_plugin/java_plugin_resources.md index bc4865f..61f39cc 100644 --- a/the_java_plugin/java_plugin_resources.md +++ b/the_java_plugin/java_plugin_resources.md @@ -1,9 +1,10 @@ ## 22.10.资源 -Java插件使用[Copy](https://docs.gradle.org/current/dsl/org.gradle.api.tasks.Copy.html)任务处理资源.它为项目每个source set增加了一个实例.可以参考[Section 15.6, "Copying files"](https://docs.gradle.org/current/userguide/working_with_files.html#sec:copying_files)获取关于copy任务的信息. -**表22.12.java插件-ProcessResources配置** +Java 插件使用 [Copy](https://docs.gradle.org/current/dsl/org.gradle.api.tasks.Copy.html) 任务处理资源. 它为项目每个 source set 都增加了一个实例. 可以参考[Section 15.6, "Copying files"](https://docs.gradle.org/current/userguide/working_with_files.html#sec:copying_files) 获取关于copy任务的信息. -任务属性 | 类型 | 默认值 +**表22.12.java 插件- ProcessResources 的属性** + +任务属性 | 类型 | 默认值 -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------- -srcDirs | Object.可以在[Section 15.5, “Specifying a set of input files”](https://docs.gradle.org/current/userguide/working_with_files.html#sec:specifying_multiple_files)中查看使用什么 | sourceSet.resources +srcDirs | Object.可以在[Section 15.5, “Specifying a set of input files”](https://docs.gradle.org/current/userguide/working_with_files.html#sec:specifying_multiple_files)中查看使用什么 | sourceSet.resources destinationDir | File.可以再[Section 15.1, “Locating files”](https://docs.gradle.org/current/userguide/working_with_files.html#sec:locating_files)查看使用什么 | sourceSet.output.resourcesDir