Quantcast
Channel: Adobe Community : All Content - AIR Bugs and Performance Issues
Viewing all articles
Browse latest Browse all 1419

AIR SDK 3.7 include-sources repeatable are broken

$
0
0

Hi.

 

I've recently tried to upgrade the SDK I'm using (3.3) to latest version. The upgrade resulted in failed builds. Upon firther investigation it turned out that only one class was compiled into SWC, not all.

We use ANT to compile SWC files like 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 this results in a command like 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 only con-tains a.b.C class

 

Some extra testing showd that the folowing syntax work correcty:

 

compc -output=xxx.swc -include-sources+=a/b/A.as,a/b/B.as,a/b/C.as

 

Digging through the bytecode, I found the probable cause of this error.

 

In compile.jar, com.adobe.flash.compiler.config.Configuration method setIncludeSources is called for every "-include-sources" instance on command line. This method in turn calls fillListWithResolvedPaths, that does a target.clear() on every call. This would explain why only the last passed value in command line is actualy processed.

 

I tried this also with SDK 3.5 (but did not bother with others) so I assume this bug was introduced with ASC 2.0.

 

Also I see that "include-stylesheet uses the same internal method, so it should be simillary affected.

 

I'd realy like to use the new SDK, because of one specific feature (stack traces in release code, swf 18, http://www.adobe.com/devnet/articles/flashplayer-air-feature-list.html). Switching the old SDK with the new produced failed builds.


Viewing all articles
Browse latest Browse all 1419

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>