-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the_java_plugin/java_plugin_resources.md
- Loading branch information
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |