在Eclipse中讓Tomcat可以每次都更新靜態檔案如*.html..等
不需要重新部屬...
第一種方法是在Tomcat啟動前加入參數
Disabling caching in Tapestry
It is troublesome to reload the application
before each test run. To solve the first part of the problem, you can tell
Tapestry to not to cache HTML and .page
files. To do that, you need to set a JVM system property
26 Chapter 1 Getting Started with Tapestry
org.apache.tapestry.disable-caching to
true. If you were starting the JVM yourself, you would run it like:
java -Dorg.apache.tapestry.disable-caching=true
...
However, as the JVM is started by Tomcat,
you need to setup a environment variable JAVA_OPTS before running
startup.bat:
Now, you can change say Home.html and the
change will take effect immediately.
第二種方法是在Eclipse的JVM中入參數
for Tomcat plugin
for Tomcat plugin
將上方紅色的那一行加進 JVA 的參數中,下圖中的另外三行是設定記憶體大小
for eclipse server plugin
資料來源:EnjoyWebDevWithTapestry
沒有留言 :
張貼留言