Hi Chris, since I'll be using the polyfill in MDL swc I think is where I should right? or I should look into MDLExample pom as well? btw, If the dilaogPolyfill is in typedefs located in js project and inside the missing.js file what typedef should I reference?
In MDL swc I have following typedefs <dependencies> <dependency> <groupId>org.apache.flex.flexjs.framework</groupId> <artifactId>Core</artifactId> <version>0.8.0-SNAPSHOT</version> <type>swc</type> <classifier>typedefs</classifier> </dependency> <dependency> <groupId>org.apache.flex.flexjs.framework</groupId> <artifactId>Binding</artifactId> <version>0.8.0-SNAPSHOT</version> <type>swc</type> <classifier>typedefs</classifier> </dependency> <dependency> <groupId>org.apache.flex.flexjs.framework</groupId> <artifactId>Graphics</artifactId> <version>0.8.0-SNAPSHOT</version> <type>swc</type> <classifier>typedefs</classifier> </dependency> <dependency> <groupId>org.apache.flex.flexjs.framework</groupId> <artifactId>Collections</artifactId> <version>0.8.0-SNAPSHOT</version> <type>swc</type> <classifier>typedefs</classifier> </dependency> <dependency> <groupId>org.apache.flex.flexjs.framework</groupId> <artifactId>HTML</artifactId> <version>0.8.0-SNAPSHOT</version> <type>swc</type> <classifier>typedefs</classifier> </dependency> </dependencies> In MDLExample: I don't have any, but as I don't use the API in MDLExample I think I don't have to do nothing here, only in MDL swc library 2017-01-20 9:04 GMT+01:00 Christofer Dutz <christofer.d...@c-ware.de>: > If your class is in a typedef module, be sure to reference it as a typedef > in maven. > > While a normal swc is imported by: > <dependency> > <groupId>org.apache.flex.flexjs.framework</groupId> > <artifactId>Core</artifactId> > <version>0.8.0-SNAPSHOT</version> > <type>swc</type> > </dependency> > > For example, a typedef needs a classifier such as: > <dependency> > <groupId>org.apache.flex.flexjs.framework</groupId> > <artifactId>Graphics</artifactId> > <version>0.8.0-SNAPSHOT</version> > <type>swc</type> > <classifier>typedefs</classifier> > </dependency> > > Chris > > > > Am 20.01.17, 01:21 schrieb "Alex Harui" <aha...@adobe.com>: > > Make sure it got converted to AS files. Look in the > target/generated-sources/externc for the .as files. > > -Alex > > On 1/19/17, 3:57 PM, "carlos.rov...@gmail.com on behalf of Carlos > Rovira" > <carlos.rov...@gmail.com on behalf of carlos.rov...@codeoscopic.com> > wrote: > > >I remove the class dialogPolyfill class from MDL swc > >and try to insert this in typedefs js project missing.js > > > >/** > > * @type {!HTMLDocument} > > */ > >var dialogPolyfill = {}; > > > >/** > > * @param {!Element} element to upgrade, if necessary > > */ > >dialogPolyfill.registerDialog = function(element) {}; > > > > > >but MDL swc couldn't find this > > > >I suppose I must do something more, but don't know > > > >Is there some docs ? I'm lost at all with this typedef thing :? > > > > > > > >2017-01-20 0:02 GMT+01:00 Carlos Rovira < > carlos.rov...@codeoscopic.com>: > > > >> So to avoid create a new project to such little thing, I should put > that > >> code in typedefs repo better? maybe in "js" project? > >> > >> right? > >> > >> 2017-01-19 23:49 GMT+01:00 Alex Harui <aha...@adobe.com>: > >> > >>> 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.rov...@gmail.com on behalf of Carlos > >>>Rovira" > >>> <carlos.rov...@gmail.com on behalf of carlosrov...@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/exampl > >>> es/flexjs/MDLEx > >>> >ample/target/javascript/bin/js-debug/models/ListsModel.js > >>> >Compiling file: > >>> >/Users/carlosrovira/Dev/Flex/source/flexjs/flex-asjs/exampl > >>> es/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/framewor > >>> k/playerglobal/ > >>> >20.0/playerglobal-20.0.swc > >>> >using SWC: > >>> >/Users/carlosrovira/.m2/repository/org/apache/flex/flexjs/f > >>> ramework/Materi > >>> >alDesignLite/0.8.0-SNAPSHOT/MaterialDesignLite-0.8.0-SNAPSHOT.swc > >>> >using SWC: > >>> >/Users/carlosrovira/.m2/repository/org/apache/flex/flexjs/f > >>> ramework/Core/0 > >>> >.8.0-SNAPSHOT/Core-0.8.0-SNAPSHOT.swc > >>> >using SWC: > >>> >/Users/carlosrovira/.m2/repository/org/apache/flex/flexjs/f > >>> ramework/Langua > >>> >ge/0.8.0-SNAPSHOT/Language-0.8.0-SNAPSHOT.swc > >>> >using SWC: > >>> >/Users/carlosrovira/.m2/repository/org/apache/flex/flexjs/f > >>> ramework/HTML/0 > >>> >.8.0-SNAPSHOT/HTML-0.8.0-SNAPSHOT.swc > >>> >using SWC: > >>> >/Users/carlosrovira/.m2/repository/org/apache/flex/flexjs/f > >>> ramework/Collec > >>> >tions/0.8.0-SNAPSHOT/Collections-0.8.0-SNAPSHOT.swc > >>> >using SWC: > >>> >/Users/carlosrovira/.m2/repository/org/apache/flex/flexjs/f > >>> ramework/Bindin > >>> >g/0.8.0-SNAPSHOT/Binding-0.8.0-SNAPSHOT.swc > >>> >using SWC: > >>> >/Users/carlosrovira/.m2/repository/org/apache/flex/flexjs/f > >>> ramework/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.addD > >>> eps(GoogDepsWri > >>> >ter.java:174)org.apache.flex.compiler.internal.graph.GoogDe > >>> psWriter.addDep > >>> >s(GoogDepsWriter.java:208)org.apache.flex.compiler.internal > >>> .graph.GoogDeps > >>> >Writer.addDeps(GoogDepsWriter.java:208)org.apache.flex.comp > >>> iler.internal.g > >>> >raph.GoogDepsWriter.addDeps(GoogDepsWriter.java:208)org.apa > >>> che.flex.compil > >>> >er.internal.graph.GoogDepsWriter.addDeps(GoogDepsWriter.jav > >>> a:208)org.apach > >>> >e.flex.compiler.internal.graph.GoogDepsWriter.addDeps(GoogD > >>> epsWriter.java: > >>> >208)org.apache.flex.compiler.internal.graph.GoogDepsWriter. > >>> buildDB(GoogDep > >>> >sWriter.java:125)org.apache.flex.compiler.internal.graph.Go > >>> ogDepsWriter.ge > >>> >tListOfFiles(GoogDepsWriter.java:84)org.apache.flex.compile > >>> r.internal.code > >>> >gen.mxml.flexjs.MXMLFlexJSPublisher.publish(MXMLFlexJSPubli > >>> sher.java:308)o > >>> >rg.apache.flex.compiler.clients.MXMLJSC.compile(MXMLJSC.jav > >>> a:455)org.apach > >>> >e.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:31 > >>> 3)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.pl > >>> ugin.DefaultBui > >>> >ldPluginManager.executeMojo(DefaultBuildPluginManager.java: > >>> 134)org.apache. > >>> >maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor. > >>> java:207)org.ap > >>> >ache.maven.lifecycle.internal.MojoExecutor.execute(MojoExec > >>> utor.java:153)o > >>> >rg.apache.maven.lifecycle.internal.MojoExecutor.execute(Moj > >>> oExecutor.java: > >>> >145)org.apache.maven.lifecycle.internal.LifecycleModuleBuil > >>> der.buildProjec > >>> >t(LifecycleModuleBuilder.java:116)org.apache.maven.lifecycl > >>> e.internal.Life > >>> >cycleModuleBuilder.buildProject(LifecycleModuleBuilder.java > >>> :80)org.apache. > >>> >maven.lifecycle.internal.builder.singlethreaded.SingleThrea > >>> dedBuilder.buil > >>> >d(SingleThreadedBuilder.java:51)org.apache.maven.lifecycle. > >>> internal.Lifecy > >>> >cleStarter.execute(LifecycleStarter.java:128)org.apache.mav > >>> en.DefaultMaven > >>> >.doExecute(DefaultMaven.java:307)org.apache.maven.DefaultMa > >>> ven.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.mave > >>> n.cli.MavenCli. > >>> >main(MavenCli.java:199)sun.reflect.NativeMethodAccessorImpl > >>> .invoke0(Native > >>> >Method)sun.reflect.NativeMethodAccessorImpl.invoke(NativeMe > >>> thodAccessorImp > >>> >l.java:62)sun.reflect.DelegatingMethodAccessorImpl.invoke(D > >>> elegatingMethod > >>> >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.launc > >>> h(Launcher.java > >>> >:229)org.codehaus.plexus.classworlds.launcher.Launcher.main > >>> WithExitCode(La > >>> >uncher.java:415)org.codehaus.plexus.classworlds.launcher.La > >>> uncher.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-S > >>> NAPSHOT: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 > >>> > >>> > >> > >> > >> -- > >> > >> Carlos Rovira > >> Director General > >> M: +34 607 22 60 05 <607%2022%2060%2005> > >> http://www.codeoscopic.com > >> http://www.avant2.es > >> > >> Este mensaje se dirige exclusivamente a su destinatario y puede > contener > >> información privilegiada o confidencial. Si ha recibido este > mensaje por > >> error, le rogamos que nos lo comunique inmediatamente por esta misma > >>vía y > >> proceda a su destrucción. > >> > >> De la vigente Ley Orgánica de Protección de Datos (15/1999), le > >> comunicamos que sus datos forman parte de un fichero cuyo > responsable es > >> CODEOSCOPIC S.A. La finalidad de dicho tratamiento es facilitar la > >> prestación del servicio o información solicitados, teniendo usted > >>derecho > >> de acceso, rectificación, cancelación y oposición de sus datos > >>dirigiéndose > >> a nuestras oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la > >> documentación necesaria. > >> > >> > > > > > >-- > > > >Carlos Rovira > >Director General > >M: +34 607 22 60 05 <607%2022%2060%2005> > >http://www.codeoscopic.com > >http://www.avant2.es > > > >Este mensaje se dirige exclusivamente a su destinatario y puede > contener > >información privilegiada o confidencial. Si ha recibido este mensaje > por > >error, le rogamos que nos lo comunique inmediatamente por esta misma > vía y > >proceda a su destrucción. > > > >De la vigente Ley Orgánica de Protección de Datos (15/1999), le > >comunicamos > >que sus datos forman parte de un fichero cuyo responsable es > CODEOSCOPIC > >S.A. La finalidad de dicho tratamiento es facilitar la prestación del > >servicio o información solicitados, teniendo usted derecho de acceso, > >rectificación, cancelación y oposición de sus datos dirigiéndose a > >nuestras > >oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la > documentación > >necesaria. > > > > -- Carlos Rovira Director General M: +34 607 22 60 05 http://www.codeoscopic.com http://www.avant2.es Este mensaje se dirige exclusivamente a su destinatario y puede contener información privilegiada o confidencial. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción. De la vigente Ley Orgánica de Protección de Datos (15/1999), le comunicamos que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC S.A. La finalidad de dicho tratamiento es facilitar la prestación del servicio o información solicitados, teniendo usted derecho de acceso, rectificación, cancelación y oposición de sus datos dirigiéndose a nuestras oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación necesaria.