AIR SDK 3.7 include-sources repeatable are broken
hi.
i've tried upgrade sdk i'm using (3.3) latest version. upgrade resulted in failed builds. upon firther investigation turned out 1 class compiled swc, not all.
we use ant compile swc files this:
<compc output="${project.name}.swc">
<source-path path-element="${src.dir}" />
<include-sources dir="${gamedata.dir}" includes="**/*.as" append="true" />
<include-sources dir="${src.dir}" includes="**/*.as" excludes="some/package/*.as" append="true" />
</compc>
internaly results in command this:
compc -output=xxx.swc -include-sources+=a/b/a.as -include-sources+=a/b/b.as -include-sources+=a/b/c.as
the resulting xxx.swc con-tains a.b.c class
some testing showd folowing syntax work correcty:
compc -output=xxx.swc -include-sources+=a/b/a.as,a/b/b.as,a/b/c.as
digging through bytecode, found probable cause of error.
in compile.jar, com.adobe.flash.compiler.config.configuration method setincludesources called every "-include-sources" instance on command line. method in turn calls filllistwithresolvedpaths, target.clear() on every call. explain why last passed value in command line actualy processed.
i tried sdk 3.5 (but did not bother others) assume bug introduced asc 2.0.
also see "include-stylesheet uses same internal method, should simillary affected.
i'd realy use new sdk, because of 1 specific feature (stack traces in release code, swf 18, http://www.adobe.com/devnet/articles/flashplayer-air-feature-list.html). switching old sdk new produced failed builds.
thank report. i've talked compiler team , have confirmed bug. mind opening public bug report on over @ bugbase.adobe.com , let me know bug number? associate public bug our internal report can track progress.
thanks,
chris
More discussions in AIR Bugs and Performance Issues
adobe
Comments
Post a Comment