Ant tomcat deploy war file




















Add a comment. Active Oldest Votes. Improve this answer. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually.

However, I like the idea of simply checking out my code from version control cvs or svn and running an Ant task. No requirement to have the IDE installed. Also, this works well if the deployment is part of an automated process such as nightly builds. Tomcat provides a collection on Ant custom tasks for performing remote deployment. To get started you should follow these steps:. Lines define parameters for the name of dist directories, web content directories and WAR filenames.

Lines define the location of your remote server. Also defines the administrator user name and password. You should update these accordingly to match your environment. Lines define references to the Tomcat custom tasks.

These custom tasks are defined in catalina-ant. Lines define the setup task. This is the output directory for our WAR file.

Lines define the task create-war-file. As you would expect, this task creates the WAR file. In this example, we only have we content stored in the directory WebContent. The URL for the manager application, username and password are also specified in the build.

This jar file is required to execute Tomcat tasks through Apache Ant. Let us issue the deploy-war command to copy the webapp to the Tomcat webapps folder and then, let us reload the Fax Web application. Deepti Trivedi. Himanshu Vasishta. Pushpendu Mondal. Ridhi Arora. Manish Gupta. Ant - Deploying Applications Advertisements.



0コメント

  • 1000 / 1000