Determining linkage dependencies in Flex applications

不羁的心 提交于 2019-12-20 04:55:25

问题


I have a large Flex project with two Applications in it. A lot of code is shared between these Applications. However, the smaller of the Applications does not require much of the code that the larger one does. I'm trying to ensure that code that isn't required by the smaller application isn't getting compiled into it.

Is there an easy way for me to determine which files within my project are being compiled into a particular Application?


回答1:


Ah, I managed to discover the solution to this shortly after posting.

The Flex compiler supports a -link-report flag that produces an XML file which describes all of the linkage dependencies for the applications in your project.

Flex 2 Documentation: http://www.adobe.com/livedocs/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=performance_118_19.html

Flex 3 Documentation: http://livedocs.adobe.com/flex/3/html/help.html?content=modular_4.html



来源:https://stackoverflow.com/questions/3049714/determining-linkage-dependencies-in-flex-applications

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!