Advertisement
Guest User

Untitled

a guest
Dec 20th, 2014
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. <project name="tomcatant" default="tomcat-restart">
  2.  
  3. <property name="tomcat.home" value="C:\path\to\your\tomcat-x.x.x" />
  4.  
  5. <target name="tomcat-restart">
  6. <antcall target="tomcat-stop" />
  7. <antcall target="tomcat-start" />
  8. </target>
  9.  
  10. <target name="tomcat-start">
  11. <java classname="org.apache.catalina.startup.Bootstrap" fork="true">
  12. <classpath path="${tomcat.home}/bin/bootstrap.jar:${tomcat.home}/bin/tomcat-juli.jar" />
  13. <jvmarg value="-Dcatalina.home=${tomcat.home}"/>
  14. <!--If you are getting any OutOfMemoryError, remove the comments
  15. and enable jvm argument of the following line-->
  16. <!--jvmarg value="-XX:MaxPermSize=256m"/-->
  17. </java>
  18. </target>
  19.  
  20. <target name="tomcat-stop">
  21. <java classname="org.apache.catalina.startup.Bootstrap" fork="true">
  22. <classpath path="${tomcat.home}/bin/bootstrap.jar:${tomcat.home}/bin/tomcat-juli.jar" />
  23. <jvmarg value="-Dcatalina.home=${tomcat.home}"/>
  24. <arg line="stop"/>
  25. </java>
  26. </target>
  27.  
  28. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement