On 12/5/16, 8:50 AM, "Christofer Dutz" <christofer.d...@c-ware.de> wrote:

>Or define the width and height in the build and inject the values as
>defines?
>Would reduce it back to one place ☺

It would probably still need to be set on the MXML tag.

   <js:Application width="..."

Would folks want to write their MXML as a template with replaceable
variables?

   <js:Application width="${widthFromPOM}"


I don't really have an opinion either way.  Is there precedence in Maven
for how this is typically done?

-Alex


>
>Chris
>
>Am 05.12.16, 17:05 schrieb "Alex Harui" <aha...@adobe.com>:
>
>    The interesting question here is whether the compiler should somehow
>help
>    the generation of the html wrapper since the compiler knows some
>    information that the developer would otherwise have to duplicate,
>such as
>    the width, height, and potentially the title and maybe other
>properties.
>    These are MXML properties and the compiler can automatically see that
>you
>    set width="500" or width="100$" and copy that to the output.
>Otherwise,
>    if you decide to change your width to 700, you will have to change it
>in
>    two places.
>    

Reply via email to