ANT provides users with a lot of tasks, more valuable, which allows users to use other developers to develop tasks. There is an external task list on the Ant home page: http: //ant.apache.org/external.html. As long as you like, you can also write a self-study of your own task, look at the "write custom task, easy to expand Ant".
There are two cases: There are two cases referenced in Ant:
First, an option task defined by Ant
These tasks can be said to be a semi-official task, and the task is actually written, but the resource dependent on the task is mainly the JAR file is not released with Ant. For example, an FTP task is this. Open the document
RemoteDir = "incoming" Userid = "anonymous" Password = "me@myorg.com" Depends = "yes" > ftp> Second, the general external task These tasks also need to download the required JAR files, put them in the Build.xml: XML Version = "1.0"?> timer> timer> timer> target> provject> Finally, a few ways to set the type path: 1. Place the JAR file in the lib directory of the Ant installation directory, Ant will automatically load 2. Set the environment variable ClassPath, contain the JAR file 3 to reference. Specify ClassPath in TaskDef