<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "JForum Eclipse WTP開發環境設定"]]></title>
		<link>https://forum.andowson.com/posts/list/7.page</link>
		<description><![CDATA[Latest messages posted in the topic "JForum Eclipse WTP開發環境設定"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>JForum Eclipse WTP開發環境設定</title>
				<description><![CDATA[ 為了加速對JForum的開發及測試，不能再用傳統的[url=http://www.wincvs.org/]WinCVS[/url]-&gt;[url=http://www.pspad.com/]PSPad[/url]-&gt;[url=http://filezilla.sourceforge.net/]FileZilla[/url]-&gt;[url=http://www.chiark.greenend.org.uk/~sgtatham/putty/]PuTTY[/url]-&gt;[url=http://ant.apache.org/]ant[/url]-&gt;service tomcat restart方式，要改用一個整合式的開發環境（IDE)將CVS到編輯修改除錯完成後再部署（deploy)到正式站台去。 
<br>
<br>
在開發工具選擇上[url=http://www.eclipse.org/webtools/main.php]Eclipse WTP[/url]是個滿不錯的選擇，免費且plugin又多，於是我選擇了這個工具，同時也安裝了[url=http://freemarker.sourceforge.net/]FreeMarker[/url]的Eclipse plugin，當然Tomcat也是得裝的。 
<br>
<br>
由於直接由Eclipse的Import..-&gt;Projects from CVS會使用和CVS上相同的專案名稱jforum，故我把新的專案名稱改為jforumWTP，過程就是新增一個Dynamic Web Project然後取名為jforumWTP，完成後將原來jforum專案的src目錄內容全部複製到jforumWTP的src目錄去，其他的index.htm, images, templates, tmp, upload及WEB-INF等目錄複製到WebContent目錄去，然後從現有上線的主機下載回jforum-custom.conf（修改一下database.connection.host的設定)再對index.htm按右鍵選擇Run As-&gt;Run On Server 
<br>
<br>
懶得自己去挑選目錄跟檔案的人可以下載我打包好的WAR檔 
<br>
[url]https://sites.google.com/site/andowson/Home/jforumWTP.war?attredirects=0&amp;d=1[/url] 
<br>
然後在Eclipse中新增一個空白專案（jforumWTP）後，改用Import-&gt;Web-&gt;WAR file，選擇jforumWTP.war即可。 
<br>
<br>
從此以後就可以直接在Eclipse裡面直接執行JForum了，要修改或除錯也變得很方便。]]></description>
				<guid isPermaLink="true">https://forum.andowson.com/posts/preList/62/83.page</guid>
				<link>https://forum.andowson.com/posts/preList/62/83.page</link>
				<pubDate><![CDATA[Sun, 15 Apr 2007 19:25:21]]> GMT</pubDate>
				<author><![CDATA[ andowson]]></author>
			</item>
	</channel>
</rss>