tag:support.gradlefx.org,2011-05-23:/discussions/questions/22-how-to-ensure-framework-is-on-external-library-path-for-swc-projectGradleFx: Discussion 2018-10-19T04:55:58Ztag:support.gradlefx.org,2011-05-23:Comment/185224962012-09-05T07:13:38Z2012-09-05T07:16:59ZHow to ensure framework is on external-library-path for swc project?<div><p>I am compiling an SWC module and getting warnings from the SDK
like this:</p>
<pre>
<code>Warning: The swc 'D:\opt\adobe\flex_sdk_4.6.0.23201B\frameworks\libs\advancedgrids.swc'
has style defaults and is in the library-path, which means dependencies will be linked
in without the styles.
This can cause applications, which use the output swc, to have missing skins.
The swc should be put in the external-library-path.</code>
</pre>
<p>My build file looks like this:</p>
<pre>
<code>type = 'swc'
frameworkLinkage = 'external'
srcDirs = ['/src/main/flex']
dependencies {
external group: 'com.amcharts', name: 'amChartsFB4', version: '1.8.3.3', ext: 'swc'
...
external group: 'com.fiber', name: 'fiber', version: '4.5.0', ext: 'swc'
external group: 'com.fiber', name: 'fiber_rb', version: '4.5.0', ext: 'swc'
external group: 'com.dcradswcs', name: 'serializers', version: '4.5.0', ext: 'swc'
external group: 'com.dcradswcs', name: 'serializers_rb', version: '4.5.0', ext: 'swc'
external group: 'com.flexframework', name: 'spark_rb', version: '4.5.1', ext: 'swc'
external group: 'com.flexframework', name: 'framework_rb', version: '4.5.1', ext: 'swc'
external group: 'com.adobe', name: 'as3corelib', version: '0.93.0', ext: 'swc
}</code>
</pre>
<p>I have tried different settings for frameworkLinkage including
'merged' but get the same behaviour.</p>
<p>The problem indicated by the warning message appears to be
giving me runtime exceptions with AdvancedDataGrid so I need to
work out how to get rid of the warning.</p>
<p>Is there a recommended way to fix this with GradleFx?</p></div>ross.attrilltag:support.gradlefx.org,2011-05-23:Comment/185224962012-09-05T14:54:54Z2012-09-05T14:54:54ZHow to ensure framework is on external-library-path for swc project?<div><p>I think you can fix it by explicitly declaring the
advancedgrids.swc library as an external dependency, like this:</p>
<p>external
files("${flexHome}/frameworks/libs/advancedgrids.swc")</p></div>Yennick Trevelstag:support.gradlefx.org,2011-05-23:Comment/185224962012-09-05T23:21:35Z2012-09-05T23:21:35ZHow to ensure framework is on external-library-path for swc project?<div><p>Thank you very much Yennick. This has removed the compiler
warning.</p></div>ross.attrill