Hi Harbs,

although I like asconfigc very much since it is very clean, maven config
seems to me very good with Greg improvements. This is an example of the
config in the project I shared here recently. Since we can set any option
in a line, it's very clean for additional options, that used to be the main
problem. The rest is xml that is already clean too:

<configuration>
<mainClass>App.mxml</mainClass>
<targets>JSRoyale</targets>
<debug>false</debug>
<htmlTemplate>${basedir}/src/main/resources/avant2-index-template.html</
htmlTemplate>
<additionalCompilerOptions>
-js-default-initializers=true;
-source-map=true;
-compiler.exclude-defaults-css-files=MXRoyale-${royale.framework.version}-js.swc:defaults.css;
-keep-as3-metadata+=Inject,Dispatcher,EventHandler,PostConstruct,PreDestroy,ViewAdded,ViewRemoved,Bindable,Transient;
-keep-code-with-metadata=Inject;
-js-dynamic-access-unknown-members=true; <!-- to access JSON object graph
subobjects -->
</additionalCompilerOptions>
<defines>
<property>
<name>BUILD::buildNumber</name>
<value>'"${buildTimestamp}"'</value>
</property>
<property>
<name>BUILD::buildVersion</name>
<value>'"${project.version}"'</value>
</property>
</defines>
</configuration>

El vie., 14 ago. 2020 a las 17:03, Harbs (<harbs.li...@gmail.com>) escribió:

>
>
> > On Aug 14, 2020, at 4:28 PM, Christofer Dutz <christofer.d...@c-ware.de>
> wrote:
> >
> > 1) Make the private constructors work
>
> Use -allow-private-constructors=true
>
> Here is some of the options I have in my asconfigc file (where I’m using
> private constructors):
>     "additionalOptions": "-js-output-optimization=skipAsCoercions
> -js-dynamic-access-unknown-members=true -allow-private-constructors=true
> -js-complex-implicit-coercions=false -js-vector-index-checks=false"
>
> FWIW, I find asconfigc by far the easiest way to define the options for
> building projects.
>
> > 2) Make the getQualifiedClassName work
>
> No idea why this is not working for you. I’m definitely using
> getQualifiedClassName, but I don’t know if I used it with private
> constructors, so there might be an issue with that. Maybe resolving #1 will
> fix #2?



-- 
Carlos Rovira
http://about.me/carlosrovira

Reply via email to