1.新建一個(gè)Java Project From Existing Ant Buildfile項(xiàng)目,通過webbloger下的build.xml導(dǎo)入進(jìn)eclipse工程里面,選擇build-business就可以了
2.添加相應(yīng)的包,mail.jar.activation.jar,以及roller bin中所有的包。
3.將weblogger/custom目錄以及build.properties和properties.xmlf拷貝到剛才新建的Java工程項(xiàng)目根目錄
4.對(duì)build.xml點(diǎn)擊右鍵--run--open external tool dialog,配置Ant參數(shù)。
5.Ant參數(shù)中,Main中Base Directory設(shè)定為roller 4.0源代碼目錄的webbloger目錄,Classpath里面添加jboss-j2ee.jar,mail.jar,activation.jar三個(gè)包。Targets選擇usage和rebuild,點(diǎn)擊生成即可。
6.再新建一個(gè)web project,把上一個(gè)工程的所有包都加進(jìn)去,同時(shí)還要加入數(shù)據(jù)庫連接的包(比如mysql的)以及上一個(gè)工程生成的jar包(roller-business.jar和roller-web.jar)。同時(shí)還需要把所有資源文件加入進(jìn)去(存放于weblogger\web\WEB-INF\classes\下的所有文件,主要都是一些資源配置文件沒有類文件),這樣就可以了。
7.每次修改生成的jar包會(huì)跟著一起部署到容器里面
---------------------------------------------------------
專注移動(dòng)開發(fā)
Android, Windows Mobile, iPhone, J2ME, BlackBerry, Symbian
posted on 2008-10-13 14:59
TiGERTiAN 閱讀(2036)
評(píng)論(5) 編輯 收藏 所屬分類:
Java 、
Roller