How to get -services into non-framework project?
Hi.
I was looking for this information as well as trying to research the issue, but I keep hitting the wall and would appreciete your help.
What am I trying to do:
I want services_config.xml that is passed as an argument to MXMLC.EXE -services services_config.xml to be compiled into non-framework class.
What I did / discovered so far:
- There is a ServicesConfig class that is meant to receive this info.
- This info is written into generated Application class in compile time in this form:
ServicesConfig.xml =
<services>
...
</services>;
- I can replace ServicesConfig with my custom class with the same name.
- I can replace generated Application class with any name I want.
- I can replace SystemManager class with my class with the same name.
The problem is that in order to actually compile my custom Application class together with my custom SystemManager class I need to use [Frame] tag.
If I use that tag, inspite of that I have removed other framework classes from the framework.swc, removed flex.swc from the project classpath, removed rpc.swc from the project classpath it will compile all the framework classes into my intended to be non-framework project...
I have restarted FSCH, restarted the OS, made triple sure I have framework classes removed from the accessible classpaths, but it will in some miracleous way find them an force compilation of all the stuff I don't need in the project...
So, please if you happen to know either one of these things:
- How to make the compiler think that my document class qualifies for writting into it info() function and other generated SystemManager's overrides
- How to make the compiler write services XML into my document class / any other class that should be compiled with my project (given it has no framework dependencies)
- Or, how to make -services parameter work with non-framework classes in general
I will appreciate it very much.
Thank you for your time.
