AIR custom application descriptor and non default main class

Is it possible to an custom AIR application descriptor for a Flex Project and different main classes for different run configurations?
Or do I need to create a seperate Module for each main class?

7 comments
Comment actions Permalink

AIR application descriptor contains SWF file name. So if you want to run different SWFs and do not want to use AIR descriptors generated by IDEA then you need to write several AIR descriptors manually.
So the question remains - how to compile several SWFs for different main classes. If you want to keep all sources in one module then you should create module of 'Java' type and add as many Flex facets as you want. Each facet has own compilation settings including main class and output file name.

0
Comment actions Permalink

Sounds complicated with a Java module - I would have to do the Flex compiler configuration manually?

Think I'll stick to multiple Flex modules with different main classes.

0
Comment actions Permalink

In fact Java module + Flex facets is not more complicated than Flex module. In case of Flex module you have one tab 'Flex Compiler Settings'. In case of facets you may have several. Settings themselves are the same. The only difference is that in case of Flex module you configure Flex/AIR SDK at Dependencies tab, but in case of Java module + Flex facets you do the same on facet page.

0
Comment actions Permalink

Thanks, I' ll give it a try later...

0
Comment actions Permalink

Do you think that using a concept of AIR descriptor templates would be convenient for you? E.g. you write one descriptor template, then at AIR run configuration select main class, may be output SWF name, and specify which descriptor template to use.

0
Comment actions Permalink

Yes, the way I currently use IntelliJ, that would make life much easier.

0
Comment actions Permalink

Thank you for feedback, we'll consider your opinion!

0

Please sign in to leave a comment.