質問

Now that FDT no longer supports fdt.launch.Application from AIR projects, how do you go about building modules for an AIR application? You can't just create multiple AIR launch configs because almost all the properties are set in the project properties rather than the launch config. Do I really have to create a new project for each module? Having 20 projects for one application seems awfully messy when you used be able to use one project and one Ant script.

Here's a link to a sample build.xml file I might use: build.xml

役に立ちましたか?

解決

With FDT 5.5, you cannot use the workflow you mentioned by only using FDT's ANT tasks or launchers. The FDT team is looking to make adjustments so that it can.

Until the next (soon) minor release, you have three options:

  1. Create a new AIR project for each module and use the Launcher Chain. Techniques for this (and why it s) are described in two other stackoverflow questions, here and here.
  2. Create another project that isn't an AIR project and use that to house your modules.
  3. Create a custom Project Type

AIR project for each module

Creating a project for each module is not as unusual as it may it seem. It's actually the suggested workflow in the Java world and many large teams work this way. They will often have a project with 10-50 modules and have 1-2 developers working on each module. For small teams one-man shops, this might not make sense.

Create Another Project That Isn't An 'AIR' project (e.g. A Web Project)

You might be able to create another project that isn't an AIR project and use that to compile your modules. If you are not using AIR APIs, this is easy; however, if you are, try to adjust your SDK settings

Create A Custom Project Type

This is a bit of a hack and not recommended for general use; however, it will solve your issue. You can use a custom project type that is 'hacked' to use the AIR SDK & API but launch like a web project. To use this, put it in your FDT Project Types folder:

For OSX, place it in: /Users/[your user name]/Library/Application\ Support/FDT/projectTypes

...then restart FDT. Next create a simple web project than right click >Flash Project>Set Project Type and choose this new project type. I called mine 'Air Module'

Here is an example project type to download:

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top