如何使用Ant將Portlet部署到遠程WebSphere Portal 6.0(Linux)?如何使用Ant將Portlet部署到遠程WebSphere Portal?
4
A
回答
2
您應該可以使用XmlAccess Ant任務完成此任務。請參閱紅皮書WebSphere Portal Version 6 Enterprise Scale Deployment Best Practices的附錄。
2
我們做到這一點,在本地,而不是遠程,與螞蟻的任務,執行以下操作:
1)副本的portlet的war文件到門戶網站的installApps目錄(因爲你是遠程做它,你將需要通過FTP或其他方式,而不是像我們一樣簡單地在本地複製它)。
2)在名爲「xmlaccess」的當前目錄的子目錄中,對xml訪問文件「update.xmlaccess」執行xmlaccess腳本(在我們的例子中爲xmlaccess.bat,在您的情況xmlaccess.sh中)。
這裏是我們的ant任務代碼片段。其中的一些值有特定於我們腳本的變量,但名稱應該足夠簡單以找出它們的作用:
<target name="deploy" depends="war" description="deploy the application">
<copy file="${project.base}/target/${package.name}.war" todir="${portal.base}/installableApps" />
<echo message="Deploying ${project.name} to WebSphere Portal." />
<exec executable="${portal.base}/bin/xmlaccess.bat">
<arg line='-in "xmlaccess/update.xmlaccess" -user ${wps.admin.user} -pwd ${wps.admin.password} -url ${wps.admin.url}
-out "xmlaccess/deploymentresults.xmlaccess"' />
</exec>
</target>
相關問題
- 1. 將WebSphere Portal 6部署到WebSphere Portal 5
- 2. 在Websphere Portal 8上部署JSF 2.0 portlet
- 3. 將Portlet部署自動化到WebSphere Portal Server 6.1
- 4. 使用Ant部署EAR到遠程WebSphere Application Server
- 5. 開發portlet - Websphere portal
- 6. 遠程部署到WebSphere 8.5使用maven
- 7. 如何在websphere portal中添加Blog portlet?
- 8. WebSphere Portal portlet瘋狂穿線
- 9. WebSphere Portal 8遠程操作
- 10. 使用ANT創建Websphere部署描述
- 11. Websphere Portal中的Spring MVC Portlet重用
- 12. ANT到遠程Tomcat部署獲得500
- 13. 錯誤Ant構建/部署到websphere 7.0
- 14. 如何將Portlet部署到Liferay?
- 15. portlet部署到Liferay
- 16. 無法將RAD 7.5的portlet發佈到Websphere Portal Server 6.1
- 17. 通過XMLACCESS遠程部署Portlet
- 18. 的WebSphere Portal 6.0的Portlet錯誤記錄
- 19. 在websphere portal 8中拖放Portlet 8
- 20. websphere portal中的Spring web mvc portlet
- 21. Websphere Portal 7自定義登錄Portlet
- 22. WebSphere Portal阻止的直接Portlet訪問
- 23. Faces Portlet導航 - WebSphere Portal - JSR 286
- 24. portlet(JSF)with ajax - Websphere Portal 7,RAD 8
- 25. 從WebSphere Portal重建已移除的portlet
- 26. Ajax Portal,portlet到portlet通信
- 27. 使用xmlaccess腳本部署的IBM WebSphere Portal Server 6
- 28. 如何將具有頁面層次結構的portlet部署到WebSphere 8
- 29. Portlet標籤和Portlet頁面(Websphere Portal Server 6.1)有什麼區別
- 30. 在IBM WebSphere Portal 6.1 Portlet上使用Multibox(mootools)
您能發佈update.xmlaccess文件嗎?我試圖完成同樣的事情 – 2012-08-09 18:42:16