The Build-Process in an XMA application is based on an Apache Ant build.xml file. This File is based on different Targets with different effects. One Target can look like this:
You can use each target for self, but the dependent between the Targets ist very importent. So we have some Targets like "All" or "all_undeploy_deploy" which will help you to become a fast and correct result.
But the most necessary is that you have the "Ant" Plugin in your "eclipse\plugins" folder!!
You can find the "build.xml" in the folder "script".
On right Click on this build.xml ant "Run Ant..." this dialog will open:
The Build-Targets can also reached with the Ant-View. If you haven´t open this View click: Window -> Show View -> Ant
You can use this target to build a application.war file. It starts Compile and Pack
This Target build the application.war file and redeployed the tomcat server. Only if Tomcat is already started.
this target will delete following directories:
/classes
/lib
/doc
/build_war
build the CommonClient.jar and the CommonServer.jar file
compile all .java files and copy them into the classes directory
build a jar file for each component in the project
defines all varialbes in the build script
build one jar file
builds the xma-hash-code for an unsinged (3rd party) jar
define the global include(property) file and set the projects class path
create the lib and the classes directory
deploy tomcat while server is still running with the server username and password by using the Tomcat Manager
list all applications from the tomcat server on the eclipse console
undeply tomcat while server is stikk running with the server username and password
deploy to tomcat, copy application.war (see: http://java.sun.com/j2ee/1.3/docs/ servlet specification (2.3) -> Chapter 9 : Web Applications ) file to domain-dir. requries restart; use this target if the server is stopped and you can copy the files to tomcat
as expected this target stops the server
delete war-file and webapplication from tomcat. Requires that tomcat ist stopped. Use this target if the server is stopped and you can delete the files from tomcat
this target build the webapp and copy all required files into
copy the application.war file into the weblogic directory which is define in the common.properties file in the script directory
![]() | |
Before you can deploy a web-application while tomcat is running, be shure that the server username and password are correct. |
default: username: admin
default: password: admin
this can be changed in the "init" - Target!
The actually username and password can be found in the file {TOOLS}/tomcat41/conf/tomcat-users.xml.
user username="admin" password="xxxxx"
roles="admin,manager"
It is very important to find the username and password by the roles "manager", because we use this Tomcat Manager to provide you the possibility to deploy while Tomcat is running.