Chapter 8: Web Application Administration In this example,

Chapter 8: Web Application Administration In this example, the previous property file is named tomcat-tasks.property. This then can be referenced in the build script as:
The deployer.classpath set in the path element in the previous code points to the JAR files needed by Ant for the Tomcat tasks, plus other JAR files as needed for building the Web application. Beginning with Tomcat 5.5, there is a neat shortcut to create the tomcat-tasks.propertyfile and set the JAR files for the Ant tasks. All you need to do is to add this fragment to your build script (assuming tomcat.homepoints to the right location): The catalina-tasks.xml file ships with Tomcat 5.5 and 6, and sets everything (taskdefs, JAR files) required to run Tomcat s Ant tasks. Next is the Ant target that performs initializations (in this case, creates the directories needed for the build): The compile target is shown here. This has the Ant instructions to compile all the Java files into class files. The hello application doesn t have any class files, so nothing will be done, but any serious Web application will contain Java files. Notice how the compiletask depends on the init task. This ensures that the initialization steps are performed before Ant compiles the Java files: The dist target builds the application WAR file:

If you looking for unlimited one inclusive web hosting plan please check web hosting plan website.

Comments are closed.