Skip to content

Commit

Permalink
Update the_java_plugin/java_plugin_compile_java.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DONGChuan committed Sep 8, 2015
1 parent f567832 commit 13c67d1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions the_java_plugin/java_plugin_compile_java.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ java插件为项目的每一个source set增加了一个[JavaCompile](https://do

**表22.13.java插件-编译配置**

任务属性 | 类型 | 默认值
任务属性 | 类型 | 默认值
-------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------
classpath | [FileCollection](https://docs.gradle.org/current/javadoc/org/gradle/api/file/FileCollection.html) | sourceSet.compileClasspath
source | [FileTree](https://docs.gradle.org/current/javadoc/org/gradle/api/file/FileTree.html),可以在[Section 15.6, “Copying files”](https://docs.gradle.org/current/userguide/working_with_files.html#sec:copying_files)中查看可以设置什么. | sourceSet.java
destinationDir | File. | sourceSet.output.classesDir
classpath | [FileCollection](https://docs.gradle.org/current/javadoc/org/gradle/api/file/FileCollection.html) | sourceSet.compileClasspath
source | [FileTree](https://docs.gradle.org/current/javadoc/org/gradle/api/file/FileTree.html),可以在[Section 15.6, “Copying files”](https://docs.gradle.org/current/userguide/working_with_files.html#sec:copying_files)中查看可以设置什么. | sourceSet.java
destinationDir | File.| sourceSet.output.classesDir

默认情况下java的编译运行在Gradle中的进程.设置option.fork为true会使编译在一个单独的进程中运行,在Ant中运行 javac任务意味着一个新进程将被拆封为多个编译任务,这会减慢编译。相反的,Gradle的直接编译集成(见上文)在编译过程中将尽可能地重复使用相同的进程.在所有情况下由options.forkOptions指定的选项会被实现.
默认情况下 java 的编译运行在 Gradle 中的进程. 设置 option.fork 为 true 会使编译在一个单独的进程中运行,在Ant中运行 javac任务意味着一个新进程将被拆封为多个编译任务,这会减慢编译。相反的,Gradle的直接编译集成(见上文)在编译过程中将尽可能地重复使用相同的进程.在所有情况下由options.forkOptions指定的选项会被实现.

0 comments on commit 13c67d1

Please sign in to comment.