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?
请先登录再写评论。
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.
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.
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.
Thanks, I' ll give it a try later...
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.
Yes, the way I currently use IntelliJ, that would make life much easier.
Thank you for feedback, we'll consider your opinion!