Yep, you need to use -external-library-path instead. An externs SWC only defines the APIs for compile-time checks. The real code needs to come from a <script> tag in your HTML.
Externs SWCs are very similar to playerglobal.swc. They define the interface, but the implementation comes from elsewhere. - Josh On Mar 31, 2016 7:38 PM, "Alex Harui" <aha...@adobe.com> wrote: > Looks like angular is on the regular -library-path not the > -external-library-path > > -Alex > > On 3/31/16, 7:32 PM, "OmPrakash Muppirala" <omup...@gmail.com> wrote: > > >How do I specify the path to a js file to the compiler? Is there a > >compiler var I can set? > > > > > >I am trying add support for AngularJS/Angular Material Design using > >FalconJX. I am building angular.swc and angularmaterial.swc using Josh's > >dts2as [1] tool. > > > >When I am trying to build an app using FDT like this: > > > >Starting Launcher AngularExample-debug. > > > >Using: Apache FlexJS Compiler > >Adapter: Apache FlexJS 0.5 Compiler Adapter > >Starting Full Build of AngularExample-debug. > >Compiler arguments: > > -output > > C:\p\flexroot\git\flex-asjs\examples\native\AngularExample > > +flexlib=C:\Program > > Files\Adobe\Adobe Flash Builder 4.7 > > (64 > > Bit)\sdks\flexjs_nightly_0.6.0\frameworks > > -debug=false > > -source-path+= > > C:\p\flexroot\git\flex-asjs\examples\native\AngularExample\src > > -library-path+=C:\Program > > Files\Adobe\Adobe Flash Builder 4.7 > > (64 > > > >Bit)\sdks\flexjs_nightly_0.6.0\frameworks\libs\player\20.0\playerglobal.sw > >c > > -library-path+=C:\Program > > Files\Adobe\Adobe Flash Builder 4.7 > > (64 > > Bit)\sdks\flexjs_nightly_0.6.0\js\libs\js.swc > > -library-path+= > > > >C:\p\flexroot\git\flex-asjs\examples\native\AngularExample\lib\angular.swc > > -library-path+= > > > >C:\p\flexroot\git\flex-asjs\examples\native\AngularExample\lib\angularmate > >rial.swc > > -library-path+= > > > >C:\p\flexroot\git\flex-asjs\examples\native\AngularExample\lib\jquery.swc > > -external-library-path+=C:\Program > > Files\Adobe\Adobe Flash Builder 4.7 > > (64 > > > >Bit)\sdks\flexjs_nightly_0.6.0\frameworks\libs\player\20.0\playerglobal.sw > >c > > -external-library-path+=C:\Program > > Files\Adobe\Adobe Flash Builder 4.7 > > (64 > > Bit)\sdks\flexjs_nightly_0.6.0\js\libs\js.swc > > -js-output-type=jsc > > -target-player=20.0 > > -static-link-runtime-shared-libraries= > > false > > -define=CONFIG::AUTHOR,"omuppirala" > > -define=CONFIG::DEBUG,false > > -- > > > >C:\p\flexroot\git\flex-asjs\examples\native\AngularExample\src\AngularExam > >ple.as > > > >, the build fails with these errors: > > > > > >ERROR File not found: angular > > > > > >ERROR Internal error: java.lang.RuntimeException: Unable to find > >JavaScript > >filePath for class: angular > >at > >org.apache.flex.compiler.internal.graph.GoogDepsWriter.addDeps(GoogDepsWri > >ter.java:179) > >at > >org.apache.flex.compiler.internal.graph.GoogDepsWriter.addDeps(GoogDepsWri > >ter.java:213) > >at > >org.apache.flex.compiler.internal.graph.GoogDepsWriter.buildDB(GoogDepsWri > >ter.java:130) > >at > >org.apache.flex.compiler.internal.graph.GoogDepsWriter.getListOfFiles(Goog > >DepsWriter.java:82) > >at > >org.apache.flex.compiler.internal.codegen.mxml.flexjs.MXMLFlexJSPublisher. > >publish(MXMLFlexJSPublisher.java:334) > >at org.apache.flex.compiler.clients.MXMLJSC.compile(MXMLJSC.java:474) > >at > >com.powerflasher.fdt.core.compile.concrete.MxmlCompiler.compile(MxmlCompil > >er.java:104) > >at org.apache.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:353) > >at org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:278) > >at > >com.powerflasher.fdt.core.compile.concrete.MxmlCompiler.mainNoExit(MxmlCom > >piler.java:109) > >at > >com.powerflasher.fdt.core.compile.concrete.MxmlCompiler.start(MxmlCompiler > >.java:87) > >at > >com.powerflasher.fdt.core.compile.concrete.MxmlCompiler.staticStart(MxmlCo > >mpiler.java:34) > >at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > >at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > >at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > >at java.lang.reflect.Method.invoke(Unknown Source) > >at > >com.powerflasher.fdt.core.internal.launch.ascDirect.AscApplicationBuilder. > >build(AscApplicationBuilder.java:123) > >at > >com.powerflasher.fdt.core.internal.launch.compile.concrete.CompilerRunnabl > >e.run(CompilerRunnable.java:141) > >at > >com.powerflasher.fdt.core.internal.launch.compile.concrete.CompilerProcess > >$2.run(CompilerProcess.java:315) > > > > > > > >INFO 30.585347607 seconds > > > >Pure build time: 30585 ms. > >Could not create file > >C:\p\flexroot\git\flex-asjs\examples\native\AngularExample. > >Build failed. > >