Skip to content

Commit

Permalink
Bug fix for java plugin and logging
Browse files Browse the repository at this point in the history
  • Loading branch information
DONGChuan committed Aug 10, 2015
1 parent 1828a22 commit ed1644d
Show file tree
Hide file tree
Showing 36 changed files with 70 additions and 202 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

* [Github托管地址](https://github.com/DONGChuan/GradleUserGuide)

* [原文地址](https://docs.gradle.org/current/userguide/userguide.html) 请注意 目前翻译版本是 **2.4**
* [原文地址](https://docs.gradle.org/current/userguide/userguide.html)

* 我们会开放权限给每一个加入的伙伴 (翻译或者校对),请提前邮箱联系 [email protected]
----
Expand Down
50 changes: 30 additions & 20 deletions SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,31 +111,41 @@
* [File collections](working_with_files/file_collections.md)
* [使用 Ant 插件](using_ant_from_gradle/using_ant_from_gradle.md)
* [使用 Ant 任务和 Ant 类型的构建](using_ant_from_gradle/using_ant_tasks_and_types_in_your_build.md)
* [在构建中使用自定义Ant任务](using_ant_from_gradle/using_custom_ant_tasks_in_your_build.md)
* [导入一个Ant构建](using_ant_from_gradle/importing_an_ant_build.md)
* [Ant的属性与引用](using_ant_from_gradle/ant_properties_and_references.md)
* [在构建中使用自定义 Ant 任务](using_ant_from_gradle/using_custom_ant_tasks_in_your_build.md)
* [导入一个 Ant 构建](using_ant_from_gradle/importing_an_ant_build.md)
* [Ant 的属性与引用](using_ant_from_gradle/ant_properties_and_references.md)
* [API](using_ant_from_gradle/API.md)
* [Logging](logging/logging.md)
* [选择日志等级](logging/choosing_a_log_level.md)
* [编写自己的日志信息](logging/writing_your_own_log_messages.md)
* [外部工具和库的log](logging/logging_from_external_tools_and_libraries.md)
* [改变Gradle记录的内容](logging/changing_what_gradle_logs.md)
* [Java插件](the_java_plugin/README.md)
* [使用](the_java_plugin/Useage.md)
* [资源集](the_java_plugin/Source sets.md)
* [任务](the_java_plugin/Test.md)
* [项目布局](the_java_plugin/project_layout.md)
* [依赖管理](the_java_plugin/Dependency management.md)
* [公共配置](the_java_plugin/Convention properties.md)
* [使用资源集工作](the_java_plugin/Working with source sets.md)
* [Javadoc](the_java_plugin/Javadoc.md)
* [清除](the_java_plugin/Clean.md)
* [资源](the_java_plugin/Resources.md)
* [编译Java](the_java_plugin/CompileJava.md)
* [增量Java编译](the_java_plugin/Incremental Java compilation.md)
* [测试](the_java_plugin/Test.md)
* [Jar](the_java_plugin/Jar.md)
* [上传](the_java_plugin/Uploading.md)
* [改变 Gradle 记录的内容](logging/changing_what_gradle_logs.md)
* [Java 插件](the_java_plugin/README.md)
* [使用](the_java_plugin/java_plugin_usage.md)
* [资源集](the_java_plugin/java_plugin_source_sets.md)
* [任务](the_java_plugin/java_plugin_tasks.md)
* [项目布局](the_java_plugin/java_plugin_project_layout.md)
* [依赖管理](the_java_plugin/java_plugin_dependency_management.md)
* [公共配置](the_java_plugin/java_plugin_convention_properties.md)
* [使用资源集工作](the_java_plugin/java_plugin_working_with_source_sets.md)
* [Javadoc](the_java_plugin/java_plugin_javadoc.md)
* [清除](the_java_plugin/java_plugin_clean.md)
* [资源](the_java_plugin/java_plugin_resources.md)
* [编译 Java](the_java_plugin/java_plugin_compile_java.md)
* [增量 Java 编译](the_java_plugin/Ijava_plugin_incremental_java_compilation.md)
* [测试](the_java_plugin/java_plugin_test.md)
* [测试执行](the_java_plugin/test_execution.md)
* [测试调试](the_java_plugin/test_debugging.md)
* [测试过滤](the_java_plugin/test_filtering.md)
* [通过系统属性执行单独测试](the_java_plugin/test_single_test_execution_via_system_properties.md)
* [测试检测](the_java_plugin/test_detection.md)
* [测试分组](the_java_plugin/test_grouping.md.md)
* [测试报告](the_java_plugin/test_reporting.md)
* [TestNG 的参数化方法和报告](the_java_plugin/test_testNG_parameterized_methods_and_reporting.md.md)
* [公共值](the_java_plugin/test_convention_values.md)
* [Jar](the_java_plugin/java_plugin_jar.md)
* [Manifest](the_java_plugin/java_plugin_manifest.md)
* [上传](the_java_plugin/java_plugin_uploading.md.md)
* [War插件](the_war_plugin/the_war_plugin.md)
* [使用](the_war_plugin/usage.md)
* [任务](the_war_plugin/tasks.md)
Expand Down
2 changes: 1 addition & 1 deletion logging/logging.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Logging

Log是构建的主要"UI"工具.如果日志太过冗长,那么真正的警告和问题会隐藏其中,另一方面,如果你出错了,你又需要搞清楚相关错误信息.Gradle提供了6个等级的log,[表17.1.Logs Level]()所示.出了那些你可能经常看到的,还有两个是Gradle特定级别的日志,被称为*QUIET**LIFECYCLE*.后者是默认的,并用于报告生成进度.
Log 是构建的主要"UI"工具. 如果日志太过冗长, 那么真正的警告和问题会隐藏其中, 另一方面, 如果你出错了,你又需要搞清楚相关错误信息. Gradle 提供了6个等级的 log, [表17.1.Logs Level]()所示.出了那些你可能经常看到的, 还有两个是 Gradle 特定级别的日志,被称为*QUIET**LIFECYCLE*.后者是默认的, 并用于报告生成进度.

**表17.1.Logs Level**

Expand Down
6 changes: 5 additions & 1 deletion logging/logging_from_external_tools_and_libraries.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# 从外部工具和库记录日志

在内部,Gradle使用Ant和lvy,都有自己的log系统,Gradle重定向他们的日志输出到Gradle日志系统.除了Ant/lvy的`TRACE`级别的日志,映射到Gradle的`DEBUG`级别,其余的都会有一个1:1的映射从Ant/lvy的日志等级到Gradlede 的日志等级.这意味着默认的Gradle日志级别将不会显示任何的Ant /lvy的输出,除非它是一个错误或警告。
在内部, Gradle 使用 Ant 和 lvy ,
都有自己的 log 系统,
Gradle 重定向他们的日志输出到 Gradle 日志系统.
除了Ant/lvy的`TRACE`级别的日志, 映射到Gradle的`DEBUG`级别, 其余的都会有一个1:1的映射从 Ant/lvy 的日志等级到 Gradle 的日志等级.
这意味着默认的 Gradle 日志级别将不会显示任何的 Ant /lvy 的输出, 除非它是一个错误或警告.

有许多工具仍然使用标准输出记录,默认的,Gradle将标准输出重定向到`QUIET`的日志级别和标准错误的`ERROR`级别.该行为是可配置的.该项目对象提供了一个[LoggerManager](https://docs.gradle.org/current/javadoc/org/gradle/api/logging/LoggingManager.html),当你构建脚本进行评估的时候,允许你改变标准输出或错误重定向的日志级别。

Expand Down
19 changes: 0 additions & 19 deletions the_java_plugin/Changing the project layout.md

This file was deleted.

43 changes: 0 additions & 43 deletions the_java_plugin/Convention properties.md

This file was deleted.

33 changes: 0 additions & 33 deletions the_java_plugin/Dependency management.md

This file was deleted.

24 changes: 0 additions & 24 deletions the_java_plugin/Dependency_management.md

This file was deleted.

11 changes: 0 additions & 11 deletions the_java_plugin/Javadoc.md

This file was deleted.

14 changes: 0 additions & 14 deletions the_java_plugin/Project_layout.md

This file was deleted.

7 changes: 0 additions & 7 deletions the_java_plugin/Source sets.md

This file was deleted.

7 changes: 0 additions & 7 deletions the_java_plugin/Uploading.md

This file was deleted.

11 changes: 0 additions & 11 deletions the_java_plugin/Useage.md

This file was deleted.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## 22.12.增量Java编译

从Gradle2.1开始,可以使用Java增量编译,此功能正在孵化,参见[JavaCompile](https://docs.gradle.org/current/dsl/org.gradle.api.tasks.compile.JavaCompile.html)如何启用这个功能. 增量编译的主要目标如下:
- 避免在没必要编译的java编译资源上浪费时间.这意味着更快构建,尤其是在改变一些class与jar的时候,不需要再次编译那些不依赖这些class与jar的文件.
- 尽可能地少输出class.类不需要重新编译意味着保持输出目录不变。一个示例场景中,真正使用JRebel的真正有用的是 - 越少的输出类被改变,JVM可以使用越快刷新。
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
## 22.14.Jar

jar任务创建包含项目的类文件和资源的JAR文件.JAR文件在archives的依赖配置中是作为一个artifact的声明.这意味着,JAR是相关项目一个可用的classpath.如果您上传您的项目到存储库,这个JAR会被声明为依赖描述符的一部分.可以再[Section 15.8, “Creating archives”](https://docs.gradle.org/2.4/userguide/working_with_files.html#sec:archives)[Chapter 51, Publishing artifacts](https://docs.gradle.org/2.4/userguide/artifact_management.html)中了解更多关于JAR与archives与artifact configurations协同工作的更多细节.
Loading

0 comments on commit ed1644d

Please sign in to comment.