quanh co, nhưng quirks thay đổi từ phiên bản lên phiên bản. Điều này có nghĩa là không thể viết mã hoạt động nhất quán trên tất cả các triển khai. Trong nhiệm vụ , những khác biệt nền tảng bề mặt ở hai nơi. Đầu tiên, nhiệm vụ sẽ không nhất thiết phải phát hiện tải về không đầy đủ. | quirky but the quirks vary from version to version. This means it is impossible to write code that works consistently across all implementations. In the get task these platform differences surface in two places. First the task will not necessarily detect an incomplete download. Second if the remote page say returns an error code such as 501 and detailed exception information that information cannot be read from all versions of Java. If the task ran on Java it may be able to get the information but not on Java and this behavior depends on the value of the file extension of the remote URL. This is sometimes problematic when attempting to test JSP page installation. There are even other quirks of the class that you probably will not encounter when using this task. These issues have stopped the Ant team from releasing a reworked and more powerful HTTP support framework of httpget httppost and httphead pending someone refactoring an existing prototype implementation to use the Jakarta project s own HttpClient library. When it does see the light of day Ant will be able to POST files and forms which could be of use in many deployment processes. Using the tasks to deploy Having run through the tasks for deployment and having the repertoire of other tasks such as exec and java plus all the packaging we have just covered in chapter 6 we are ready to sit down and solve those distribution problems. We are presenting the tasks in XP style each with a story card stating what we need. Where we have diverted from the XP ethos is in testing as some of these problems are hard to test. We will do the best we can with automated testing but these tasks force you to check inboxes and the like to verify complete functionality. FTP-based distribution of a packaged application An application has been packaged up into source and binary distributions with Windows Zip and Unix gzip packages to redistribute. The distribution files .