build.xml
changeset 25388 899242f8a5c7
parent 25387 2c55d7b706ed
parent 25341 53c93985bfe9
child 25558 a8bd0fc47456
equal deleted inserted replaced
25387:2c55d7b706ed 25388:899242f8a5c7
   875 		Is called by the org.openbravo.service.system.RestartTomcat class.
   875 		Is called by the org.openbravo.service.system.RestartTomcat class.
   876 	-->
   876 	-->
   877   <target name="tomcat.restart.do" description="Restart the tomcat server process">
   877   <target name="tomcat.restart.do" description="Restart the tomcat server process">
   878     <echo message="Restarting Tomcat at ${env.CATALINA_HOME}" />
   878     <echo message="Restarting Tomcat at ${env.CATALINA_HOME}" />
   879     <java classname="org.apache.catalina.startup.Bootstrap" fork="true">
   879     <java classname="org.apache.catalina.startup.Bootstrap" fork="true">
   880       <classpath path=":${env.CATALINA_HOME}/bin/bootstrap.jar:${env.CATALINA_HOME}/bin/commons-logging-api.jar" />
   880       <classpath path=":${env.CATALINA_HOME}/bin/bootstrap.jar:${env.CATALINA_HOME}/bin/commons-logging-api.jar:${env.CATALINA_HOME}/bin/tomcat-juli.jar" />
   881       <jvmarg value="-Dcatalina.home=${env.CATALINA_HOME}" />
   881       <jvmarg value="-Dcatalina.home=${env.CATALINA_HOME}" />
   882       <jvmarg value="-Dcatalina.base=${env.CATALINA_BASE}" />
   882       <jvmarg value="-Dcatalina.base=${env.CATALINA_BASE}" />
   883       <arg line="stop" />
   883       <arg line="stop" />
   884     </java>
   884     </java>
   885     <sleep description="Wait to give tomcat time to stop" seconds="20" />
   885     <sleep description="Wait to give tomcat time to stop" seconds="20" />
   886 
   886 
   887     <!-- if deploy.mode=class this will sync (& delete orphan) jarfiles from WebContent -> tomcat-->
   887     <!-- if deploy.mode=class this will sync (& delete orphan) jarfiles from WebContent -> tomcat-->
   888     <antcall target="copy.files.jarsync"/>
   888     <antcall target="copy.files.jarsync"/>
   889 
   889 
   890     <java classname="org.apache.catalina.startup.Bootstrap" fork="true" spawn="true">
   890     <java classname="org.apache.catalina.startup.Bootstrap" fork="true" spawn="true">
   891       <classpath path=":${env.CATALINA_HOME}/bin/bootstrap.jar:${env.CATALINA_HOME}/bin/commons-logging-api.jar" />
   891       <classpath path=":${env.CATALINA_HOME}/bin/bootstrap.jar:${env.CATALINA_HOME}/bin/commons-logging-api.jar:${env.CATALINA_HOME}/bin/tomcat-juli.jar" />
   892       <!-- note because CATALINA_OPTS can be multi argument the line attribute has to be used! -->
   892       <!-- note because CATALINA_OPTS can be multi argument the line attribute has to be used! -->
   893       <jvmarg line="${env.CATALINA_OPTS}" />
   893       <jvmarg line="${env.CATALINA_OPTS}" />
   894       <jvmarg value="-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager" />
   894       <jvmarg value="-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager" />
   895       <jvmarg value="-Djava.util.logging.config.file=${env.CATALINA_BASE}/conf/logging.properties" />
   895       <jvmarg value="-Djava.util.logging.config.file=${env.CATALINA_BASE}/conf/logging.properties" />
   896       <jvmarg value="-Djava.endorsed.dirs=${env.CATALINA_HOME}/endorsed" />
   896       <jvmarg value="-Djava.endorsed.dirs=${env.CATALINA_HOME}/endorsed" />