Skip to content

Commit fbcacd4

Browse files
committed
init
0 parents  commit fbcacd4

1,128 files changed

Lines changed: 94264 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_book

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# TutorialsPoint Java źźĘő˝ĚłĚ

SUMMARY.md

Lines changed: 667 additions & 0 deletions
Large diffs are not rendered by default.

Thumbs.db

3.61 MB
Binary file not shown.

ant/100.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Ant Junit集成 - ANT
2+
3+
JUnit 是基于Java常用的单元测试框架进行开发。它是易于使用和易于延伸。有许多[JUnit](http://www.yiibai.com/junit/)扩展可用。如果你不熟悉Junit的,你应该从www.junit.org下载JUnit和阅读JUnit的使用手册。
4+
5+
本教程讨论了关于执行使用Ant 的JUnit测试。Ant 通过这个简单Junit 的任务变得简单。
6+
7+
以下展示的是JUnit 任务的属性。
8+
9+
| Properties | 描述 |
10+
| --- | --- |
11+
| dir | Where to invoke the VM from. This is ignored when **fork** is disabled. |
12+
| jvm | Command used to invoke the JVM. This is ignored when **fork** is disabled. |
13+
| fork | Runs the test in a separate JVM |
14+
| errorproperty | The name of the property to set if there is a Junit error |
15+
| failureproperty | The name of the property to set if there is a Junit failure |
16+
| haltonerror | Stops execution when a test error occurs |
17+
| haltonfailure | Stops execution when a failure occurs |
18+
| printsummary | Advices Ant to display simple statistics for each test |
19+
| showoutput | Adivces Ant tosend the output to its logs and formatters |
20+
| tempdir | Path to the temporary file that Ant will use |
21+
| timeout | Exits the tests that take longer to run than this setting (in milliseconds). |
22+
23+
让我们继续的Hello World fax web应用程序的主题,并添加一个JUnit目标。
24+
25+
下面的例子展示了一个简单的JUnit测试执行
26+
27+
```
28+
<target name="unittest">
29+
<junit haltonfailure="true" printsummary="true">
30+
<test name="com.yiibai.UtilsTest"/>
31+
</junit>
32+
</target>
33+
```
34+
35+
上面的例子显示的Junit对com.yiibai.UtilsTest JUnit类执行。运行上面会产生下面的输出
36+
37+
```
38+
test:
39+
[echo] Testing the application
40+
[junit] Running com.yiibai.UtilsTest
41+
[junit] Tests run: 12, Failures: 0, Errors: 0, Time elapsed: 16.2 sec
42+
BUILD PASSED
43+
```
44+

ant/82.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# ANT
2+

ant/83.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Apache ANT 教程
2+
3+
4+
Apache Ant是由Apache软件基金会一个基于Java的构建工具。Apache Ant的构建文件是用XML编写,并采取了开放的标准,便于携带和易于理解的XML性质的优势。
5+
6+
本教程将教你如何使用Apache Ant 自动构建和部署过程。

ant/84.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# 读者
2+
3+
本教程是专为初学者,帮助他们了解了Apache Ant工具来自动构建和部署过程的基本功能。
4+

ant/85.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# 必备要求
2+
3+
我们假设你有软件开发知识使用编程语言,Java编程和软件构建和部署过程。
4+

ant/86.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# ANT简介 - ANT
2+
3+
## 为什么你需要一个构建工具?
4+
5+
理解Apache Ant定义之前,必须了解需要一个构建工具。为什么我需要Ant,或者更具体地说,为什么我需要一个构建工具?
6+
7+
花你一天做以下工作?
8+
9+
* 编译代码
10+
11+
* 打包二进制文件
12+
13+
* 部署二进制文件到测试服务器
14+
15+
* 测试您的代码更改
16+
17+
* 从一个位置复制代码到另一个地方
18+
19+
如果你回答是肯定的上述任何一项,那么现在是时候实现过程的自动化。
20+
21+
平均而言,开发人员花费3小时(工作日超出 8小时)做这样构建和部署平凡的任务。难道你会很高兴多要回3个小时?
22+
23+
Apache Ant是可以在命令行中执行一个操作系统构建和部署工具。
24+
25+
## Apache Ant的历史
26+
27+
* Ant 代表着另一种简洁的工具
28+
29+
* Ant 是由詹姆斯·邓肯·戴维森(Tomcat的原作者)创建的,在他欧洲飞往美国时。
30+
31+
* Ant 最初是用来构建Tomcat,被捆绑Tomcat作为分发的一部分
32+
33+
* Ant 诞生制造工具出有关的问题和复杂性
34+
35+
* Ant 于2000年晋升为在Apache的一个独立项目。
36+
37+
* Apache Ant(截至2011年7月)的当前版本是1.8.2
38+
39+
* NAnt 是.NET构建工具,它类似于Ant,但用于构建.NET应用程序
40+
41+
## Apache Ant功能
42+
43+
* Ant 是最完整的Java构建和部署工具。
44+
45+
* Ant是平台无关的,可以处理特定平台的属性,如文件分隔符。
46+
47+
* Ant 可以用于执行特定任务的平台,例如使用“触摸'命令修改文件的修改时间。
48+
49+
* Ant 脚本使用的是纯XML编写的。如果你已经熟悉XML,你可以学习Ant 很快。
50+
51+
* Ant擅长复杂的自动化重复的任务。
52+
53+
* Ant 自带的预定义任务的大名单。
54+
55+
* Ant提供了开发自定义任务的界面。
56+
57+
* Ant可以在命令行中很容易地调用,它可以与免费的和商业的IDE集成。
58+

0 commit comments

Comments
 (0)