开发者

deploy flex application on tomcat server (not localhost) with blazeDS starting in eclipse

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 a开发者_StackOverflowpplication?

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:

  1. 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.

  2. 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.

  3. 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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜