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] Make the closure compilation use the closure jar instead of an exploded directory
Date Sun, 23 Oct 2016 14:28:11 GMT


On 10/23/16, 3:10 AM, "Christofer Dutz" <christofer.dutz@c-ware.de> wrote:

>Hi,
>
>
>I was thinking about how to speed up the build time of application
>compilation for the maven build. Currently as part of the build, I take
>the closure library and expand it to the current modules target
>directory, which is taking quite some time (and when cleaning up). I was
>thinking about ways to do this differently (for example expanding it to a
>temp directory once and referencing it wherever I need it in the build).
>
>
>Then I thought about it that the closure guys don't expand the resources,
>but directly use the resources from the jar. It should be possible for us
>to do the same. I guess this expansion requirement is a relic from the
>times where the flexjs compiler required to have the js files in an
>expanded form.
>
>
>Would it be possible to change the closure compilation part to use the
>closure lib as a jar and not a directory? I guess this would speed up
>compilation dramatically as accessing resources from a jar in the
>classpath is way faster than accessing them from the filesystem
>individually.
>

The history behind where we are is that for non-Maven users, folks wanted
to bundle the closure files in the FlexJS binary release artifact in order
to save on another download that could go wrong.  This ended up meaning
that we had to work from a subset of the GCL because the full GCL contains
what looks like crypto code and stuff from third-parties that complicate
Apache licensing and export requirements.  So right now, we only bundle 27
files from GCL, and I don't expect that list to grow any longer.

So maybe the answer is to pack these 27 files into one of the FalconJX
jars and copy from there.  Then we still don't have to download the full
GCL and don't have licensing and export issues.

Thoughts?
-Alex

Mime
View raw message