qickrooms / flex-mojos

Automatically exported from code.google.com/p/flex-mojos
0 stars 0 forks source link

Special handling for playerglobal also needed for airglobal #87

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have an air application whose pom.xml has the following dependency on
airglobal:

<dependency>
  <groupId>com.adobe.flex.sdk</groupId>
  <artifactId>airglobal</artifactId>
  <version>3.0.0.477</version>
  <type>swc</type>
  <scope>external</scope>
</dependency>

When I run the application with adl, I get a popup saying

VerifyError: Error #1079: Native methods are not allowed in loaded code.

followed by myriads of other error messages.

I googled this error and found out that VELO already ran into this with
playerglobal (https://bugs.adobe.com/jira/browse/SDK-15073) and that he
implemented a workaround that simply copies the playerglobal dependency
into a separate directory underneath target and using the original name as
opposed to the name with the version appended to it.

I think we need the same for airglobal. In other words, instead of running
the compiler with

-compiler.external-library-path
<snip>/<snap>/target/flex-compiler/libraries/external/playerglobal.swc
~/.m2/repository/com/adobe/flex/sdk/airglobal/3.0.0.477/airglobal-3.0.0.477.swc

the compiler-mojo should use

-compiler.external-library-path
<snip>/<snap>/target/flex-compiler/libraries/external/playerglobal.swc
<snip>/<snap>/target/flex-compiler/libraries/external/airglobal.swc

Ultimately, I think this should be configurable because the problem affects
any dependency with external scope that has native code in it and gets the
"special treatment" by Adobe's compiler. Currently, there are only
playerglobal and airglobal but who knows what the future brings.

Original issue reported on code.google.com by Hannes.S...@gmail.com on 23 Aug 2008 at 1:44

GoogleCodeExporter commented 9 years ago
Hi,

This should be working at 2.0-alpha4.  Can you give a shoot?

BTW, I never saw any 3rd party library with native code.  Do you know any?

VELO

Original comment by velo...@gmail.com on 23 Aug 2008 at 4:12

GoogleCodeExporter commented 9 years ago
I'm trying to get my build working with 2.0-alpha4 but I am noticing a few 
problems
with that as well. I'm going to open more issues ...

Original comment by Hannes.S...@gmail.com on 23 Aug 2008 at 7:45

GoogleCodeExporter commented 9 years ago
Ok Hannes, I will close this.

If you need some help mail the group or gtalk me.

VELO

Original comment by velo...@gmail.com on 23 Aug 2008 at 1:44