flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: [FlexJS] using @extern with dialogPolyfill
Date Thu, 19 Jan 2017 22:49:32 GMT
Did you sync up flex-falcon?

It may not work to put this in MDL.swc.  I think it needs to be in its own
SWC and on the -external-library-path.

-Alex

On 1/19/17, 2:33 PM, "carlos.rovira@gmail.com on behalf of Carlos Rovira"
<carlos.rovira@gmail.com on behalf of carlosrovira@apache.org> wrote:

>Ok,
>
>I think I have something:
>
>1.- In MDL swc library I create "dialogPolyfill.as" in "main/flex folder"
>
>package
>{
>/**
>* The ActionScript typedefs for dialogPolyfill
>*
>*  @externs
>*  @langversion 3.0
>*  @playerversion Flash 10.2
>*  @playerversion AIR 2.6
>*  @productversion FlexJS 0.0
>*/
>public class dialogPolyfill
>{
>/**
>*  registerDialog
>*
>*  @langversion 3.0
>*  @playerversion Flash 10.2
>*  @playerversion AIR 2.6
>*  @productversion FlexJS 0.0
>*/
>public static function registerDialog(dialog):void
>{
>}
>    }
>}
>
>
>2.- I use it in Dialog.as
>
>dialogPolyfill.registerDialog(dialog);
>
>This is the use of the extern, something internal to the MDL swc library.
>
>3.- MDL swc compiles with success
>
>Now the problem:
>
>4.- In MDLExample compilation is broken with:
>
>Compiling file:
>/Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLEx
>ample/target/javascript/bin/js-debug/models/ListsModel.js
>Compiling file:
>/Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/examples/flexjs/MDLEx
>ample/target/javascript/bin/js-debug/vos/NavigationLinkVO.js
>using extern: externs/dialogPolyfill.js
>using SWC:
>/Users/carlosrovira/.m2/repository/com/adobe/flash/framework/playerglobal/
>20.0/playerglobal-20.0.swc
>using SWC:
>/Users/carlosrovira/.m2/repository/org/apache/flex/flexjs/framework/Materi
>alDesignLite/0.8.0-SNAPSHOT/MaterialDesignLite-0.8.0-SNAPSHOT.swc
>using SWC:
>/Users/carlosrovira/.m2/repository/org/apache/flex/flexjs/framework/Core/0
>.8.0-SNAPSHOT/Core-0.8.0-SNAPSHOT.swc
>using SWC:
>/Users/carlosrovira/.m2/repository/org/apache/flex/flexjs/framework/Langua
>ge/0.8.0-SNAPSHOT/Language-0.8.0-SNAPSHOT.swc
>using SWC:
>/Users/carlosrovira/.m2/repository/org/apache/flex/flexjs/framework/HTML/0
>.8.0-SNAPSHOT/HTML-0.8.0-SNAPSHOT.swc
>using SWC:
>/Users/carlosrovira/.m2/repository/org/apache/flex/flexjs/framework/Collec
>tions/0.8.0-SNAPSHOT/Collections-0.8.0-SNAPSHOT.swc
>using SWC:
>/Users/carlosrovira/.m2/repository/org/apache/flex/flexjs/framework/Bindin
>g/0.8.0-SNAPSHOT/Binding-0.8.0-SNAPSHOT.swc
>using SWC:
>/Users/carlosrovira/.m2/repository/org/apache/flex/flexjs/framework/Graphi
>cs/0.8.0-SNAPSHOT/Graphics-0.8.0-SNAPSHOT.swc
>Could not find file for class: dialogPolyfill
>File not found: dialogPolyfill
>org.apache.flex.compiler.internal.graph.GoogDepsWriter.addDeps(GoogDepsWri
>ter.java:174)org.apache.flex.compiler.internal.graph.GoogDepsWriter.addDep
>s(GoogDepsWriter.java:208)org.apache.flex.compiler.internal.graph.GoogDeps
>Writer.addDeps(GoogDepsWriter.java:208)org.apache.flex.compiler.internal.g
>raph.GoogDepsWriter.addDeps(GoogDepsWriter.java:208)org.apache.flex.compil
>er.internal.graph.GoogDepsWriter.addDeps(GoogDepsWriter.java:208)org.apach
>e.flex.compiler.internal.graph.GoogDepsWriter.addDeps(GoogDepsWriter.java:
>208)org.apache.flex.compiler.internal.graph.GoogDepsWriter.buildDB(GoogDep
>sWriter.java:125)org.apache.flex.compiler.internal.graph.GoogDepsWriter.ge
>tListOfFiles(GoogDepsWriter.java:84)org.apache.flex.compiler.internal.code
>gen.mxml.flexjs.MXMLFlexJSPublisher.publish(MXMLFlexJSPublisher.java:308)o
>rg.apache.flex.compiler.clients.MXMLJSC.compile(MXMLJSC.java:455)org.apach
>e.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:313)org.apache.fl
>ex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:270)org.apache.flex.co
>mpiler.clients.MXMLJSC.execute(MXMLJSC.java:166)org.apache.flex.maven.flex
>js.BaseMojo.execute(BaseMojo.java:274)org.apache.flex.maven.flexjs.Compile
>AppMojo.execute(CompileAppMojo.java:119)org.apache.maven.plugin.DefaultBui
>ldPluginManager.executeMojo(DefaultBuildPluginManager.java:134)org.apache.
>maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)org.ap
>ache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)o
>rg.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
>145)org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProjec
>t(LifecycleModuleBuilder.java:116)org.apache.maven.lifecycle.internal.Life
>cycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)org.apache.
>maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.buil
>d(SingleThreadedBuilder.java:51)org.apache.maven.lifecycle.internal.Lifecy
>cleStarter.execute(LifecycleStarter.java:128)org.apache.maven.DefaultMaven
>.doExecute(DefaultMaven.java:307)org.apache.maven.DefaultMaven.doExecute(D
>efaultMaven.java:193)org.apache.maven.DefaultMaven.execute(DefaultMaven.ja
>va:106)org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)org.apache.
>maven.cli.MavenCli.doMain(MavenCli.java:288)org.apache.maven.cli.MavenCli.
>main(MavenCli.java:199)sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>Method)sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp
>l.java:62)sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
>AccessorImpl.java:43)java.lang.reflect.Method.invoke(Method.java:498)org.c
>odehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:
>289)org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java
>:229)org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
>uncher.java:415)org.codehaus.plexus.classworlds.launcher.Launcher.main(Lau
>ncher.java:356)
>[INFO]
>------------------------------------------------------------------------
>[INFO] BUILD FAILURE
>[INFO]
>------------------------------------------------------------------------
>[INFO] Total time: 4.198 s
>[INFO] Finished at: 2017-01-19T23:28:43+01:00
>[INFO] Final Memory: 78M/905M
>[INFO]
>------------------------------------------------------------------------
>[ERROR] Failed to execute goal
>org.apache.flex.flexjs.compiler:flexjs-maven-plugin:0.8.0-SNAPSHOT:compile
>-app
>(compile-javascript) on project MDLExample: There were errors during the
>build. Got return code 3 -> [Help 1]
>
>
>I think some config is missing or maybe some tweaks are needed to work
>with
>maven (if it was not tested with it) but can't figure what is
>
>some help please?
>
>Thanks
>
>-- 
>Carlos Rovira
>http://about.me/carlosrovira

Mime
View raw message