Another Neat Tool(Ant)是Apache Jakarta中一個很好用的Java開發工具
下面簡要介紹了一個完整的Ant安裝過程
// The Hello World class
package test;
public class HelloWorld {
static public void main(String[] args) {
HelloWorld hw = new
HelloWorld();
hw
}
public void invoke()
{
System
}
}
在UNIX符號下
接下來
這裡是build文件
build
通過在含有build
Buildfile: build
clean:
[delete] Deleting directory /home/ant/example/classes
[delete] Deleting directory /home/ant/example/build
[delete] Deleting directory /home/ant/example/docs
compile:
[mkdir] Created dir: /home/ant/example/classes
[javac] Compiling
build:
[mkdir] Created dir: /home/ant/example/build
[jar] Building jar: /home/ant/example/build/HelloWorld
docs:
[mkdir] Created dir: /home/ant/example/docs
[javadoc] Generating Javadoc
[javadoc] Javadoc execution
[javadoc] Loading source files for package test
[javadoc] Constructing Javadoc information
[javadoc] Building tree for all the packages and classes
[javadoc] Building index for all the packages and classes
[javadoc] Building index for all classes
test:
Hello
all:
BUILD SUCCESSFUL
Total time:
通過這個開發腳本和示例Java文件
Apache Jakarta開始下載和安裝Ant
From:http://tw.wingwit.com/Article/program/Java/ky/201311/28624.html