在 eclipse 中启动 blazeDS,在 tomcat 服务器(不是本地主机)上部署 Flex 应用程序
我有一个本地开发的 Flex 应用程序,现在将其部署在实时服务器上。这些是限制:
将 blazeDS 与 java 代码结合使用
- 代码依赖于eclipse中的其他项目
- 另一个项目对第 3 方库有多个依赖项。
使用一些外部 flash .swc 库
- 一些 web.xml 设置是自定义的
在另一篇文章中解释了导出文件夹的结构:
部署 Flex 的 .war 文件中需要包含哪些内容应用程序?
在 Flash Builder 的默认使用中,我可以创建一个发布版本并将其存储在某处。这将创建所有 Flex 内容的发行版本。
我现在想在eclipse的导出功能中导出.war文件,问题来了:
如何排除war文件中不需要的文件。有一个 Flex 应用程序的调试版本和一些我不需要的其他文件。
如何将导入的 Eclipse 项目的依赖库自动插入到 web-inf lib 文件夹中。当我尝试导出版本时,该函数表示导入的 eclispe 项目无法通过发布过程创建,但它位于 .war 导出的 web-inf 的 lib 文件夹中(除了依赖项之外)。
有人可以向我指出有关导出和部署的 flashbuilder 文档吗?
也许我需要一个 ANT 流程来优化它。你怎么认为?
谢谢
I have a locally developed flex application which i would now deploy on a live server. Those are the constraints:
Using blazeDS with java code
- Code depends on other project in eclipse
- the other project has several dependencies on 3rd party libs.
Using some external flash .swc libs
- some web.xml settings are custom
In another post the structure for the exported folder is explained:
What needs to be in a .war file to deploy a Flex application?
In the default usage of Flash Builder i can create a release build and store it somewhere. This will create the release version of all the flex content.
I now want to export the .war file within the export function of eclipse and here comes the problem:
How can i exclude the files not needed in the war file. There is a debug build of the flex app and some other files i do not need.
How can i automatically insert the dependend libs of the imported eclipse project to the web-inf lib folder. When i try to export the release the function sais that the imported eclispe project cannot be created by the release process but it is within the lib folder of web-inf on .war export except the dependencies.
Can somebody point me to the documententation of flashbuilder regarding exportinmg and deployment.
Maybe i need an ANT process to optimize that. What do you think?
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于您刚才所说的一切,有两种方法可以实现:
1)手动创建它,方法是将您的war文件中需要的内容复制粘贴到文件夹中,删除不需要的内容,然后使用命令行创建所述war文件。
2) 创建一个自动化脚本来为您完成这一切。这可以是 ANT 或 Maven(我个人更喜欢 Maven,因为它的依赖管理)。
后者是企业的做法,因为它很容易运行(“mvn clean install war”),并且您可以将脚本附加到自动化引擎(如 hudson、bamboo、teamcity 等),然后该引擎可以编译/测试/部署一切都致力于您的源代码控制。
For everything you just said, there are 2 ways of doing it:
1) Create it manually by copy pasting what you need in your war file into a folder, removing what isn't needed then create said war file using command line.
2) Create an automation script that does it all for you. This could be ANT or Maven (I personally prefer Maven for it's dependency management).
The latter is the enterprise way of doing it because it's easy to run ("mvn clean install war") and you can attach the script to an automation engine (like hudson, bamboo, teamcity, etc) which can then compile/test/deploy everything something is committed to your source control.