How to link sources to swc dependency ?

Why ?

Due to swc format limitation, sources cannot be embedded into binaries. That's why most of time, each dependencies will have a defined source attachments in .actionScriptProperties file. flex:eclipse can automatically linked source attachment to dependencies with a property named "sourceAttachments". Just map the groupId and artifactId to the sources location.

Sample

<configuration>
    <sourceAttachments>
        <sourcePathEntry>
            <groupId>com.adobe.flex.sdkcore</groupId>
            <artifactId>framework</artifactId>
            <sourcePath>PATH/TO/YOUR/SOURCES/FOLDER/flex_sdk_3.2.0.3958/frameworks/projects/framework/src</sourcePath>
        </sourcePathEntry>
    </sourceAttachments>
<configuration>
  • Link types Our tests shows that both local path such as "d:\docs\flex_sdk_3.2.0.3958\frameworks\projects\framework\src and network path such as \networkpath\flex_sdk_3.2.0.3958 works fine ( samba not tested ).