BTW I meant 20 seconds 80 was a typo.

Yeah I had mentioned that to Josh about the closure library, he said he
might do something about just copying base.js if using jsc.

Mike

On Fri, Apr 1, 2016 at 10:47 AM, Alex Harui <aha...@adobe.com> wrote:

> I think jsc (and for sure mxmljsc) have both a compilation and a
> "publishing" phase.  You could be seeing the effects of the publishing
> phase which has not been optimized at all.  The mxmljsc publisher copies
> the entire Google Closure Library into your bin/js-debug folder, and in my
> unscientific testing, that takes a long time.  I don't even know if jsc
> needs any GCL code.  I've thought about writing a "smarter" copy that only
> copies the GCL files we need, or even better, deletes the files we don't
> need from the base copy in the FlexJS folder so there is less to copy each
> time.  The reason we don't do that know is that we don't know if some
> folks will want to use more of GCL in their project, and because GCL
> doesn't have a 1:1 goog.provide to file name mapping so it does require a
> bit more work to be smart.  As always, volunteers are welcome to work on
> improving this.
>
> -Alex
>
> On 4/1/16, 3:45 AM, "Michael Schmalle" <teotigraphix...@gmail.com> wrote:
>
> >What are your compile times? I was testing in IDEA and it seemed like 80
> >seconds was as fast as I could get a full compile with jsc and a 1 class
> >project.
> >
> >I know with Randori compiler I had it conditionally compiling, there has
> >got to be a way to conditionally compile this JS, that is the only thing
> >that bothered me yesterday when I tried RC2.
> >
> >Mike
> >
> >On Fri, Apr 1, 2016 at 4:13 AM, OmPrakash Muppirala <bigosma...@gmail.com
> >
> >wrote:
> >
> >> That worked!!
> >>
> >> FalconJX + AngularJS + Angular Material  = unbelievable!
> >>
> >> Will post some examples soon :-)
> >>
> >> Thanks,
> >> Om
> >>
> >> On Thu, Mar 31, 2016 at 7:51 PM, Josh Tynjala <joshtynj...@gmail.com>
> >> wrote:
> >>
> >> > 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.s
> >>>wc
> >> > > >  -library-path+=
> >> > > >
> >> > >
> >> >
> >>
> >>>C:\p\flexroot\git\flex-asjs\examples\native\AngularExample\lib\angularma
> >>>te
> >> > > >rial.swc
> >> > > >  -library-path+=
> >> > > >
> >> > >
> >> >
> >>
> >>>C:\p\flexroot\git\flex-asjs\examples\native\AngularExample\lib\jquery.sw
> >>>c
> >> > > >  -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\AngularEx
> >>>am
> >> > > >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(GoogDepsW
> >>>ri
> >> > > >ter.java:179)
> >> > > >at
> >> > >
> >> >
> >>
> >>>org.apache.flex.compiler.internal.graph.GoogDepsWriter.addDeps(GoogDepsW
> >>>ri
> >> > > >ter.java:213)
> >> > > >at
> >> > >
> >> >
> >>
> >>>org.apache.flex.compiler.internal.graph.GoogDepsWriter.buildDB(GoogDepsW
> >>>ri
> >> > > >ter.java:130)
> >> > > >at
> >> > >
> >> >
> >>
> >>>org.apache.flex.compiler.internal.graph.GoogDepsWriter.getListOfFiles(Go
> >>>og
> >> > > >DepsWriter.java:82)
> >> > > >at
> >> > >
> >> >
> >>
> >>>org.apache.flex.compiler.internal.codegen.mxml.flexjs.MXMLFlexJSPublishe
> >>>r.
> >> > > >publish(MXMLFlexJSPublisher.java:334)
> >> > > >at
> >>org.apache.flex.compiler.clients.MXMLJSC.compile(MXMLJSC.java:474)
> >> > > >at
> >> > >
> >> >
> >>
> >>>com.powerflasher.fdt.core.compile.concrete.MxmlCompiler.compile(MxmlComp
> >>>il
> >> > > >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(MxmlC
> >>>om
> >> > > >piler.java:109)
> >> > > >at
> >> > >
> >> >
> >>
> >>>com.powerflasher.fdt.core.compile.concrete.MxmlCompiler.start(MxmlCompil
> >>>er
> >> > > >.java:87)
> >> > > >at
> >> > >
> >> >
> >>
> >>>com.powerflasher.fdt.core.compile.concrete.MxmlCompiler.staticStart(Mxml
> >>>Co
> >> > > >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.AscApplicationBuilde
> >>>r.
> >> > > >build(AscApplicationBuilder.java:123)
> >> > > >at
> >> > >
> >> >
> >>
> >>>com.powerflasher.fdt.core.internal.launch.compile.concrete.CompilerRunna
> >>>bl
> >> > > >e.run(CompilerRunnable.java:141)
> >> > > >at
> >> > >
> >> >
> >>
> >>>com.powerflasher.fdt.core.internal.launch.compile.concrete.CompilerProce
> >>>ss
> >> > > >$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.
> >> > >
> >> > >
> >> >
> >>
>
>

Reply via email to