Flex Builder + Ant Build + Debug + Console Output

来源:互联网 发布:非诚勿扰程序员罗亮 编辑:程序博客网 时间:2024/05/16 18:14

Flex Builder, as opposed to Visual Studio, doesn’t have post-build scripts that allow you to easily copy assets to the build folder.

If you need to do this Ant is a good alternative. There can be problems connecting the Ant build process to the debugger though.

The solution to this problem is to add a builder to the project (in Flex Builder):

  • Right-click on the Flex project and choose “Properties”
  • Click on “Builders” in the left panel
  • Click on the “New…” button on the right
  • Choose “Ant Builder” from the “Choose configuration type” window
  • Type “Ant Builder” in the “Name” field
  • Locate the build.xml in the “Main” tab
  • Go to the “Build Options” tab and check the “Allocate Console” option
  • Click “OK”
  • Uncheck “Flex” in the Builders dialogue and make sure “Ant Builder” is checked
  • Press F11 to build & debug your project …

That’s all there is to it …

原创粉丝点击