You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Carlos Rovira <ca...@apache.org> on 2019/07/22 14:49:46 UTC
library-path changes
Hi,
after latest changes with "library-path" I'm trying to update my project
with no luck.
Hope someone could let me know some guide since all what I tried didn't
work and always get this:
[*INFO*] *--- *royale-maven-plugin:0.9.6-SNAPSHOT:compile-as
*(default-compile-as)* @ royalejewel* ---*
[*INFO*] Executing COMPC in tool group Royale with args:
[-load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml,
-js-default-initializers=false, -source-map=true,
-compiler.targets=SWF,JSRoyale, -compiler.strict-xml=true]
args:
-load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
-js-default-initializers=false
-source-map=true
-compiler.targets=SWF,JSRoyale
-compiler.strict-xml=true
target:SWF
target:JSRoyale
COMPC
Loading configuration:
/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
Error: Missing builtin type Object
Missing builtin type Object
0.553372072 seconds
this is failing when maven tries to compile the first library project
Thanks for any light on this
--
Carlos Rovira
http://about.me/carlosrovira
Re: library-path changes
Posted by Carlos Rovira <ca...@apache.org>.
ops, forget my latest mensaje about define, I was confused and now I see
that is just a "define" :?
sorry
Re: library-path changes
Posted by Carlos Rovira <ca...@apache.org>.
one more thing that is strange to me is this part:
<define>
<name>COMPILE::SWF</name>
<value>true</value>
</define>
<define>
<name>COMPILE::JS</name>
<value>false</value>
</define>
Since I don't use SWF (although it does not care if SWF config is in the
project), but should be JS true and SWF true or false.
El lun., 22 jul. 2019 a las 17:20, Carlos Rovira (<ca...@apache.org>)
escribió:
> Hi Josh,
>
> playerglobal.swc is ok, but can you point me to some place where "js.swc"
> is used?
>
> contents of compile-swf-config.xml are the following:
>
> <!--
>
> Copyright (C) 2009, Codeoscopic S.A. - All Rights Reserved
> Unauthorized copying of this file, via any medium is strictly prohibited
> Proprietary and confidential
>
> Copyright (C) 2009, Codeoscopic S.A. - Todos Los Derechos Reservados
> La copia no autorizada de este archivo, a través de cualquier medio está
> estrictamente prohibida
> Privado y confidencial
>
> -->
> <royale-config>
>
> <compiler>
> <accessible>false</accessible>
> <!-- build both SWF and JS. -->
> <targets>
> <target>SWF</target>
> <target>JSRoyale</target>
> </targets>
> <strict-xml>true</strict-xml>
>
> <external-library-path>
> <path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</
> path-element>
> <path-element>../../../../../libs/Binding.swc</path-element>
> <path-element>../../../../../libs/Core.swc</path-element>
> <path-element>../../../../../libs/Graphics.swc</path-element>
> <path-element>../../../../../libs/Collections.swc</path-element>
> <path-element>../../../../../libs/Basic.swc</path-element>
> </external-library-path>
> <allow-subclass-overrides>true</allow-subclass-overrides>
> <mxml>
> <children-as-data>true</children-as-data>
> </mxml>
> <binding-value-change-event>
> org.apache.royale.events.ValueChangeEvent</binding-value-change-event>
> <binding-value-change-event-kind>
> org.apache.royale.events.ValueChangeEvent</binding-value-change-event-kind
> >
> <binding-value-change-event-type>valueChange</
> binding-value-change-event-type>
>
> <define>
> <name>COMPILE::SWF</name>
> <value>true</value>
> </define>
> <define>
> <name>COMPILE::JS</name>
> <value>false</value>
> </define>
>
> <keep-as3-metadata>
> <name>Bindable</name>
> <name>Managed</name>
> <name>ChangeEvent</name>
> <name>NonCommittingChangeEvent</name>
> <name>Transient</name>
> </keep-as3-metadata>
>
> <locale/>
> <library-path/>
>
> <namespaces>
> <namespace>
> <uri>library://ns.apache.org/royale/basic</uri>
> <manifest>../resources/icons-manifest.xml</manifest>
> </namespace>
> </namespaces>
> <source-path>
> <path-element>../royale</path-element>
> </source-path>
> <warn-no-constructor>false</warn-no-constructor>
> </compiler>
> <include-classes>
> <class>IconsClasses</class>
> </include-classes>
> <include-namespaces>
> <uri>library://ns.apache.org/royale/basic</uri>
> </include-namespaces>
> <target-player>${playerglobal.version}</target-player>
>
> </royale-config>
>
>
>
> I don't know too much about this file, have we docs about it?
> the compiler generates the file itself?
> it uses the global config.xml as a base?
>
> thanks Josh
>
>
> El lun., 22 jul. 2019 a las 17:01, Josh Tynjala (<
> joshtynjala@bowlerhat.dev>) escribió:
>
>> Error: Missing builtin type Object
>>
>> This error usually means that either playerglobal.swc or js.swc is
>> missing.
>>
>> It would be difficult to suggest anything more without seeing the contents
>> of compile-swf-config.xml.
>>
>> --
>> Josh Tynjala
>> Bowler Hat LLC <https://bowlerhat.dev>
>>
>>
>> On Mon, Jul 22, 2019 at 7:50 AM Carlos Rovira <ca...@apache.org>
>> wrote:
>>
>> > Hi,
>> >
>> > after latest changes with "library-path" I'm trying to update my project
>> > with no luck.
>> >
>> > Hope someone could let me know some guide since all what I tried didn't
>> > work and always get this:
>> >
>> > [*INFO*] *--- *royale-maven-plugin:0.9.6-SNAPSHOT:compile-as
>> > *(default-compile-as)* @ royalejewel* ---*
>> >
>> > [*INFO*] Executing COMPC in tool group Royale with args:
>> >
>> >
>> [-load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml,
>> > -js-default-initializers=false, -source-map=true,
>> > -compiler.targets=SWF,JSRoyale, -compiler.strict-xml=true]
>> >
>> > args:
>> >
>> >
>> >
>> -load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
>> >
>> > -js-default-initializers=false
>> >
>> > -source-map=true
>> >
>> > -compiler.targets=SWF,JSRoyale
>> >
>> > -compiler.strict-xml=true
>> >
>> > target:SWF
>> >
>> > target:JSRoyale
>> >
>> > COMPC
>> >
>> > Loading configuration:
>> >
>> >
>> /Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
>> >
>> >
>> > Error: Missing builtin type Object
>> >
>> >
>> >
>> > Missing builtin type Object
>> >
>> >
>> >
>> > 0.553372072 seconds
>> >
>> > this is failing when maven tries to compile the first library project
>> >
>> > Thanks for any light on this
>> >
>> > --
>> > Carlos Rovira
>> > http://about.me/carlosrovira
>> >
>>
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
>
--
Carlos Rovira
http://about.me/carlosrovira
Re: library-path changes
Posted by Josh Tynjala <jo...@bowlerhat.dev>.
You created compile-swf-config.xml in your own project. It is not generated
by the compiler.
You are loading it with this compiler option:
-load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
Normally, it would extend the defaults in frameworks/royale-config.xml from
your SDK. Since you build with Maven, it is probably extending some
defaults defined by the Royale Maven plugin (or maybe the Royale Maven
plugin just uses the compiler's defaults).
js.swc is the main typedefs SWC for JS. This is clearly a SWF build,
though, so it is not relevant right now.
If I had to guess, it's having trouble finding airglobal.swc, since that is
where the Object class would be defined for a SWF build. Maybe the AIR_HOME
environment variable is not set, or it is set to a value that makes this
path invalid:
<path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</
path-element>
--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>
On Mon, Jul 22, 2019 at 8:20 AM Carlos Rovira <ca...@apache.org>
wrote:
> Hi Josh,
>
> playerglobal.swc is ok, but can you point me to some place where "js.swc"
> is used?
>
> contents of compile-swf-config.xml are the following:
>
> <!--
>
> Copyright (C) 2009, Codeoscopic S.A. - All Rights Reserved
> Unauthorized copying of this file, via any medium is strictly prohibited
> Proprietary and confidential
>
> Copyright (C) 2009, Codeoscopic S.A. - Todos Los Derechos Reservados
> La copia no autorizada de este archivo, a través de cualquier medio está
> estrictamente prohibida
> Privado y confidencial
>
> -->
> <royale-config>
>
> <compiler>
> <accessible>false</accessible>
> <!-- build both SWF and JS. -->
> <targets>
> <target>SWF</target>
> <target>JSRoyale</target>
> </targets>
> <strict-xml>true</strict-xml>
>
> <external-library-path>
> <path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</
> path-element>
> <path-element>../../../../../libs/Binding.swc</path-element>
> <path-element>../../../../../libs/Core.swc</path-element>
> <path-element>../../../../../libs/Graphics.swc</path-element>
> <path-element>../../../../../libs/Collections.swc</path-element>
> <path-element>../../../../../libs/Basic.swc</path-element>
> </external-library-path>
> <allow-subclass-overrides>true</allow-subclass-overrides>
> <mxml>
> <children-as-data>true</children-as-data>
> </mxml>
> <binding-value-change-event>
> org.apache.royale.events.ValueChangeEvent</binding-value-change-event>
> <binding-value-change-event-kind>
> org.apache.royale.events.ValueChangeEvent</binding-value-change-event-kind>
> <binding-value-change-event-type>valueChange</
> binding-value-change-event-type>
>
> <define>
> <name>COMPILE::SWF</name>
> <value>true</value>
> </define>
> <define>
> <name>COMPILE::JS</name>
> <value>false</value>
> </define>
>
> <keep-as3-metadata>
> <name>Bindable</name>
> <name>Managed</name>
> <name>ChangeEvent</name>
> <name>NonCommittingChangeEvent</name>
> <name>Transient</name>
> </keep-as3-metadata>
>
> <locale/>
> <library-path/>
>
> <namespaces>
> <namespace>
> <uri>library://ns.apache.org/royale/basic</uri>
> <manifest>../resources/icons-manifest.xml</manifest>
> </namespace>
> </namespaces>
> <source-path>
> <path-element>../royale</path-element>
> </source-path>
> <warn-no-constructor>false</warn-no-constructor>
> </compiler>
> <include-classes>
> <class>IconsClasses</class>
> </include-classes>
> <include-namespaces>
> <uri>library://ns.apache.org/royale/basic</uri>
> </include-namespaces>
> <target-player>${playerglobal.version}</target-player>
>
> </royale-config>
>
>
>
> I don't know too much about this file, have we docs about it?
> the compiler generates the file itself?
> it uses the global config.xml as a base?
>
> thanks Josh
>
>
> El lun., 22 jul. 2019 a las 17:01, Josh Tynjala (<
> joshtynjala@bowlerhat.dev>)
> escribió:
>
> > Error: Missing builtin type Object
> >
> > This error usually means that either playerglobal.swc or js.swc is
> missing.
> >
> > It would be difficult to suggest anything more without seeing the
> contents
> > of compile-swf-config.xml.
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev>
> >
> >
> > On Mon, Jul 22, 2019 at 7:50 AM Carlos Rovira <ca...@apache.org>
> > wrote:
> >
> > > Hi,
> > >
> > > after latest changes with "library-path" I'm trying to update my
> project
> > > with no luck.
> > >
> > > Hope someone could let me know some guide since all what I tried didn't
> > > work and always get this:
> > >
> > > [*INFO*] *--- *royale-maven-plugin:0.9.6-SNAPSHOT:compile-as
> > > *(default-compile-as)* @ royalejewel* ---*
> > >
> > > [*INFO*] Executing COMPC in tool group Royale with args:
> > >
> > >
> >
> [-load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml,
> > > -js-default-initializers=false, -source-map=true,
> > > -compiler.targets=SWF,JSRoyale, -compiler.strict-xml=true]
> > >
> > > args:
> > >
> > >
> > >
> >
> -load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
> > >
> > > -js-default-initializers=false
> > >
> > > -source-map=true
> > >
> > > -compiler.targets=SWF,JSRoyale
> > >
> > > -compiler.strict-xml=true
> > >
> > > target:SWF
> > >
> > > target:JSRoyale
> > >
> > > COMPC
> > >
> > > Loading configuration:
> > >
> > >
> >
> /Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
> > >
> > >
> > > Error: Missing builtin type Object
> > >
> > >
> > >
> > > Missing builtin type Object
> > >
> > >
> > >
> > > 0.553372072 seconds
> > >
> > > this is failing when maven tries to compile the first library project
> > >
> > > Thanks for any light on this
> > >
> > > --
> > > Carlos Rovira
> > > http://about.me/carlosrovira
> > >
> >
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
Re: library-path changes
Posted by Alex Harui <ah...@adobe.com.INVALID>.
FWIW, "runtime" and "provided" are defined by Maven, not us.
https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Dependency_Scope
If the compiler currently treats them the same, there is no guarantee that it always will, so probably a good idea to choose the right scope when possible. I think you get validation warnings if you use other scopes.
HTH,
-Alex
On 7/24/19, 11:04 PM, "Carlos Rovira" <ca...@apache.org> wrote:
Hi Greg,
ok! I thought there was something more involved. About understanding better
how things work in maven plugin and know the reasons I think it could be
good to ask Chris Dutz about it, since he can give us the clues about all
of that.
Thanks!
El mié., 24 jul. 2019 a las 22:50, Greg Dove (<gr...@gmail.com>)
escribió:
> Hi Carlos,
>
> Just to clarify: I had wondered whether there were inconsistencies in the
> framework so I checked more on that before adding my previous post in this
> thread.
> It seems that
> <forceSwcExternalLibraryPath>true</forceSwcExternalLibraryPath> was
> achieving a similar result to using 'provided' for the (inter)dependencies
> inside each framework project, so my concerns were not valid.
>
> When I look inside royale-maven-plugin, I do see some minor differences
> with respect to "runtime" specifically but tbh I would need to spend more
> time to understand why it is doing what it does with a combination of
> classifier and scope checks specifically for "runtime" and not "provided".
> Other than those differences, I think "runtime" and "provided" do seem to
> be treated the same.
>
>
>
>
> On Thu, Jul 25, 2019 at 5:36 AM Carlos Rovira <ca...@apache.org>
> wrote:
>
> > Hi,
> >
> > if I understand correctly, both "runtime" and "provided" are right now
> > equal for the compiler, right? I'm ok to understand conceptually
> > "runtime" and "provided" as Greg says. At least for now, although if we
> can
> > inform the compiler to differentiate as well would be great.
> >
> > In the other hand, flemojos seems to me more natural ("merged",
> > "external",...) since is what we use to manage in Flex days and in
> > FlashBuilder,
> > but don't know if is worth it to go to that kind of names, or better go
> to
> > the standard maven names. If it was easy to add flemojos names, I'd
> choose
> > those, but since there's many things to do, maybe we can stick with what
> we
> > have.
> >
> > In the other hand, thanks to Greg, we have this config solved in our real
> > App now. But I think in the process of doing this fix I think Greg saw
> some
> > issues
> > at framework level for maven. Hope Greg can expose it better if that's
> the
> > case, since maybe I'm wrong.
> >
> > thanks
> >
> >
> >
> >
> > El mié., 24 jul. 2019 a las 2:15, Greg Dove (<gr...@gmail.com>)
> > escribió:
> >
> > > Just to add to the discussion on the 'provided' vs. 'runtime' scopes...
> > > I'm not really sure what scope name should be used for what, but here's
> > > what I have assumed:
> > > 'runtime' is for 'native' libs where the runtime provides the api
> surface
> > > that is represented by the swc. (playerglobal/ js-typedefs examples)
> > > 'provided' is for dependencies that are pre-compiled swc dependencies,
> > > where the dependency is expected to provided when the application is
> > built
> > > (in this case I have assumed it is explicitly listed as a dependency
> for
> > > the application build).
> > >
> > > I think these are different to what used to be the case with FlexMojos
> > (see
> > > 'Scope options in Flexmojos' [1])
> > > Also it seems that we don't do any of this in the framework project
> level
> > > poms, so I assume
> > > that <forceSwcExternalLibraryPath>true</forceSwcExternalLibraryPath> at
> > > frameworks/projects/pom.xml is a 'brute-force' override, simulating
> > > <scope>provided</provided> for each of the child framework projects'
> swc
> > > dependencies, and avoiding them being merged in for each of the
> framework
> > > swcs. I assume this might be another difference from [1] also, but I'm
> > not
> > > really sure as my only exposure to maven has been since FlexJS/Royale.
> > >
> > >
> > > 1.
> > >
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.adobe.com%2Fdevnet%2Fflex%2Farticles%2Fflex-maven-flexmojos-pt3.html&data=02%7C01%7Caharui%40adobe.com%7C55fe406c5d014327a6ab08d710c5e216%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636996314399207285&sdata=aN45RBB4qDpNC3hv6l8REsK8MrPg7rhGdNJ1O9YSU1g%3D&reserved=0
> > >
> > >
> > >
> > > --
> > Carlos Rovira
> > https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7C55fe406c5d014327a6ab08d710c5e216%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636996314399207285&sdata=oFSCR02tcBktUqN66pTw%2B549LpzG9Q1NK08erKayqMc%3D&reserved=0
> >
>
--
Carlos Rovira
https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7C55fe406c5d014327a6ab08d710c5e216%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636996314399207285&sdata=oFSCR02tcBktUqN66pTw%2B549LpzG9Q1NK08erKayqMc%3D&reserved=0
Re: library-path changes
Posted by Carlos Rovira <ca...@apache.org>.
Hi Greg,
ok! I thought there was something more involved. About understanding better
how things work in maven plugin and know the reasons I think it could be
good to ask Chris Dutz about it, since he can give us the clues about all
of that.
Thanks!
El mié., 24 jul. 2019 a las 22:50, Greg Dove (<gr...@gmail.com>)
escribió:
> Hi Carlos,
>
> Just to clarify: I had wondered whether there were inconsistencies in the
> framework so I checked more on that before adding my previous post in this
> thread.
> It seems that
> <forceSwcExternalLibraryPath>true</forceSwcExternalLibraryPath> was
> achieving a similar result to using 'provided' for the (inter)dependencies
> inside each framework project, so my concerns were not valid.
>
> When I look inside royale-maven-plugin, I do see some minor differences
> with respect to "runtime" specifically but tbh I would need to spend more
> time to understand why it is doing what it does with a combination of
> classifier and scope checks specifically for "runtime" and not "provided".
> Other than those differences, I think "runtime" and "provided" do seem to
> be treated the same.
>
>
>
>
> On Thu, Jul 25, 2019 at 5:36 AM Carlos Rovira <ca...@apache.org>
> wrote:
>
> > Hi,
> >
> > if I understand correctly, both "runtime" and "provided" are right now
> > equal for the compiler, right? I'm ok to understand conceptually
> > "runtime" and "provided" as Greg says. At least for now, although if we
> can
> > inform the compiler to differentiate as well would be great.
> >
> > In the other hand, flemojos seems to me more natural ("merged",
> > "external",...) since is what we use to manage in Flex days and in
> > FlashBuilder,
> > but don't know if is worth it to go to that kind of names, or better go
> to
> > the standard maven names. If it was easy to add flemojos names, I'd
> choose
> > those, but since there's many things to do, maybe we can stick with what
> we
> > have.
> >
> > In the other hand, thanks to Greg, we have this config solved in our real
> > App now. But I think in the process of doing this fix I think Greg saw
> some
> > issues
> > at framework level for maven. Hope Greg can expose it better if that's
> the
> > case, since maybe I'm wrong.
> >
> > thanks
> >
> >
> >
> >
> > El mié., 24 jul. 2019 a las 2:15, Greg Dove (<gr...@gmail.com>)
> > escribió:
> >
> > > Just to add to the discussion on the 'provided' vs. 'runtime' scopes...
> > > I'm not really sure what scope name should be used for what, but here's
> > > what I have assumed:
> > > 'runtime' is for 'native' libs where the runtime provides the api
> surface
> > > that is represented by the swc. (playerglobal/ js-typedefs examples)
> > > 'provided' is for dependencies that are pre-compiled swc dependencies,
> > > where the dependency is expected to provided when the application is
> > built
> > > (in this case I have assumed it is explicitly listed as a dependency
> for
> > > the application build).
> > >
> > > I think these are different to what used to be the case with FlexMojos
> > (see
> > > 'Scope options in Flexmojos' [1])
> > > Also it seems that we don't do any of this in the framework project
> level
> > > poms, so I assume
> > > that <forceSwcExternalLibraryPath>true</forceSwcExternalLibraryPath> at
> > > frameworks/projects/pom.xml is a 'brute-force' override, simulating
> > > <scope>provided</provided> for each of the child framework projects'
> swc
> > > dependencies, and avoiding them being merged in for each of the
> framework
> > > swcs. I assume this might be another difference from [1] also, but I'm
> > not
> > > really sure as my only exposure to maven has been since FlexJS/Royale.
> > >
> > >
> > > 1.
> > >
> https://www.adobe.com/devnet/flex/articles/flex-maven-flexmojos-pt3.html
> > >
> > >
> > >
> > > --
> > Carlos Rovira
> > http://about.me/carlosrovira
> >
>
--
Carlos Rovira
http://about.me/carlosrovira
Re: library-path changes
Posted by Greg Dove <gr...@gmail.com>.
Hi Carlos,
Just to clarify: I had wondered whether there were inconsistencies in the
framework so I checked more on that before adding my previous post in this
thread.
It seems that
<forceSwcExternalLibraryPath>true</forceSwcExternalLibraryPath> was
achieving a similar result to using 'provided' for the (inter)dependencies
inside each framework project, so my concerns were not valid.
When I look inside royale-maven-plugin, I do see some minor differences
with respect to "runtime" specifically but tbh I would need to spend more
time to understand why it is doing what it does with a combination of
classifier and scope checks specifically for "runtime" and not "provided".
Other than those differences, I think "runtime" and "provided" do seem to
be treated the same.
On Thu, Jul 25, 2019 at 5:36 AM Carlos Rovira <ca...@apache.org>
wrote:
> Hi,
>
> if I understand correctly, both "runtime" and "provided" are right now
> equal for the compiler, right? I'm ok to understand conceptually
> "runtime" and "provided" as Greg says. At least for now, although if we can
> inform the compiler to differentiate as well would be great.
>
> In the other hand, flemojos seems to me more natural ("merged",
> "external",...) since is what we use to manage in Flex days and in
> FlashBuilder,
> but don't know if is worth it to go to that kind of names, or better go to
> the standard maven names. If it was easy to add flemojos names, I'd choose
> those, but since there's many things to do, maybe we can stick with what we
> have.
>
> In the other hand, thanks to Greg, we have this config solved in our real
> App now. But I think in the process of doing this fix I think Greg saw some
> issues
> at framework level for maven. Hope Greg can expose it better if that's the
> case, since maybe I'm wrong.
>
> thanks
>
>
>
>
> El mié., 24 jul. 2019 a las 2:15, Greg Dove (<gr...@gmail.com>)
> escribió:
>
> > Just to add to the discussion on the 'provided' vs. 'runtime' scopes...
> > I'm not really sure what scope name should be used for what, but here's
> > what I have assumed:
> > 'runtime' is for 'native' libs where the runtime provides the api surface
> > that is represented by the swc. (playerglobal/ js-typedefs examples)
> > 'provided' is for dependencies that are pre-compiled swc dependencies,
> > where the dependency is expected to provided when the application is
> built
> > (in this case I have assumed it is explicitly listed as a dependency for
> > the application build).
> >
> > I think these are different to what used to be the case with FlexMojos
> (see
> > 'Scope options in Flexmojos' [1])
> > Also it seems that we don't do any of this in the framework project level
> > poms, so I assume
> > that <forceSwcExternalLibraryPath>true</forceSwcExternalLibraryPath> at
> > frameworks/projects/pom.xml is a 'brute-force' override, simulating
> > <scope>provided</provided> for each of the child framework projects' swc
> > dependencies, and avoiding them being merged in for each of the framework
> > swcs. I assume this might be another difference from [1] also, but I'm
> not
> > really sure as my only exposure to maven has been since FlexJS/Royale.
> >
> >
> > 1.
> > https://www.adobe.com/devnet/flex/articles/flex-maven-flexmojos-pt3.html
> >
> >
> >
> > --
> Carlos Rovira
> http://about.me/carlosrovira
>
Re: library-path changes
Posted by Carlos Rovira <ca...@apache.org>.
Hi,
if I understand correctly, both "runtime" and "provided" are right now
equal for the compiler, right? I'm ok to understand conceptually
"runtime" and "provided" as Greg says. At least for now, although if we can
inform the compiler to differentiate as well would be great.
In the other hand, flemojos seems to me more natural ("merged",
"external",...) since is what we use to manage in Flex days and in
FlashBuilder,
but don't know if is worth it to go to that kind of names, or better go to
the standard maven names. If it was easy to add flemojos names, I'd choose
those, but since there's many things to do, maybe we can stick with what we
have.
In the other hand, thanks to Greg, we have this config solved in our real
App now. But I think in the process of doing this fix I think Greg saw some
issues
at framework level for maven. Hope Greg can expose it better if that's the
case, since maybe I'm wrong.
thanks
El mié., 24 jul. 2019 a las 2:15, Greg Dove (<gr...@gmail.com>)
escribió:
> Just to add to the discussion on the 'provided' vs. 'runtime' scopes...
> I'm not really sure what scope name should be used for what, but here's
> what I have assumed:
> 'runtime' is for 'native' libs where the runtime provides the api surface
> that is represented by the swc. (playerglobal/ js-typedefs examples)
> 'provided' is for dependencies that are pre-compiled swc dependencies,
> where the dependency is expected to provided when the application is built
> (in this case I have assumed it is explicitly listed as a dependency for
> the application build).
>
> I think these are different to what used to be the case with FlexMojos (see
> 'Scope options in Flexmojos' [1])
> Also it seems that we don't do any of this in the framework project level
> poms, so I assume
> that <forceSwcExternalLibraryPath>true</forceSwcExternalLibraryPath> at
> frameworks/projects/pom.xml is a 'brute-force' override, simulating
> <scope>provided</provided> for each of the child framework projects' swc
> dependencies, and avoiding them being merged in for each of the framework
> swcs. I assume this might be another difference from [1] also, but I'm not
> really sure as my only exposure to maven has been since FlexJS/Royale.
>
>
> 1.
> https://www.adobe.com/devnet/flex/articles/flex-maven-flexmojos-pt3.html
>
>
>
> --
Carlos Rovira
http://about.me/carlosrovira
Re: library-path changes
Posted by Greg Dove <gr...@gmail.com>.
Just to add to the discussion on the 'provided' vs. 'runtime' scopes...
I'm not really sure what scope name should be used for what, but here's
what I have assumed:
'runtime' is for 'native' libs where the runtime provides the api surface
that is represented by the swc. (playerglobal/ js-typedefs examples)
'provided' is for dependencies that are pre-compiled swc dependencies,
where the dependency is expected to provided when the application is built
(in this case I have assumed it is explicitly listed as a dependency for
the application build).
I think these are different to what used to be the case with FlexMojos (see
'Scope options in Flexmojos' [1])
Also it seems that we don't do any of this in the framework project level
poms, so I assume
that <forceSwcExternalLibraryPath>true</forceSwcExternalLibraryPath> at
frameworks/projects/pom.xml is a 'brute-force' override, simulating
<scope>provided</provided> for each of the child framework projects' swc
dependencies, and avoiding them being merged in for each of the framework
swcs. I assume this might be another difference from [1] also, but I'm not
really sure as my only exposure to maven has been since FlexJS/Royale.
1. https://www.adobe.com/devnet/flex/articles/flex-maven-flexmojos-pt3.html
On Tue, Jul 23, 2019 at 5:37 AM Josh Tynjala <jo...@bowlerhat.dev>
wrote:
> Thanks for posting that, Carlos. It reminded me of another rule that's
> important: All "typedefs" SWCs should always be added to the
> external-library-path. Even if you are building an app and not a library,
> typedefs must be external (because they are provided natively by the
> browser or using a <script> tag). Typedefs SWCs are kind of like
> playerglobal.swc or airglobal.swc. They help the compiler do type checking
> and don't contain any real code.
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Mon, Jul 22, 2019 at 10:26 AM Carlos Rovira <ca...@apache.org>
> wrote:
>
> > btw,
> >
> > I was getting something like this:
> >
> > <js-library-path>
> > <path-element>
> >
> >
> /Users/carlosrovira/.m2/repository/org/apache/royale/typedefs/royale-typedefs-gcl/0.9.6-SNAPSHOT/royale-typedefs-gcl-0.9.6-SNAPSHOT-typedefs.swc
> > </path-element>
> > <path-element>
> >
> >
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/Core/0.9.6-SNAPSHOT/Core-0.9.6-SNAPSHOT-js.swc
> > </path-element>
> > <path-element>
> >
> >
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/Language/0.9.6-SNAPSHOT/Language-0.9.6-SNAPSHOT-js.swc
> > </path-element>
> > <path-element>
> >
> >
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/Collections/0.9.6-SNAPSHOT/Collections-0.9.6-SNAPSHOT-js.swc
> > </path-element>
> > <path-element>
> >
> >
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/Binding/0.9.6-SNAPSHOT/Binding-0.9.6-SNAPSHOT-js.swc
> > </path-element>
> > <path-element>
> >
> >
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/Basic/0.9.6-SNAPSHOT/Basic-0.9.6-SNAPSHOT-js.swc
> > </path-element>
> > <path-element>
> >
> >
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/DragDrop/0.9.6-SNAPSHOT/DragDrop-0.9.6-SNAPSHOT-js.swc
> > </path-element>
> > <path-element>
> >
> >
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/Express/0.9.6-SNAPSHOT/Express-0.9.6-SNAPSHOT-js.swc
> > </path-element>
> > <path-element>
> >
> >
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/Effects/0.9.6-SNAPSHOT/Effects-0.9.6-SNAPSHOT-js.swc
> > </path-element>
> > <path-element>
> >
> >
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/Charts/0.9.6-SNAPSHOT/Charts-0.9.6-SNAPSHOT-js.swc
> > </path-element>
> > <path-element>
> >
> >
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/XML/0.9.6-SNAPSHOT/XML-0.9.6-SNAPSHOT-js.swc
> > </path-element>
> > <path-element>
> >
> >
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/MXRoyale/0.9.6-SNAPSHOT/MXRoyale-0.9.6-SNAPSHOT-js.swc
> > </path-element>
> > <path-element>
> >
> >
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/Network/0.9.6-SNAPSHOT/Network-0.9.6-SNAPSHOT-js.swc
> > </path-element>
> > <path-element>
> >
> >
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/Reflection/0.9.6-SNAPSHOT/Reflection-0.9.6-SNAPSHOT-js.swc
> > </path-element>
> > <path-element>
> >
> >
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/HTML/0.9.6-SNAPSHOT/HTML-0.9.6-SNAPSHOT-js.swc
> > </path-element>
> > <path-element>
> >
> >
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/Graphics/0.9.6-SNAPSHOT/Graphics-0.9.6-SNAPSHOT-js.swc
> > </path-element>
> > <path-element>
> >
> >
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/Formatters/0.9.6-SNAPSHOT/Formatters-0.9.6-SNAPSHOT-js.swc
> > </path-element>
> > <path-element>
> >
> >
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/Icons/0.9.6-SNAPSHOT/Icons-0.9.6-SNAPSHOT-js.swc
> > </path-element>
> > <path-element>
> >
> >
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/Jewel/0.9.6-SNAPSHOT/Jewel-0.9.6-SNAPSHOT-js.swc
> > </path-element>
> > </js-library-path>
> >
> > So as you said was not generating external-library-path
> >
> >
> >
> > El lun., 22 jul. 2019 a las 19:24, Carlos Rovira (<
> carlosrovira@apache.org
> > >)
> > escribió:
> >
> > > Hi Josh
> > >
> > > I think it should be "runtime" for this from [1]:
> > >
> > > *provided* This is much like compile, but indicates you expect the JDK
> or
> > > a container to provide the dependency at *runtime*. ... *runtime* This
> > > *scope* indicates that the dependency is not required for compilation,
> > > but is for execution. It is in the *runtime*and test classpaths, but
> not
> > > the compile classpath
> > >
> > > going to try to add scope runtime, and will report here. Thanks :)
> > >
> > > [1] Maven scopes vs. Gradle configurations – Andres
> > > Almirayandresalmiray.com/maven-scopes-vs-gradle-configurations/
> > > <
> >
> https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=2ahUKEwiAvpqThcnjAhULyIUKHc11Af0QFjABegQICxAF&url=http%3A%2F%2Fandresalmiray.com%2Fmaven-scopes-vs-gradle-configurations%2F&usg=AOvVaw3mDdHGOHaiF7TI-0u_iHbe
> > >
> > >
> > >
> > > El lun., 22 jul. 2019 a las 19:17, Josh Tynjala (<
> > > joshtynjala@bowlerhat.dev>) escribió:
> > >
> > >> When you compile a SWC, the framework libraries need to be on
> > >> external-library-path (or js-external-library-path or
> > >> swf-external-library-path). When you changed
> forceSwcExternalLibraryPath
> > >> to
> > >> false, this may have moved some of the libraries to the library-path
> > >> instead. You don't want that. You can check the
> > >> target/compile-js-config.xml file generated for your library to see if
> > >> Maven is using library-path or external-library-path for each
> framework
> > >> SWC.
> > >>
> > >> I took a look at the source code for the Royale Maven tasks. To add a
> > >> framework library to the external-library-path, you need to specify
> the
> > >> scope in pom.xml. It should be either "provided" or "runtime" to add
> > them
> > >> to the external-library-path instead of the library-path. I don't know
> > >> what
> > >> the difference between "provided" and "runtime" is, but I assume that
> > you
> > >> do since you know Maven much better than I do.
> > >>
> > >> I should point out that you should use "provided" or "runtime" for
> > >> framework SWCs only when you are when compiling a SWC. When compiling
> an
> > >> app, you definitely want these SWCs added to the library-path.
> > >>
> > >> --
> > >> Josh Tynjala
> > >> Bowler Hat LLC <https://bowlerhat.dev>
> > >>
> > >>
> > >> On Mon, Jul 22, 2019 at 9:59 AM Carlos Rovira <
> carlosrovira@apache.org>
> > >> wrote:
> > >>
> > >> > Hi,
> > >> >
> > >> > the compilation was ok, but I'm facing now a blank page. I'm getting
> > in
> > >> > debug mode:
> > >> >
> > >> > [Error] Error: Undefined nameToPath for
> > >> > org.apache.royale.events.EventDispatcher
> > >> > visitNode (base.js:1357)
> > >> > visitNode (base.js:1355)
> > >> > visitNode (base.js:1355)
> > >> > writeScripts_ (base.js:1369)
> > >> > require (base.js:706)
> > >> > Código global (tablet-debug:418)
> > >> >
> > >> > and
> > >> >
> > >> > [Error] ReferenceError: Can't find variable: App
> > >> > Código global (tablet-debug:425)
> > >> >
> > >> >
> > >> > do you know what's could be wrong?
> > >> >
> > >> > thanks
> > >> >
> > >> > Carlos
> > >> >
> > >> >
> > >> >
> > >> >
> > >> >
> > >> > El lun., 22 jul. 2019 a las 18:33, Carlos Rovira (<
> > >> carlosrovira@apache.org
> > >> > >)
> > >> > escribió:
> > >> >
> > >> > > Hi,
> > >> > >
> > >> > > I think finally reach to the problem, I had more of this in each
> > >> library
> > >> > >
> > >> > > <forceSwcExternalLibraryPath>true</forceSwcExternalLibraryPath>
> > >> > >
> > >> > > So now I'm getting all the rest libs compiling properly
> > >> > >
> > >> > > thanks for the help :)
> > >> > >
> > >> > > Carlos
> > >> > >
> > >> > >
> > >> > >
> > >> > >
> > >> > >
> > >> > > El lun., 22 jul. 2019 a las 18:32, Carlos Rovira (<
> > >> > carlosrovira@apache.org>)
> > >> > > escribió:
> > >> > >
> > >> > >> I get the following progress:
> > >> > >>
> > >> > >> first library was compiled by commenting
> > forceSwcExternalLibraryPath
> > >> > >> since I have all libraries in the same folder "roaylelibs"
> > >> > >>
> > >> > >> <build>
> > >> > >> <plugins>
> > >> > >> <plugin>
> > >> > >> <groupId>org.apache.royale.compiler</groupId>
> > >> > >> <artifactId>royale-maven-plugin</artifactId>
> > >> > >> <version>${royale.compiler.version}</version>
> > >> > >> <configuration>
> > >> > >> <!-- We don't want dependencies to be linked into the resulting
> > >> > libraries
> > >> > >> -->
> > >> > >> <!--
> > <forceSwcExternalLibraryPath>true</forceSwcExternalLibraryPath>
> > >> -->
> > >> > >> </configuration>
> > >> > >> </plugin>
> > >> > >> </plugins>
> > >> > >> </build>
> > >> > >>
> > >> > >> but now the next one is failing in the same way as the previous
> one
> > >> was
> > >> > >> failing :?
> > >> > >>
> > >> > >> I removed all compile-swf-config.xml in all projects, and what I
> > >> don't
> > >> > >> understand is where comes the config maven is using:
> > >> > >>
> > >> > >> Executing COMPC in tool group Royale with args:
> > >> > >>
> > >> >
> > >>
> >
> [-load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royaledto/target/compile-swf-config.xml,
> > >> > >> -js-default-initializers=false, -source-map=true,
> > >> > >> -compiler.targets=SWF,JSRoyale, -compiler.strict-xml=true]
> > >> > >>
> > >> > >>
> > >> > >>
> > >> > >>
> > >> > >>
> > >> > >>
> > >> > >> El lun., 22 jul. 2019 a las 18:14, Carlos Rovira (<
> > >> > >> carlosrovira@apache.org>) escribió:
> > >> > >>
> > >> > >>> I think the license header would be added in all files at some
> > point
> > >> > for
> > >> > >>> all files to prevent RAT plugin to make compilation fail, so I'm
> > >> > figuring
> > >> > >>> it was something done manual
> > >> > >>>
> > >> > >>> El lun., 22 jul. 2019 a las 17:57, Josh Tynjala (<
> > >> > >>> joshtynjala@bowlerhat.dev>) escribió:
> > >> > >>>
> > >> > >>>> You're right. I remember seeing that the Royale Maven plugin
> > >> generates
> > >> > >>>> compile-swf-config.xml and compile-js-config.xml.
> > >> > >>>>
> > >> > >>>> It's strange that your Codeoscopic copyright header is added to
> > >> > >>>> compiler-swf-config.xml, though. I wouldn't expect Maven to do
> > >> that...
> > >> > >>>> unless maybe you have some other plugin that adds it?
> > >> > >>>>
> > >> > >>>> --
> > >> > >>>> Josh Tynjala
> > >> > >>>> Bowler Hat LLC <https://bowlerhat.dev>
> > >> > >>>>
> > >> > >>>>
> > >> > >>>> On Mon, Jul 22, 2019 at 8:49 AM Carlos Rovira <
> > >> > carlosrovira@apache.org>
> > >> > >>>> wrote:
> > >> > >>>>
> > >> > >>>> > Hi Josh,
> > >> > >>>> >
> > >> > >>>> > since my build is JS, I removed all "compile-swf-config.xml",
> > but
> > >> > >>>> executing
> > >> > >>>> > again "mvn clean install", makes a "compile-swf-config.xml"
> > file
> > >> be
> > >> > >>>> > generated in target folder
> > >> > >>>> > so I think is something in royale maven plugin that creates
> > that
> > >> > file
> > >> > >>>> in
> > >> > >>>> > target folder. But is strange since as I say I'm working
> > against
> > >> JS
> > >> > >>>> > although SWF is present but although always was compiling ok,
> > it
> > >> > does
> > >> > >>>> not
> > >> > >>>> > really works since Jewel is still not implemented fully in
> SWF
> > >> > >>>> >
> > >> > >>>> > El lun., 22 jul. 2019 a las 17:35, Josh Tynjala (<
> > >> > >>>> > joshtynjala@bowlerhat.dev>)
> > >> > >>>> > escribió:
> > >> > >>>> >
> > >> > >>>> > > The append attribute has existed since the Flex days.
> > >> > >>>> > >
> > >> > >>>> > > --
> > >> > >>>> > > Josh Tynjala
> > >> > >>>> > > Bowler Hat LLC <https://bowlerhat.dev>
> > >> > >>>> > >
> > >> > >>>> > >
> > >> > >>>> > > On Mon, Jul 22, 2019 at 8:34 AM Carlos Rovira <
> > >> > >>>> carlosrovira@apache.org>
> > >> > >>>> > > wrote:
> > >> > >>>> > >
> > >> > >>>> > > > Hi Harbs,
> > >> > >>>> > > > thanks, the append attribute is new one? it was
> introduced
> > >> > >>>> recently?
> > >> > >>>> > > >
> > >> > >>>> > > > thanks
> > >> > >>>> > > >
> > >> > >>>> > > > El lun., 22 jul. 2019 a las 17:29, Harbs (<
> > >> > harbs.lists@gmail.com
> > >> > >>>> >)
> > >> > >>>> > > > escribió:
> > >> > >>>> > > >
> > >> > >>>> > > > > Make sure you have for the JS config:
> > >> > >>>> > > > > <js-external-library-path append=“true”>
> > >> > >>>> > > > >
> > >> > >>>> > > > > The append wil make sure you keep the default values.
> > >> > >>>> > > > >
> > >> > >>>> > > > > Here’s where I updated some of the libs I’m using:
> > >> > >>>> > > > >
> > >> > >>>> > > > >
> > >> > >>>> > > > >
> > >> > >>>> > > >
> > >> > >>>> > >
> > >> > >>>> >
> > >> > >>>>
> > >> >
> > >>
> >
> https://github.com/unhurdle/cep-royale/commit/35d45906035e3d1997d70a67893cc096307a3842
> > >> > >>>> > > > > <
> > >> > >>>> > > > >
> > >> > >>>> > > >
> > >> > >>>> > >
> > >> > >>>> >
> > >> > >>>>
> > >> >
> > >>
> >
> https://github.com/unhurdle/cep-royale/commit/35d45906035e3d1997d70a67893cc096307a3842
> > >> > >>>> > > > > >
> > >> > >>>> > > > >
> > >> > >>>> > > > >
> > >> > >>>> > > >
> > >> > >>>> > >
> > >> > >>>> >
> > >> > >>>>
> > >> >
> > >>
> >
> https://github.com/unhurdle/spectrum-royale/commit/2f6e1b5ed25cc57585d6879fbcf2ccae79d57d28
> > >> > >>>> > > > > <
> > >> > >>>> > > > >
> > >> > >>>> > > >
> > >> > >>>> > >
> > >> > >>>> >
> > >> > >>>>
> > >> >
> > >>
> >
> https://github.com/unhurdle/spectrum-royale/commit/2f6e1b5ed25cc57585d6879fbcf2ccae79d57d28
> > >> > >>>> > > > > >
> > >> > >>>> > > > >
> > >> > >>>> > > > > > On Jul 22, 2019, at 6:20 PM, Carlos Rovira <
> > >> > >>>> > carlosrovira@apache.org>
> > >> > >>>> > > > > wrote:
> > >> > >>>> > > > > >
> > >> > >>>> > > > > > Hi Josh,
> > >> > >>>> > > > > >
> > >> > >>>> > > > > > playerglobal.swc is ok, but can you point me to some
> > >> place
> > >> > >>>> where
> > >> > >>>> > > > "js.swc"
> > >> > >>>> > > > > > is used?
> > >> > >>>> > > > > >
> > >> > >>>> > > > > > contents of compile-swf-config.xml are the following:
> > >> > >>>> > > > > >
> > >> > >>>> > > > > > <!--
> > >> > >>>> > > > > >
> > >> > >>>> > > > > > Copyright (C) 2009, Codeoscopic S.A. - All Rights
> > >> Reserved
> > >> > >>>> > > > > > Unauthorized copying of this file, via any medium is
> > >> > strictly
> > >> > >>>> > > > prohibited
> > >> > >>>> > > > > > Proprietary and confidential
> > >> > >>>> > > > > >
> > >> > >>>> > > > > > Copyright (C) 2009, Codeoscopic S.A. - Todos Los
> > Derechos
> > >> > >>>> > Reservados
> > >> > >>>> > > > > > La copia no autorizada de este archivo, a través de
> > >> > cualquier
> > >> > >>>> medio
> > >> > >>>> > > > está
> > >> > >>>> > > > > > estrictamente prohibida
> > >> > >>>> > > > > > Privado y confidencial
> > >> > >>>> > > > > >
> > >> > >>>> > > > > > -->
> > >> > >>>> > > > > > <royale-config>
> > >> > >>>> > > > > >
> > >> > >>>> > > > > > <compiler>
> > >> > >>>> > > > > > <accessible>false</accessible>
> > >> > >>>> > > > > > <!-- build both SWF and JS. -->
> > >> > >>>> > > > > > <targets>
> > >> > >>>> > > > > > <target>SWF</target>
> > >> > >>>> > > > > > <target>JSRoyale</target>
> > >> > >>>> > > > > > </targets>
> > >> > >>>> > > > > > <strict-xml>true</strict-xml>
> > >> > >>>> > > > > >
> > >> > >>>> > > > > > <external-library-path>
> > >> > >>>> > > > > >
> > >> > >>>>
> <path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</
> > >> > >>>> > > > > > path-element>
> > >> > >>>> > > > > >
> > >> <path-element>../../../../../libs/Binding.swc</path-element>
> > >> > >>>> > > > > >
> > <path-element>../../../../../libs/Core.swc</path-element>
> > >> > >>>> > > > > >
> > >> > <path-element>../../../../../libs/Graphics.swc</path-element>
> > >> > >>>> > > > > >
> > >> > >>>>
> <path-element>../../../../../libs/Collections.swc</path-element>
> > >> > >>>> > > > > >
> > >> <path-element>../../../../../libs/Basic.swc</path-element>
> > >> > >>>> > > > > > </external-library-path>
> > >> > >>>> > > > > >
> > <allow-subclass-overrides>true</allow-subclass-overrides>
> > >> > >>>> > > > > > <mxml>
> > >> > >>>> > > > > > <children-as-data>true</children-as-data>
> > >> > >>>> > > > > > </mxml>
> > >> > >>>> > > > > > <binding-value-change-event>
> > >> > >>>> > > > > >
> > >> > >>>> > >
> > >> > >>>>
> > >> org.apache.royale.events.ValueChangeEvent</binding-value-change-event>
> > >> > >>>> > > > > > <binding-value-change-event-kind>
> > >> > >>>> > > > > >
> > >> > >>>> > > > >
> > >> > >>>> > > >
> > >> > >>>> > >
> > >> > >>>> >
> > >> > >>>>
> > >> >
> > >>
> >
> org.apache.royale.events.ValueChangeEvent</binding-value-change-event-kind>
> > >> > >>>> > > > > > <binding-value-change-event-type>valueChange</
> > >> > >>>> > > > > > binding-value-change-event-type>
> > >> > >>>> > > > > >
> > >> > >>>> > > > > > <define>
> > >> > >>>> > > > > > <name>COMPILE::SWF</name>
> > >> > >>>> > > > > > <value>true</value>
> > >> > >>>> > > > > > </define>
> > >> > >>>> > > > > > <define>
> > >> > >>>> > > > > > <name>COMPILE::JS</name>
> > >> > >>>> > > > > > <value>false</value>
> > >> > >>>> > > > > > </define>
> > >> > >>>> > > > > >
> > >> > >>>> > > > > > <keep-as3-metadata>
> > >> > >>>> > > > > > <name>Bindable</name>
> > >> > >>>> > > > > > <name>Managed</name>
> > >> > >>>> > > > > > <name>ChangeEvent</name>
> > >> > >>>> > > > > > <name>NonCommittingChangeEvent</name>
> > >> > >>>> > > > > > <name>Transient</name>
> > >> > >>>> > > > > > </keep-as3-metadata>
> > >> > >>>> > > > > >
> > >> > >>>> > > > > > <locale/>
> > >> > >>>> > > > > > <library-path/>
> > >> > >>>> > > > > >
> > >> > >>>> > > > > > <namespaces>
> > >> > >>>> > > > > > <namespace>
> > >> > >>>> > > > > > <uri>library://ns.apache.org/royale/basic</uri>
> > >> > >>>> > > > > > <manifest>../resources/icons-manifest.xml</manifest>
> > >> > >>>> > > > > > </namespace>
> > >> > >>>> > > > > > </namespaces>
> > >> > >>>> > > > > > <source-path>
> > >> > >>>> > > > > > <path-element>../royale</path-element>
> > >> > >>>> > > > > > </source-path>
> > >> > >>>> > > > > > <warn-no-constructor>false</warn-no-constructor>
> > >> > >>>> > > > > > </compiler>
> > >> > >>>> > > > > > <include-classes>
> > >> > >>>> > > > > > <class>IconsClasses</class>
> > >> > >>>> > > > > > </include-classes>
> > >> > >>>> > > > > > <include-namespaces>
> > >> > >>>> > > > > > <uri>library://ns.apache.org/royale/basic</uri>
> > >> > >>>> > > > > > </include-namespaces>
> > >> > >>>> > > > > >
> <target-player>${playerglobal.version}</target-player>
> > >> > >>>> > > > > >
> > >> > >>>> > > > > > </royale-config>
> > >> > >>>> > > > > >
> > >> > >>>> > > > > >
> > >> > >>>> > > > > >
> > >> > >>>> > > > > > I don't know too much about this file, have we docs
> > about
> > >> > it?
> > >> > >>>> > > > > > the compiler generates the file itself?
> > >> > >>>> > > > > > it uses the global config.xml as a base?
> > >> > >>>> > > > > >
> > >> > >>>> > > > > > thanks Josh
> > >> > >>>> > > > > >
> > >> > >>>> > > > > >
> > >> > >>>> > > > > > El lun., 22 jul. 2019 a las 17:01, Josh Tynjala (<
> > >> > >>>> > > > > joshtynjala@bowlerhat.dev>)
> > >> > >>>> > > > > > escribió:
> > >> > >>>> > > > > >
> > >> > >>>> > > > > >> Error: Missing builtin type Object
> > >> > >>>> > > > > >>
> > >> > >>>> > > > > >> This error usually means that either
> playerglobal.swc
> > or
> > >> > >>>> js.swc is
> > >> > >>>> > > > > missing.
> > >> > >>>> > > > > >>
> > >> > >>>> > > > > >> It would be difficult to suggest anything more
> without
> > >> > >>>> seeing the
> > >> > >>>> > > > > contents
> > >> > >>>> > > > > >> of compile-swf-config.xml.
> > >> > >>>> > > > > >>
> > >> > >>>> > > > > >> --
> > >> > >>>> > > > > >> Josh Tynjala
> > >> > >>>> > > > > >> Bowler Hat LLC <https://bowlerhat.dev>
> > >> > >>>> > > > > >>
> > >> > >>>> > > > > >>
> > >> > >>>> > > > > >> On Mon, Jul 22, 2019 at 7:50 AM Carlos Rovira <
> > >> > >>>> > > > carlosrovira@apache.org>
> > >> > >>>> > > > > >> wrote:
> > >> > >>>> > > > > >>
> > >> > >>>> > > > > >>> Hi,
> > >> > >>>> > > > > >>>
> > >> > >>>> > > > > >>> after latest changes with "library-path" I'm trying
> > to
> > >> > >>>> update my
> > >> > >>>> > > > > project
> > >> > >>>> > > > > >>> with no luck.
> > >> > >>>> > > > > >>>
> > >> > >>>> > > > > >>> Hope someone could let me know some guide since all
> > >> what I
> > >> > >>>> tried
> > >> > >>>> > > > didn't
> > >> > >>>> > > > > >>> work and always get this:
> > >> > >>>> > > > > >>>
> > >> > >>>> > > > > >>> [*INFO*] *---
> > >> > *royale-maven-plugin:0.9.6-SNAPSHOT:compile-as
> > >> > >>>> > > > > >>> *(default-compile-as)* @ royalejewel* ---*
> > >> > >>>> > > > > >>>
> > >> > >>>> > > > > >>> [*INFO*] Executing COMPC in tool group Royale with
> > >> args:
> > >> > >>>> > > > > >>>
> > >> > >>>> > > > > >>>
> > >> > >>>> > > > > >>
> > >> > >>>> > > > >
> > >> > >>>> > > >
> > >> > >>>> > >
> > >> > >>>> >
> > >> > >>>>
> > >> >
> > >>
> >
> [-load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml,
> > >> > >>>> > > > > >>> -js-default-initializers=false, -source-map=true,
> > >> > >>>> > > > > >>> -compiler.targets=SWF,JSRoyale,
> > >> -compiler.strict-xml=true]
> > >> > >>>> > > > > >>>
> > >> > >>>> > > > > >>> args:
> > >> > >>>> > > > > >>>
> > >> > >>>> > > > > >>>
> > >> > >>>> > > > > >>>
> > >> > >>>> > > > > >>
> > >> > >>>> > > > >
> > >> > >>>> > > >
> > >> > >>>> > >
> > >> > >>>> >
> > >> > >>>>
> > >> >
> > >>
> >
> -load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
> > >> > >>>> > > > > >>>
> > >> > >>>> > > > > >>> -js-default-initializers=false
> > >> > >>>> > > > > >>>
> > >> > >>>> > > > > >>> -source-map=true
> > >> > >>>> > > > > >>>
> > >> > >>>> > > > > >>> -compiler.targets=SWF,JSRoyale
> > >> > >>>> > > > > >>>
> > >> > >>>> > > > > >>> -compiler.strict-xml=true
> > >> > >>>> > > > > >>>
> > >> > >>>> > > > > >>> target:SWF
> > >> > >>>> > > > > >>>
> > >> > >>>> > > > > >>> target:JSRoyale
> > >> > >>>> > > > > >>>
> > >> > >>>> > > > > >>> COMPC
> > >> > >>>> > > > > >>>
> > >> > >>>> > > > > >>> Loading configuration:
> > >> > >>>> > > > > >>>
> > >> > >>>> > > > > >>>
> > >> > >>>> > > > > >>
> > >> > >>>> > > > >
> > >> > >>>> > > >
> > >> > >>>> > >
> > >> > >>>> >
> > >> > >>>>
> > >> >
> > >>
> >
> /Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
> > >> > >>>> > > > > >>>
> > >> > >>>> > > > > >>>
> > >> > >>>> > > > > >>> Error: Missing builtin type Object
> > >> > >>>> > > > > >>>
> > >> > >>>> > > > > >>>
> > >> > >>>> > > > > >>>
> > >> > >>>> > > > > >>> Missing builtin type Object
> > >> > >>>> > > > > >>>
> > >> > >>>> > > > > >>>
> > >> > >>>> > > > > >>>
> > >> > >>>> > > > > >>> 0.553372072 seconds
> > >> > >>>> > > > > >>>
> > >> > >>>> > > > > >>> this is failing when maven tries to compile the
> first
> > >> > >>>> library
> > >> > >>>> > > project
> > >> > >>>> > > > > >>>
> > >> > >>>> > > > > >>> Thanks for any light on this
> > >> > >>>> > > > > >>>
> > >> > >>>> > > > > >>> --
> > >> > >>>> > > > > >>> Carlos Rovira
> > >> > >>>> > > > > >>> http://about.me/carlosrovira
> > >> > >>>> > > > > >>>
> > >> > >>>> > > > > >>
> > >> > >>>> > > > > >
> > >> > >>>> > > > > >
> > >> > >>>> > > > > > --
> > >> > >>>> > > > > > Carlos Rovira
> > >> > >>>> > > > > > http://about.me/carlosrovira
> > >> > >>>> > > > >
> > >> > >>>> > > > >
> > >> > >>>> > > >
> > >> > >>>> > > > --
> > >> > >>>> > > > Carlos Rovira
> > >> > >>>> > > > http://about.me/carlosrovira
> > >> > >>>> > > >
> > >> > >>>> > >
> > >> > >>>> >
> > >> > >>>> >
> > >> > >>>> > --
> > >> > >>>> > Carlos Rovira
> > >> > >>>> > http://about.me/carlosrovira
> > >> > >>>> >
> > >> > >>>>
> > >> > >>>
> > >> > >>>
> > >> > >>> --
> > >> > >>> Carlos Rovira
> > >> > >>> http://about.me/carlosrovira
> > >> > >>>
> > >> > >>>
> > >> > >>
> > >> > >> --
> > >> > >> Carlos Rovira
> > >> > >> http://about.me/carlosrovira
> > >> > >>
> > >> > >>
> > >> > >
> > >> > > --
> > >> > > Carlos Rovira
> > >> > > http://about.me/carlosrovira
> > >> > >
> > >> > >
> > >> >
> > >> > --
> > >> > Carlos Rovira
> > >> > http://about.me/carlosrovira
> > >> >
> > >>
> > >
> > >
> > > --
> > > Carlos Rovira
> > > http://about.me/carlosrovira
> > >
> > >
> >
> > --
> > Carlos Rovira
> > http://about.me/carlosrovira
> >
>
Re: library-path changes
Posted by Josh Tynjala <jo...@bowlerhat.dev>.
Thanks for posting that, Carlos. It reminded me of another rule that's
important: All "typedefs" SWCs should always be added to the
external-library-path. Even if you are building an app and not a library,
typedefs must be external (because they are provided natively by the
browser or using a <script> tag). Typedefs SWCs are kind of like
playerglobal.swc or airglobal.swc. They help the compiler do type checking
and don't contain any real code.
--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>
On Mon, Jul 22, 2019 at 10:26 AM Carlos Rovira <ca...@apache.org>
wrote:
> btw,
>
> I was getting something like this:
>
> <js-library-path>
> <path-element>
>
> /Users/carlosrovira/.m2/repository/org/apache/royale/typedefs/royale-typedefs-gcl/0.9.6-SNAPSHOT/royale-typedefs-gcl-0.9.6-SNAPSHOT-typedefs.swc
> </path-element>
> <path-element>
>
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/Core/0.9.6-SNAPSHOT/Core-0.9.6-SNAPSHOT-js.swc
> </path-element>
> <path-element>
>
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/Language/0.9.6-SNAPSHOT/Language-0.9.6-SNAPSHOT-js.swc
> </path-element>
> <path-element>
>
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/Collections/0.9.6-SNAPSHOT/Collections-0.9.6-SNAPSHOT-js.swc
> </path-element>
> <path-element>
>
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/Binding/0.9.6-SNAPSHOT/Binding-0.9.6-SNAPSHOT-js.swc
> </path-element>
> <path-element>
>
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/Basic/0.9.6-SNAPSHOT/Basic-0.9.6-SNAPSHOT-js.swc
> </path-element>
> <path-element>
>
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/DragDrop/0.9.6-SNAPSHOT/DragDrop-0.9.6-SNAPSHOT-js.swc
> </path-element>
> <path-element>
>
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/Express/0.9.6-SNAPSHOT/Express-0.9.6-SNAPSHOT-js.swc
> </path-element>
> <path-element>
>
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/Effects/0.9.6-SNAPSHOT/Effects-0.9.6-SNAPSHOT-js.swc
> </path-element>
> <path-element>
>
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/Charts/0.9.6-SNAPSHOT/Charts-0.9.6-SNAPSHOT-js.swc
> </path-element>
> <path-element>
>
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/XML/0.9.6-SNAPSHOT/XML-0.9.6-SNAPSHOT-js.swc
> </path-element>
> <path-element>
>
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/MXRoyale/0.9.6-SNAPSHOT/MXRoyale-0.9.6-SNAPSHOT-js.swc
> </path-element>
> <path-element>
>
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/Network/0.9.6-SNAPSHOT/Network-0.9.6-SNAPSHOT-js.swc
> </path-element>
> <path-element>
>
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/Reflection/0.9.6-SNAPSHOT/Reflection-0.9.6-SNAPSHOT-js.swc
> </path-element>
> <path-element>
>
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/HTML/0.9.6-SNAPSHOT/HTML-0.9.6-SNAPSHOT-js.swc
> </path-element>
> <path-element>
>
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/Graphics/0.9.6-SNAPSHOT/Graphics-0.9.6-SNAPSHOT-js.swc
> </path-element>
> <path-element>
>
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/Formatters/0.9.6-SNAPSHOT/Formatters-0.9.6-SNAPSHOT-js.swc
> </path-element>
> <path-element>
>
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/Icons/0.9.6-SNAPSHOT/Icons-0.9.6-SNAPSHOT-js.swc
> </path-element>
> <path-element>
>
> /Users/carlosrovira/.m2/repository/org/apache/royale/framework/Jewel/0.9.6-SNAPSHOT/Jewel-0.9.6-SNAPSHOT-js.swc
> </path-element>
> </js-library-path>
>
> So as you said was not generating external-library-path
>
>
>
> El lun., 22 jul. 2019 a las 19:24, Carlos Rovira (<carlosrovira@apache.org
> >)
> escribió:
>
> > Hi Josh
> >
> > I think it should be "runtime" for this from [1]:
> >
> > *provided* This is much like compile, but indicates you expect the JDK or
> > a container to provide the dependency at *runtime*. ... *runtime* This
> > *scope* indicates that the dependency is not required for compilation,
> > but is for execution. It is in the *runtime*and test classpaths, but not
> > the compile classpath
> >
> > going to try to add scope runtime, and will report here. Thanks :)
> >
> > [1] Maven scopes vs. Gradle configurations – Andres
> > Almirayandresalmiray.com/maven-scopes-vs-gradle-configurations/
> > <
> https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=2ahUKEwiAvpqThcnjAhULyIUKHc11Af0QFjABegQICxAF&url=http%3A%2F%2Fandresalmiray.com%2Fmaven-scopes-vs-gradle-configurations%2F&usg=AOvVaw3mDdHGOHaiF7TI-0u_iHbe
> >
> >
> >
> > El lun., 22 jul. 2019 a las 19:17, Josh Tynjala (<
> > joshtynjala@bowlerhat.dev>) escribió:
> >
> >> When you compile a SWC, the framework libraries need to be on
> >> external-library-path (or js-external-library-path or
> >> swf-external-library-path). When you changed forceSwcExternalLibraryPath
> >> to
> >> false, this may have moved some of the libraries to the library-path
> >> instead. You don't want that. You can check the
> >> target/compile-js-config.xml file generated for your library to see if
> >> Maven is using library-path or external-library-path for each framework
> >> SWC.
> >>
> >> I took a look at the source code for the Royale Maven tasks. To add a
> >> framework library to the external-library-path, you need to specify the
> >> scope in pom.xml. It should be either "provided" or "runtime" to add
> them
> >> to the external-library-path instead of the library-path. I don't know
> >> what
> >> the difference between "provided" and "runtime" is, but I assume that
> you
> >> do since you know Maven much better than I do.
> >>
> >> I should point out that you should use "provided" or "runtime" for
> >> framework SWCs only when you are when compiling a SWC. When compiling an
> >> app, you definitely want these SWCs added to the library-path.
> >>
> >> --
> >> Josh Tynjala
> >> Bowler Hat LLC <https://bowlerhat.dev>
> >>
> >>
> >> On Mon, Jul 22, 2019 at 9:59 AM Carlos Rovira <ca...@apache.org>
> >> wrote:
> >>
> >> > Hi,
> >> >
> >> > the compilation was ok, but I'm facing now a blank page. I'm getting
> in
> >> > debug mode:
> >> >
> >> > [Error] Error: Undefined nameToPath for
> >> > org.apache.royale.events.EventDispatcher
> >> > visitNode (base.js:1357)
> >> > visitNode (base.js:1355)
> >> > visitNode (base.js:1355)
> >> > writeScripts_ (base.js:1369)
> >> > require (base.js:706)
> >> > Código global (tablet-debug:418)
> >> >
> >> > and
> >> >
> >> > [Error] ReferenceError: Can't find variable: App
> >> > Código global (tablet-debug:425)
> >> >
> >> >
> >> > do you know what's could be wrong?
> >> >
> >> > thanks
> >> >
> >> > Carlos
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > El lun., 22 jul. 2019 a las 18:33, Carlos Rovira (<
> >> carlosrovira@apache.org
> >> > >)
> >> > escribió:
> >> >
> >> > > Hi,
> >> > >
> >> > > I think finally reach to the problem, I had more of this in each
> >> library
> >> > >
> >> > > <forceSwcExternalLibraryPath>true</forceSwcExternalLibraryPath>
> >> > >
> >> > > So now I'm getting all the rest libs compiling properly
> >> > >
> >> > > thanks for the help :)
> >> > >
> >> > > Carlos
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> >> > > El lun., 22 jul. 2019 a las 18:32, Carlos Rovira (<
> >> > carlosrovira@apache.org>)
> >> > > escribió:
> >> > >
> >> > >> I get the following progress:
> >> > >>
> >> > >> first library was compiled by commenting
> forceSwcExternalLibraryPath
> >> > >> since I have all libraries in the same folder "roaylelibs"
> >> > >>
> >> > >> <build>
> >> > >> <plugins>
> >> > >> <plugin>
> >> > >> <groupId>org.apache.royale.compiler</groupId>
> >> > >> <artifactId>royale-maven-plugin</artifactId>
> >> > >> <version>${royale.compiler.version}</version>
> >> > >> <configuration>
> >> > >> <!-- We don't want dependencies to be linked into the resulting
> >> > libraries
> >> > >> -->
> >> > >> <!--
> <forceSwcExternalLibraryPath>true</forceSwcExternalLibraryPath>
> >> -->
> >> > >> </configuration>
> >> > >> </plugin>
> >> > >> </plugins>
> >> > >> </build>
> >> > >>
> >> > >> but now the next one is failing in the same way as the previous one
> >> was
> >> > >> failing :?
> >> > >>
> >> > >> I removed all compile-swf-config.xml in all projects, and what I
> >> don't
> >> > >> understand is where comes the config maven is using:
> >> > >>
> >> > >> Executing COMPC in tool group Royale with args:
> >> > >>
> >> >
> >>
> [-load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royaledto/target/compile-swf-config.xml,
> >> > >> -js-default-initializers=false, -source-map=true,
> >> > >> -compiler.targets=SWF,JSRoyale, -compiler.strict-xml=true]
> >> > >>
> >> > >>
> >> > >>
> >> > >>
> >> > >>
> >> > >>
> >> > >> El lun., 22 jul. 2019 a las 18:14, Carlos Rovira (<
> >> > >> carlosrovira@apache.org>) escribió:
> >> > >>
> >> > >>> I think the license header would be added in all files at some
> point
> >> > for
> >> > >>> all files to prevent RAT plugin to make compilation fail, so I'm
> >> > figuring
> >> > >>> it was something done manual
> >> > >>>
> >> > >>> El lun., 22 jul. 2019 a las 17:57, Josh Tynjala (<
> >> > >>> joshtynjala@bowlerhat.dev>) escribió:
> >> > >>>
> >> > >>>> You're right. I remember seeing that the Royale Maven plugin
> >> generates
> >> > >>>> compile-swf-config.xml and compile-js-config.xml.
> >> > >>>>
> >> > >>>> It's strange that your Codeoscopic copyright header is added to
> >> > >>>> compiler-swf-config.xml, though. I wouldn't expect Maven to do
> >> that...
> >> > >>>> unless maybe you have some other plugin that adds it?
> >> > >>>>
> >> > >>>> --
> >> > >>>> Josh Tynjala
> >> > >>>> Bowler Hat LLC <https://bowlerhat.dev>
> >> > >>>>
> >> > >>>>
> >> > >>>> On Mon, Jul 22, 2019 at 8:49 AM Carlos Rovira <
> >> > carlosrovira@apache.org>
> >> > >>>> wrote:
> >> > >>>>
> >> > >>>> > Hi Josh,
> >> > >>>> >
> >> > >>>> > since my build is JS, I removed all "compile-swf-config.xml",
> but
> >> > >>>> executing
> >> > >>>> > again "mvn clean install", makes a "compile-swf-config.xml"
> file
> >> be
> >> > >>>> > generated in target folder
> >> > >>>> > so I think is something in royale maven plugin that creates
> that
> >> > file
> >> > >>>> in
> >> > >>>> > target folder. But is strange since as I say I'm working
> against
> >> JS
> >> > >>>> > although SWF is present but although always was compiling ok,
> it
> >> > does
> >> > >>>> not
> >> > >>>> > really works since Jewel is still not implemented fully in SWF
> >> > >>>> >
> >> > >>>> > El lun., 22 jul. 2019 a las 17:35, Josh Tynjala (<
> >> > >>>> > joshtynjala@bowlerhat.dev>)
> >> > >>>> > escribió:
> >> > >>>> >
> >> > >>>> > > The append attribute has existed since the Flex days.
> >> > >>>> > >
> >> > >>>> > > --
> >> > >>>> > > Josh Tynjala
> >> > >>>> > > Bowler Hat LLC <https://bowlerhat.dev>
> >> > >>>> > >
> >> > >>>> > >
> >> > >>>> > > On Mon, Jul 22, 2019 at 8:34 AM Carlos Rovira <
> >> > >>>> carlosrovira@apache.org>
> >> > >>>> > > wrote:
> >> > >>>> > >
> >> > >>>> > > > Hi Harbs,
> >> > >>>> > > > thanks, the append attribute is new one? it was introduced
> >> > >>>> recently?
> >> > >>>> > > >
> >> > >>>> > > > thanks
> >> > >>>> > > >
> >> > >>>> > > > El lun., 22 jul. 2019 a las 17:29, Harbs (<
> >> > harbs.lists@gmail.com
> >> > >>>> >)
> >> > >>>> > > > escribió:
> >> > >>>> > > >
> >> > >>>> > > > > Make sure you have for the JS config:
> >> > >>>> > > > > <js-external-library-path append=“true”>
> >> > >>>> > > > >
> >> > >>>> > > > > The append wil make sure you keep the default values.
> >> > >>>> > > > >
> >> > >>>> > > > > Here’s where I updated some of the libs I’m using:
> >> > >>>> > > > >
> >> > >>>> > > > >
> >> > >>>> > > > >
> >> > >>>> > > >
> >> > >>>> > >
> >> > >>>> >
> >> > >>>>
> >> >
> >>
> https://github.com/unhurdle/cep-royale/commit/35d45906035e3d1997d70a67893cc096307a3842
> >> > >>>> > > > > <
> >> > >>>> > > > >
> >> > >>>> > > >
> >> > >>>> > >
> >> > >>>> >
> >> > >>>>
> >> >
> >>
> https://github.com/unhurdle/cep-royale/commit/35d45906035e3d1997d70a67893cc096307a3842
> >> > >>>> > > > > >
> >> > >>>> > > > >
> >> > >>>> > > > >
> >> > >>>> > > >
> >> > >>>> > >
> >> > >>>> >
> >> > >>>>
> >> >
> >>
> https://github.com/unhurdle/spectrum-royale/commit/2f6e1b5ed25cc57585d6879fbcf2ccae79d57d28
> >> > >>>> > > > > <
> >> > >>>> > > > >
> >> > >>>> > > >
> >> > >>>> > >
> >> > >>>> >
> >> > >>>>
> >> >
> >>
> https://github.com/unhurdle/spectrum-royale/commit/2f6e1b5ed25cc57585d6879fbcf2ccae79d57d28
> >> > >>>> > > > > >
> >> > >>>> > > > >
> >> > >>>> > > > > > On Jul 22, 2019, at 6:20 PM, Carlos Rovira <
> >> > >>>> > carlosrovira@apache.org>
> >> > >>>> > > > > wrote:
> >> > >>>> > > > > >
> >> > >>>> > > > > > Hi Josh,
> >> > >>>> > > > > >
> >> > >>>> > > > > > playerglobal.swc is ok, but can you point me to some
> >> place
> >> > >>>> where
> >> > >>>> > > > "js.swc"
> >> > >>>> > > > > > is used?
> >> > >>>> > > > > >
> >> > >>>> > > > > > contents of compile-swf-config.xml are the following:
> >> > >>>> > > > > >
> >> > >>>> > > > > > <!--
> >> > >>>> > > > > >
> >> > >>>> > > > > > Copyright (C) 2009, Codeoscopic S.A. - All Rights
> >> Reserved
> >> > >>>> > > > > > Unauthorized copying of this file, via any medium is
> >> > strictly
> >> > >>>> > > > prohibited
> >> > >>>> > > > > > Proprietary and confidential
> >> > >>>> > > > > >
> >> > >>>> > > > > > Copyright (C) 2009, Codeoscopic S.A. - Todos Los
> Derechos
> >> > >>>> > Reservados
> >> > >>>> > > > > > La copia no autorizada de este archivo, a través de
> >> > cualquier
> >> > >>>> medio
> >> > >>>> > > > está
> >> > >>>> > > > > > estrictamente prohibida
> >> > >>>> > > > > > Privado y confidencial
> >> > >>>> > > > > >
> >> > >>>> > > > > > -->
> >> > >>>> > > > > > <royale-config>
> >> > >>>> > > > > >
> >> > >>>> > > > > > <compiler>
> >> > >>>> > > > > > <accessible>false</accessible>
> >> > >>>> > > > > > <!-- build both SWF and JS. -->
> >> > >>>> > > > > > <targets>
> >> > >>>> > > > > > <target>SWF</target>
> >> > >>>> > > > > > <target>JSRoyale</target>
> >> > >>>> > > > > > </targets>
> >> > >>>> > > > > > <strict-xml>true</strict-xml>
> >> > >>>> > > > > >
> >> > >>>> > > > > > <external-library-path>
> >> > >>>> > > > > >
> >> > >>>> <path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</
> >> > >>>> > > > > > path-element>
> >> > >>>> > > > > >
> >> <path-element>../../../../../libs/Binding.swc</path-element>
> >> > >>>> > > > > >
> <path-element>../../../../../libs/Core.swc</path-element>
> >> > >>>> > > > > >
> >> > <path-element>../../../../../libs/Graphics.swc</path-element>
> >> > >>>> > > > > >
> >> > >>>> <path-element>../../../../../libs/Collections.swc</path-element>
> >> > >>>> > > > > >
> >> <path-element>../../../../../libs/Basic.swc</path-element>
> >> > >>>> > > > > > </external-library-path>
> >> > >>>> > > > > >
> <allow-subclass-overrides>true</allow-subclass-overrides>
> >> > >>>> > > > > > <mxml>
> >> > >>>> > > > > > <children-as-data>true</children-as-data>
> >> > >>>> > > > > > </mxml>
> >> > >>>> > > > > > <binding-value-change-event>
> >> > >>>> > > > > >
> >> > >>>> > >
> >> > >>>>
> >> org.apache.royale.events.ValueChangeEvent</binding-value-change-event>
> >> > >>>> > > > > > <binding-value-change-event-kind>
> >> > >>>> > > > > >
> >> > >>>> > > > >
> >> > >>>> > > >
> >> > >>>> > >
> >> > >>>> >
> >> > >>>>
> >> >
> >>
> org.apache.royale.events.ValueChangeEvent</binding-value-change-event-kind>
> >> > >>>> > > > > > <binding-value-change-event-type>valueChange</
> >> > >>>> > > > > > binding-value-change-event-type>
> >> > >>>> > > > > >
> >> > >>>> > > > > > <define>
> >> > >>>> > > > > > <name>COMPILE::SWF</name>
> >> > >>>> > > > > > <value>true</value>
> >> > >>>> > > > > > </define>
> >> > >>>> > > > > > <define>
> >> > >>>> > > > > > <name>COMPILE::JS</name>
> >> > >>>> > > > > > <value>false</value>
> >> > >>>> > > > > > </define>
> >> > >>>> > > > > >
> >> > >>>> > > > > > <keep-as3-metadata>
> >> > >>>> > > > > > <name>Bindable</name>
> >> > >>>> > > > > > <name>Managed</name>
> >> > >>>> > > > > > <name>ChangeEvent</name>
> >> > >>>> > > > > > <name>NonCommittingChangeEvent</name>
> >> > >>>> > > > > > <name>Transient</name>
> >> > >>>> > > > > > </keep-as3-metadata>
> >> > >>>> > > > > >
> >> > >>>> > > > > > <locale/>
> >> > >>>> > > > > > <library-path/>
> >> > >>>> > > > > >
> >> > >>>> > > > > > <namespaces>
> >> > >>>> > > > > > <namespace>
> >> > >>>> > > > > > <uri>library://ns.apache.org/royale/basic</uri>
> >> > >>>> > > > > > <manifest>../resources/icons-manifest.xml</manifest>
> >> > >>>> > > > > > </namespace>
> >> > >>>> > > > > > </namespaces>
> >> > >>>> > > > > > <source-path>
> >> > >>>> > > > > > <path-element>../royale</path-element>
> >> > >>>> > > > > > </source-path>
> >> > >>>> > > > > > <warn-no-constructor>false</warn-no-constructor>
> >> > >>>> > > > > > </compiler>
> >> > >>>> > > > > > <include-classes>
> >> > >>>> > > > > > <class>IconsClasses</class>
> >> > >>>> > > > > > </include-classes>
> >> > >>>> > > > > > <include-namespaces>
> >> > >>>> > > > > > <uri>library://ns.apache.org/royale/basic</uri>
> >> > >>>> > > > > > </include-namespaces>
> >> > >>>> > > > > > <target-player>${playerglobal.version}</target-player>
> >> > >>>> > > > > >
> >> > >>>> > > > > > </royale-config>
> >> > >>>> > > > > >
> >> > >>>> > > > > >
> >> > >>>> > > > > >
> >> > >>>> > > > > > I don't know too much about this file, have we docs
> about
> >> > it?
> >> > >>>> > > > > > the compiler generates the file itself?
> >> > >>>> > > > > > it uses the global config.xml as a base?
> >> > >>>> > > > > >
> >> > >>>> > > > > > thanks Josh
> >> > >>>> > > > > >
> >> > >>>> > > > > >
> >> > >>>> > > > > > El lun., 22 jul. 2019 a las 17:01, Josh Tynjala (<
> >> > >>>> > > > > joshtynjala@bowlerhat.dev>)
> >> > >>>> > > > > > escribió:
> >> > >>>> > > > > >
> >> > >>>> > > > > >> Error: Missing builtin type Object
> >> > >>>> > > > > >>
> >> > >>>> > > > > >> This error usually means that either playerglobal.swc
> or
> >> > >>>> js.swc is
> >> > >>>> > > > > missing.
> >> > >>>> > > > > >>
> >> > >>>> > > > > >> It would be difficult to suggest anything more without
> >> > >>>> seeing the
> >> > >>>> > > > > contents
> >> > >>>> > > > > >> of compile-swf-config.xml.
> >> > >>>> > > > > >>
> >> > >>>> > > > > >> --
> >> > >>>> > > > > >> Josh Tynjala
> >> > >>>> > > > > >> Bowler Hat LLC <https://bowlerhat.dev>
> >> > >>>> > > > > >>
> >> > >>>> > > > > >>
> >> > >>>> > > > > >> On Mon, Jul 22, 2019 at 7:50 AM Carlos Rovira <
> >> > >>>> > > > carlosrovira@apache.org>
> >> > >>>> > > > > >> wrote:
> >> > >>>> > > > > >>
> >> > >>>> > > > > >>> Hi,
> >> > >>>> > > > > >>>
> >> > >>>> > > > > >>> after latest changes with "library-path" I'm trying
> to
> >> > >>>> update my
> >> > >>>> > > > > project
> >> > >>>> > > > > >>> with no luck.
> >> > >>>> > > > > >>>
> >> > >>>> > > > > >>> Hope someone could let me know some guide since all
> >> what I
> >> > >>>> tried
> >> > >>>> > > > didn't
> >> > >>>> > > > > >>> work and always get this:
> >> > >>>> > > > > >>>
> >> > >>>> > > > > >>> [*INFO*] *---
> >> > *royale-maven-plugin:0.9.6-SNAPSHOT:compile-as
> >> > >>>> > > > > >>> *(default-compile-as)* @ royalejewel* ---*
> >> > >>>> > > > > >>>
> >> > >>>> > > > > >>> [*INFO*] Executing COMPC in tool group Royale with
> >> args:
> >> > >>>> > > > > >>>
> >> > >>>> > > > > >>>
> >> > >>>> > > > > >>
> >> > >>>> > > > >
> >> > >>>> > > >
> >> > >>>> > >
> >> > >>>> >
> >> > >>>>
> >> >
> >>
> [-load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml,
> >> > >>>> > > > > >>> -js-default-initializers=false, -source-map=true,
> >> > >>>> > > > > >>> -compiler.targets=SWF,JSRoyale,
> >> -compiler.strict-xml=true]
> >> > >>>> > > > > >>>
> >> > >>>> > > > > >>> args:
> >> > >>>> > > > > >>>
> >> > >>>> > > > > >>>
> >> > >>>> > > > > >>>
> >> > >>>> > > > > >>
> >> > >>>> > > > >
> >> > >>>> > > >
> >> > >>>> > >
> >> > >>>> >
> >> > >>>>
> >> >
> >>
> -load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
> >> > >>>> > > > > >>>
> >> > >>>> > > > > >>> -js-default-initializers=false
> >> > >>>> > > > > >>>
> >> > >>>> > > > > >>> -source-map=true
> >> > >>>> > > > > >>>
> >> > >>>> > > > > >>> -compiler.targets=SWF,JSRoyale
> >> > >>>> > > > > >>>
> >> > >>>> > > > > >>> -compiler.strict-xml=true
> >> > >>>> > > > > >>>
> >> > >>>> > > > > >>> target:SWF
> >> > >>>> > > > > >>>
> >> > >>>> > > > > >>> target:JSRoyale
> >> > >>>> > > > > >>>
> >> > >>>> > > > > >>> COMPC
> >> > >>>> > > > > >>>
> >> > >>>> > > > > >>> Loading configuration:
> >> > >>>> > > > > >>>
> >> > >>>> > > > > >>>
> >> > >>>> > > > > >>
> >> > >>>> > > > >
> >> > >>>> > > >
> >> > >>>> > >
> >> > >>>> >
> >> > >>>>
> >> >
> >>
> /Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
> >> > >>>> > > > > >>>
> >> > >>>> > > > > >>>
> >> > >>>> > > > > >>> Error: Missing builtin type Object
> >> > >>>> > > > > >>>
> >> > >>>> > > > > >>>
> >> > >>>> > > > > >>>
> >> > >>>> > > > > >>> Missing builtin type Object
> >> > >>>> > > > > >>>
> >> > >>>> > > > > >>>
> >> > >>>> > > > > >>>
> >> > >>>> > > > > >>> 0.553372072 seconds
> >> > >>>> > > > > >>>
> >> > >>>> > > > > >>> this is failing when maven tries to compile the first
> >> > >>>> library
> >> > >>>> > > project
> >> > >>>> > > > > >>>
> >> > >>>> > > > > >>> Thanks for any light on this
> >> > >>>> > > > > >>>
> >> > >>>> > > > > >>> --
> >> > >>>> > > > > >>> Carlos Rovira
> >> > >>>> > > > > >>> http://about.me/carlosrovira
> >> > >>>> > > > > >>>
> >> > >>>> > > > > >>
> >> > >>>> > > > > >
> >> > >>>> > > > > >
> >> > >>>> > > > > > --
> >> > >>>> > > > > > Carlos Rovira
> >> > >>>> > > > > > http://about.me/carlosrovira
> >> > >>>> > > > >
> >> > >>>> > > > >
> >> > >>>> > > >
> >> > >>>> > > > --
> >> > >>>> > > > Carlos Rovira
> >> > >>>> > > > http://about.me/carlosrovira
> >> > >>>> > > >
> >> > >>>> > >
> >> > >>>> >
> >> > >>>> >
> >> > >>>> > --
> >> > >>>> > Carlos Rovira
> >> > >>>> > http://about.me/carlosrovira
> >> > >>>> >
> >> > >>>>
> >> > >>>
> >> > >>>
> >> > >>> --
> >> > >>> Carlos Rovira
> >> > >>> http://about.me/carlosrovira
> >> > >>>
> >> > >>>
> >> > >>
> >> > >> --
> >> > >> Carlos Rovira
> >> > >> http://about.me/carlosrovira
> >> > >>
> >> > >>
> >> > >
> >> > > --
> >> > > Carlos Rovira
> >> > > http://about.me/carlosrovira
> >> > >
> >> > >
> >> >
> >> > --
> >> > Carlos Rovira
> >> > http://about.me/carlosrovira
> >> >
> >>
> >
> >
> > --
> > Carlos Rovira
> > http://about.me/carlosrovira
> >
> >
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
Re: library-path changes
Posted by Carlos Rovira <ca...@apache.org>.
btw,
I was getting something like this:
<js-library-path>
<path-element>
/Users/carlosrovira/.m2/repository/org/apache/royale/typedefs/royale-typedefs-gcl/0.9.6-SNAPSHOT/royale-typedefs-gcl-0.9.6-SNAPSHOT-typedefs.swc
</path-element>
<path-element>
/Users/carlosrovira/.m2/repository/org/apache/royale/framework/Core/0.9.6-SNAPSHOT/Core-0.9.6-SNAPSHOT-js.swc
</path-element>
<path-element>
/Users/carlosrovira/.m2/repository/org/apache/royale/framework/Language/0.9.6-SNAPSHOT/Language-0.9.6-SNAPSHOT-js.swc
</path-element>
<path-element>
/Users/carlosrovira/.m2/repository/org/apache/royale/framework/Collections/0.9.6-SNAPSHOT/Collections-0.9.6-SNAPSHOT-js.swc
</path-element>
<path-element>
/Users/carlosrovira/.m2/repository/org/apache/royale/framework/Binding/0.9.6-SNAPSHOT/Binding-0.9.6-SNAPSHOT-js.swc
</path-element>
<path-element>
/Users/carlosrovira/.m2/repository/org/apache/royale/framework/Basic/0.9.6-SNAPSHOT/Basic-0.9.6-SNAPSHOT-js.swc
</path-element>
<path-element>
/Users/carlosrovira/.m2/repository/org/apache/royale/framework/DragDrop/0.9.6-SNAPSHOT/DragDrop-0.9.6-SNAPSHOT-js.swc
</path-element>
<path-element>
/Users/carlosrovira/.m2/repository/org/apache/royale/framework/Express/0.9.6-SNAPSHOT/Express-0.9.6-SNAPSHOT-js.swc
</path-element>
<path-element>
/Users/carlosrovira/.m2/repository/org/apache/royale/framework/Effects/0.9.6-SNAPSHOT/Effects-0.9.6-SNAPSHOT-js.swc
</path-element>
<path-element>
/Users/carlosrovira/.m2/repository/org/apache/royale/framework/Charts/0.9.6-SNAPSHOT/Charts-0.9.6-SNAPSHOT-js.swc
</path-element>
<path-element>
/Users/carlosrovira/.m2/repository/org/apache/royale/framework/XML/0.9.6-SNAPSHOT/XML-0.9.6-SNAPSHOT-js.swc
</path-element>
<path-element>
/Users/carlosrovira/.m2/repository/org/apache/royale/framework/MXRoyale/0.9.6-SNAPSHOT/MXRoyale-0.9.6-SNAPSHOT-js.swc
</path-element>
<path-element>
/Users/carlosrovira/.m2/repository/org/apache/royale/framework/Network/0.9.6-SNAPSHOT/Network-0.9.6-SNAPSHOT-js.swc
</path-element>
<path-element>
/Users/carlosrovira/.m2/repository/org/apache/royale/framework/Reflection/0.9.6-SNAPSHOT/Reflection-0.9.6-SNAPSHOT-js.swc
</path-element>
<path-element>
/Users/carlosrovira/.m2/repository/org/apache/royale/framework/HTML/0.9.6-SNAPSHOT/HTML-0.9.6-SNAPSHOT-js.swc
</path-element>
<path-element>
/Users/carlosrovira/.m2/repository/org/apache/royale/framework/Graphics/0.9.6-SNAPSHOT/Graphics-0.9.6-SNAPSHOT-js.swc
</path-element>
<path-element>
/Users/carlosrovira/.m2/repository/org/apache/royale/framework/Formatters/0.9.6-SNAPSHOT/Formatters-0.9.6-SNAPSHOT-js.swc
</path-element>
<path-element>
/Users/carlosrovira/.m2/repository/org/apache/royale/framework/Icons/0.9.6-SNAPSHOT/Icons-0.9.6-SNAPSHOT-js.swc
</path-element>
<path-element>
/Users/carlosrovira/.m2/repository/org/apache/royale/framework/Jewel/0.9.6-SNAPSHOT/Jewel-0.9.6-SNAPSHOT-js.swc
</path-element>
</js-library-path>
So as you said was not generating external-library-path
El lun., 22 jul. 2019 a las 19:24, Carlos Rovira (<ca...@apache.org>)
escribió:
> Hi Josh
>
> I think it should be "runtime" for this from [1]:
>
> *provided* This is much like compile, but indicates you expect the JDK or
> a container to provide the dependency at *runtime*. ... *runtime* This
> *scope* indicates that the dependency is not required for compilation,
> but is for execution. It is in the *runtime*and test classpaths, but not
> the compile classpath
>
> going to try to add scope runtime, and will report here. Thanks :)
>
> [1] Maven scopes vs. Gradle configurations – Andres
> Almirayandresalmiray.com/maven-scopes-vs-gradle-configurations/
> <https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=2ahUKEwiAvpqThcnjAhULyIUKHc11Af0QFjABegQICxAF&url=http%3A%2F%2Fandresalmiray.com%2Fmaven-scopes-vs-gradle-configurations%2F&usg=AOvVaw3mDdHGOHaiF7TI-0u_iHbe>
>
>
> El lun., 22 jul. 2019 a las 19:17, Josh Tynjala (<
> joshtynjala@bowlerhat.dev>) escribió:
>
>> When you compile a SWC, the framework libraries need to be on
>> external-library-path (or js-external-library-path or
>> swf-external-library-path). When you changed forceSwcExternalLibraryPath
>> to
>> false, this may have moved some of the libraries to the library-path
>> instead. You don't want that. You can check the
>> target/compile-js-config.xml file generated for your library to see if
>> Maven is using library-path or external-library-path for each framework
>> SWC.
>>
>> I took a look at the source code for the Royale Maven tasks. To add a
>> framework library to the external-library-path, you need to specify the
>> scope in pom.xml. It should be either "provided" or "runtime" to add them
>> to the external-library-path instead of the library-path. I don't know
>> what
>> the difference between "provided" and "runtime" is, but I assume that you
>> do since you know Maven much better than I do.
>>
>> I should point out that you should use "provided" or "runtime" for
>> framework SWCs only when you are when compiling a SWC. When compiling an
>> app, you definitely want these SWCs added to the library-path.
>>
>> --
>> Josh Tynjala
>> Bowler Hat LLC <https://bowlerhat.dev>
>>
>>
>> On Mon, Jul 22, 2019 at 9:59 AM Carlos Rovira <ca...@apache.org>
>> wrote:
>>
>> > Hi,
>> >
>> > the compilation was ok, but I'm facing now a blank page. I'm getting in
>> > debug mode:
>> >
>> > [Error] Error: Undefined nameToPath for
>> > org.apache.royale.events.EventDispatcher
>> > visitNode (base.js:1357)
>> > visitNode (base.js:1355)
>> > visitNode (base.js:1355)
>> > writeScripts_ (base.js:1369)
>> > require (base.js:706)
>> > Código global (tablet-debug:418)
>> >
>> > and
>> >
>> > [Error] ReferenceError: Can't find variable: App
>> > Código global (tablet-debug:425)
>> >
>> >
>> > do you know what's could be wrong?
>> >
>> > thanks
>> >
>> > Carlos
>> >
>> >
>> >
>> >
>> >
>> > El lun., 22 jul. 2019 a las 18:33, Carlos Rovira (<
>> carlosrovira@apache.org
>> > >)
>> > escribió:
>> >
>> > > Hi,
>> > >
>> > > I think finally reach to the problem, I had more of this in each
>> library
>> > >
>> > > <forceSwcExternalLibraryPath>true</forceSwcExternalLibraryPath>
>> > >
>> > > So now I'm getting all the rest libs compiling properly
>> > >
>> > > thanks for the help :)
>> > >
>> > > Carlos
>> > >
>> > >
>> > >
>> > >
>> > >
>> > > El lun., 22 jul. 2019 a las 18:32, Carlos Rovira (<
>> > carlosrovira@apache.org>)
>> > > escribió:
>> > >
>> > >> I get the following progress:
>> > >>
>> > >> first library was compiled by commenting forceSwcExternalLibraryPath
>> > >> since I have all libraries in the same folder "roaylelibs"
>> > >>
>> > >> <build>
>> > >> <plugins>
>> > >> <plugin>
>> > >> <groupId>org.apache.royale.compiler</groupId>
>> > >> <artifactId>royale-maven-plugin</artifactId>
>> > >> <version>${royale.compiler.version}</version>
>> > >> <configuration>
>> > >> <!-- We don't want dependencies to be linked into the resulting
>> > libraries
>> > >> -->
>> > >> <!-- <forceSwcExternalLibraryPath>true</forceSwcExternalLibraryPath>
>> -->
>> > >> </configuration>
>> > >> </plugin>
>> > >> </plugins>
>> > >> </build>
>> > >>
>> > >> but now the next one is failing in the same way as the previous one
>> was
>> > >> failing :?
>> > >>
>> > >> I removed all compile-swf-config.xml in all projects, and what I
>> don't
>> > >> understand is where comes the config maven is using:
>> > >>
>> > >> Executing COMPC in tool group Royale with args:
>> > >>
>> >
>> [-load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royaledto/target/compile-swf-config.xml,
>> > >> -js-default-initializers=false, -source-map=true,
>> > >> -compiler.targets=SWF,JSRoyale, -compiler.strict-xml=true]
>> > >>
>> > >>
>> > >>
>> > >>
>> > >>
>> > >>
>> > >> El lun., 22 jul. 2019 a las 18:14, Carlos Rovira (<
>> > >> carlosrovira@apache.org>) escribió:
>> > >>
>> > >>> I think the license header would be added in all files at some point
>> > for
>> > >>> all files to prevent RAT plugin to make compilation fail, so I'm
>> > figuring
>> > >>> it was something done manual
>> > >>>
>> > >>> El lun., 22 jul. 2019 a las 17:57, Josh Tynjala (<
>> > >>> joshtynjala@bowlerhat.dev>) escribió:
>> > >>>
>> > >>>> You're right. I remember seeing that the Royale Maven plugin
>> generates
>> > >>>> compile-swf-config.xml and compile-js-config.xml.
>> > >>>>
>> > >>>> It's strange that your Codeoscopic copyright header is added to
>> > >>>> compiler-swf-config.xml, though. I wouldn't expect Maven to do
>> that...
>> > >>>> unless maybe you have some other plugin that adds it?
>> > >>>>
>> > >>>> --
>> > >>>> Josh Tynjala
>> > >>>> Bowler Hat LLC <https://bowlerhat.dev>
>> > >>>>
>> > >>>>
>> > >>>> On Mon, Jul 22, 2019 at 8:49 AM Carlos Rovira <
>> > carlosrovira@apache.org>
>> > >>>> wrote:
>> > >>>>
>> > >>>> > Hi Josh,
>> > >>>> >
>> > >>>> > since my build is JS, I removed all "compile-swf-config.xml", but
>> > >>>> executing
>> > >>>> > again "mvn clean install", makes a "compile-swf-config.xml" file
>> be
>> > >>>> > generated in target folder
>> > >>>> > so I think is something in royale maven plugin that creates that
>> > file
>> > >>>> in
>> > >>>> > target folder. But is strange since as I say I'm working against
>> JS
>> > >>>> > although SWF is present but although always was compiling ok, it
>> > does
>> > >>>> not
>> > >>>> > really works since Jewel is still not implemented fully in SWF
>> > >>>> >
>> > >>>> > El lun., 22 jul. 2019 a las 17:35, Josh Tynjala (<
>> > >>>> > joshtynjala@bowlerhat.dev>)
>> > >>>> > escribió:
>> > >>>> >
>> > >>>> > > The append attribute has existed since the Flex days.
>> > >>>> > >
>> > >>>> > > --
>> > >>>> > > Josh Tynjala
>> > >>>> > > Bowler Hat LLC <https://bowlerhat.dev>
>> > >>>> > >
>> > >>>> > >
>> > >>>> > > On Mon, Jul 22, 2019 at 8:34 AM Carlos Rovira <
>> > >>>> carlosrovira@apache.org>
>> > >>>> > > wrote:
>> > >>>> > >
>> > >>>> > > > Hi Harbs,
>> > >>>> > > > thanks, the append attribute is new one? it was introduced
>> > >>>> recently?
>> > >>>> > > >
>> > >>>> > > > thanks
>> > >>>> > > >
>> > >>>> > > > El lun., 22 jul. 2019 a las 17:29, Harbs (<
>> > harbs.lists@gmail.com
>> > >>>> >)
>> > >>>> > > > escribió:
>> > >>>> > > >
>> > >>>> > > > > Make sure you have for the JS config:
>> > >>>> > > > > <js-external-library-path append=“true”>
>> > >>>> > > > >
>> > >>>> > > > > The append wil make sure you keep the default values.
>> > >>>> > > > >
>> > >>>> > > > > Here’s where I updated some of the libs I’m using:
>> > >>>> > > > >
>> > >>>> > > > >
>> > >>>> > > > >
>> > >>>> > > >
>> > >>>> > >
>> > >>>> >
>> > >>>>
>> >
>> https://github.com/unhurdle/cep-royale/commit/35d45906035e3d1997d70a67893cc096307a3842
>> > >>>> > > > > <
>> > >>>> > > > >
>> > >>>> > > >
>> > >>>> > >
>> > >>>> >
>> > >>>>
>> >
>> https://github.com/unhurdle/cep-royale/commit/35d45906035e3d1997d70a67893cc096307a3842
>> > >>>> > > > > >
>> > >>>> > > > >
>> > >>>> > > > >
>> > >>>> > > >
>> > >>>> > >
>> > >>>> >
>> > >>>>
>> >
>> https://github.com/unhurdle/spectrum-royale/commit/2f6e1b5ed25cc57585d6879fbcf2ccae79d57d28
>> > >>>> > > > > <
>> > >>>> > > > >
>> > >>>> > > >
>> > >>>> > >
>> > >>>> >
>> > >>>>
>> >
>> https://github.com/unhurdle/spectrum-royale/commit/2f6e1b5ed25cc57585d6879fbcf2ccae79d57d28
>> > >>>> > > > > >
>> > >>>> > > > >
>> > >>>> > > > > > On Jul 22, 2019, at 6:20 PM, Carlos Rovira <
>> > >>>> > carlosrovira@apache.org>
>> > >>>> > > > > wrote:
>> > >>>> > > > > >
>> > >>>> > > > > > Hi Josh,
>> > >>>> > > > > >
>> > >>>> > > > > > playerglobal.swc is ok, but can you point me to some
>> place
>> > >>>> where
>> > >>>> > > > "js.swc"
>> > >>>> > > > > > is used?
>> > >>>> > > > > >
>> > >>>> > > > > > contents of compile-swf-config.xml are the following:
>> > >>>> > > > > >
>> > >>>> > > > > > <!--
>> > >>>> > > > > >
>> > >>>> > > > > > Copyright (C) 2009, Codeoscopic S.A. - All Rights
>> Reserved
>> > >>>> > > > > > Unauthorized copying of this file, via any medium is
>> > strictly
>> > >>>> > > > prohibited
>> > >>>> > > > > > Proprietary and confidential
>> > >>>> > > > > >
>> > >>>> > > > > > Copyright (C) 2009, Codeoscopic S.A. - Todos Los Derechos
>> > >>>> > Reservados
>> > >>>> > > > > > La copia no autorizada de este archivo, a través de
>> > cualquier
>> > >>>> medio
>> > >>>> > > > está
>> > >>>> > > > > > estrictamente prohibida
>> > >>>> > > > > > Privado y confidencial
>> > >>>> > > > > >
>> > >>>> > > > > > -->
>> > >>>> > > > > > <royale-config>
>> > >>>> > > > > >
>> > >>>> > > > > > <compiler>
>> > >>>> > > > > > <accessible>false</accessible>
>> > >>>> > > > > > <!-- build both SWF and JS. -->
>> > >>>> > > > > > <targets>
>> > >>>> > > > > > <target>SWF</target>
>> > >>>> > > > > > <target>JSRoyale</target>
>> > >>>> > > > > > </targets>
>> > >>>> > > > > > <strict-xml>true</strict-xml>
>> > >>>> > > > > >
>> > >>>> > > > > > <external-library-path>
>> > >>>> > > > > >
>> > >>>> <path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</
>> > >>>> > > > > > path-element>
>> > >>>> > > > > >
>> <path-element>../../../../../libs/Binding.swc</path-element>
>> > >>>> > > > > > <path-element>../../../../../libs/Core.swc</path-element>
>> > >>>> > > > > >
>> > <path-element>../../../../../libs/Graphics.swc</path-element>
>> > >>>> > > > > >
>> > >>>> <path-element>../../../../../libs/Collections.swc</path-element>
>> > >>>> > > > > >
>> <path-element>../../../../../libs/Basic.swc</path-element>
>> > >>>> > > > > > </external-library-path>
>> > >>>> > > > > > <allow-subclass-overrides>true</allow-subclass-overrides>
>> > >>>> > > > > > <mxml>
>> > >>>> > > > > > <children-as-data>true</children-as-data>
>> > >>>> > > > > > </mxml>
>> > >>>> > > > > > <binding-value-change-event>
>> > >>>> > > > > >
>> > >>>> > >
>> > >>>>
>> org.apache.royale.events.ValueChangeEvent</binding-value-change-event>
>> > >>>> > > > > > <binding-value-change-event-kind>
>> > >>>> > > > > >
>> > >>>> > > > >
>> > >>>> > > >
>> > >>>> > >
>> > >>>> >
>> > >>>>
>> >
>> org.apache.royale.events.ValueChangeEvent</binding-value-change-event-kind>
>> > >>>> > > > > > <binding-value-change-event-type>valueChange</
>> > >>>> > > > > > binding-value-change-event-type>
>> > >>>> > > > > >
>> > >>>> > > > > > <define>
>> > >>>> > > > > > <name>COMPILE::SWF</name>
>> > >>>> > > > > > <value>true</value>
>> > >>>> > > > > > </define>
>> > >>>> > > > > > <define>
>> > >>>> > > > > > <name>COMPILE::JS</name>
>> > >>>> > > > > > <value>false</value>
>> > >>>> > > > > > </define>
>> > >>>> > > > > >
>> > >>>> > > > > > <keep-as3-metadata>
>> > >>>> > > > > > <name>Bindable</name>
>> > >>>> > > > > > <name>Managed</name>
>> > >>>> > > > > > <name>ChangeEvent</name>
>> > >>>> > > > > > <name>NonCommittingChangeEvent</name>
>> > >>>> > > > > > <name>Transient</name>
>> > >>>> > > > > > </keep-as3-metadata>
>> > >>>> > > > > >
>> > >>>> > > > > > <locale/>
>> > >>>> > > > > > <library-path/>
>> > >>>> > > > > >
>> > >>>> > > > > > <namespaces>
>> > >>>> > > > > > <namespace>
>> > >>>> > > > > > <uri>library://ns.apache.org/royale/basic</uri>
>> > >>>> > > > > > <manifest>../resources/icons-manifest.xml</manifest>
>> > >>>> > > > > > </namespace>
>> > >>>> > > > > > </namespaces>
>> > >>>> > > > > > <source-path>
>> > >>>> > > > > > <path-element>../royale</path-element>
>> > >>>> > > > > > </source-path>
>> > >>>> > > > > > <warn-no-constructor>false</warn-no-constructor>
>> > >>>> > > > > > </compiler>
>> > >>>> > > > > > <include-classes>
>> > >>>> > > > > > <class>IconsClasses</class>
>> > >>>> > > > > > </include-classes>
>> > >>>> > > > > > <include-namespaces>
>> > >>>> > > > > > <uri>library://ns.apache.org/royale/basic</uri>
>> > >>>> > > > > > </include-namespaces>
>> > >>>> > > > > > <target-player>${playerglobal.version}</target-player>
>> > >>>> > > > > >
>> > >>>> > > > > > </royale-config>
>> > >>>> > > > > >
>> > >>>> > > > > >
>> > >>>> > > > > >
>> > >>>> > > > > > I don't know too much about this file, have we docs about
>> > it?
>> > >>>> > > > > > the compiler generates the file itself?
>> > >>>> > > > > > it uses the global config.xml as a base?
>> > >>>> > > > > >
>> > >>>> > > > > > thanks Josh
>> > >>>> > > > > >
>> > >>>> > > > > >
>> > >>>> > > > > > El lun., 22 jul. 2019 a las 17:01, Josh Tynjala (<
>> > >>>> > > > > joshtynjala@bowlerhat.dev>)
>> > >>>> > > > > > escribió:
>> > >>>> > > > > >
>> > >>>> > > > > >> Error: Missing builtin type Object
>> > >>>> > > > > >>
>> > >>>> > > > > >> This error usually means that either playerglobal.swc or
>> > >>>> js.swc is
>> > >>>> > > > > missing.
>> > >>>> > > > > >>
>> > >>>> > > > > >> It would be difficult to suggest anything more without
>> > >>>> seeing the
>> > >>>> > > > > contents
>> > >>>> > > > > >> of compile-swf-config.xml.
>> > >>>> > > > > >>
>> > >>>> > > > > >> --
>> > >>>> > > > > >> Josh Tynjala
>> > >>>> > > > > >> Bowler Hat LLC <https://bowlerhat.dev>
>> > >>>> > > > > >>
>> > >>>> > > > > >>
>> > >>>> > > > > >> On Mon, Jul 22, 2019 at 7:50 AM Carlos Rovira <
>> > >>>> > > > carlosrovira@apache.org>
>> > >>>> > > > > >> wrote:
>> > >>>> > > > > >>
>> > >>>> > > > > >>> Hi,
>> > >>>> > > > > >>>
>> > >>>> > > > > >>> after latest changes with "library-path" I'm trying to
>> > >>>> update my
>> > >>>> > > > > project
>> > >>>> > > > > >>> with no luck.
>> > >>>> > > > > >>>
>> > >>>> > > > > >>> Hope someone could let me know some guide since all
>> what I
>> > >>>> tried
>> > >>>> > > > didn't
>> > >>>> > > > > >>> work and always get this:
>> > >>>> > > > > >>>
>> > >>>> > > > > >>> [*INFO*] *---
>> > *royale-maven-plugin:0.9.6-SNAPSHOT:compile-as
>> > >>>> > > > > >>> *(default-compile-as)* @ royalejewel* ---*
>> > >>>> > > > > >>>
>> > >>>> > > > > >>> [*INFO*] Executing COMPC in tool group Royale with
>> args:
>> > >>>> > > > > >>>
>> > >>>> > > > > >>>
>> > >>>> > > > > >>
>> > >>>> > > > >
>> > >>>> > > >
>> > >>>> > >
>> > >>>> >
>> > >>>>
>> >
>> [-load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml,
>> > >>>> > > > > >>> -js-default-initializers=false, -source-map=true,
>> > >>>> > > > > >>> -compiler.targets=SWF,JSRoyale,
>> -compiler.strict-xml=true]
>> > >>>> > > > > >>>
>> > >>>> > > > > >>> args:
>> > >>>> > > > > >>>
>> > >>>> > > > > >>>
>> > >>>> > > > > >>>
>> > >>>> > > > > >>
>> > >>>> > > > >
>> > >>>> > > >
>> > >>>> > >
>> > >>>> >
>> > >>>>
>> >
>> -load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
>> > >>>> > > > > >>>
>> > >>>> > > > > >>> -js-default-initializers=false
>> > >>>> > > > > >>>
>> > >>>> > > > > >>> -source-map=true
>> > >>>> > > > > >>>
>> > >>>> > > > > >>> -compiler.targets=SWF,JSRoyale
>> > >>>> > > > > >>>
>> > >>>> > > > > >>> -compiler.strict-xml=true
>> > >>>> > > > > >>>
>> > >>>> > > > > >>> target:SWF
>> > >>>> > > > > >>>
>> > >>>> > > > > >>> target:JSRoyale
>> > >>>> > > > > >>>
>> > >>>> > > > > >>> COMPC
>> > >>>> > > > > >>>
>> > >>>> > > > > >>> Loading configuration:
>> > >>>> > > > > >>>
>> > >>>> > > > > >>>
>> > >>>> > > > > >>
>> > >>>> > > > >
>> > >>>> > > >
>> > >>>> > >
>> > >>>> >
>> > >>>>
>> >
>> /Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
>> > >>>> > > > > >>>
>> > >>>> > > > > >>>
>> > >>>> > > > > >>> Error: Missing builtin type Object
>> > >>>> > > > > >>>
>> > >>>> > > > > >>>
>> > >>>> > > > > >>>
>> > >>>> > > > > >>> Missing builtin type Object
>> > >>>> > > > > >>>
>> > >>>> > > > > >>>
>> > >>>> > > > > >>>
>> > >>>> > > > > >>> 0.553372072 seconds
>> > >>>> > > > > >>>
>> > >>>> > > > > >>> this is failing when maven tries to compile the first
>> > >>>> library
>> > >>>> > > project
>> > >>>> > > > > >>>
>> > >>>> > > > > >>> Thanks for any light on this
>> > >>>> > > > > >>>
>> > >>>> > > > > >>> --
>> > >>>> > > > > >>> Carlos Rovira
>> > >>>> > > > > >>> http://about.me/carlosrovira
>> > >>>> > > > > >>>
>> > >>>> > > > > >>
>> > >>>> > > > > >
>> > >>>> > > > > >
>> > >>>> > > > > > --
>> > >>>> > > > > > Carlos Rovira
>> > >>>> > > > > > http://about.me/carlosrovira
>> > >>>> > > > >
>> > >>>> > > > >
>> > >>>> > > >
>> > >>>> > > > --
>> > >>>> > > > Carlos Rovira
>> > >>>> > > > http://about.me/carlosrovira
>> > >>>> > > >
>> > >>>> > >
>> > >>>> >
>> > >>>> >
>> > >>>> > --
>> > >>>> > Carlos Rovira
>> > >>>> > http://about.me/carlosrovira
>> > >>>> >
>> > >>>>
>> > >>>
>> > >>>
>> > >>> --
>> > >>> Carlos Rovira
>> > >>> http://about.me/carlosrovira
>> > >>>
>> > >>>
>> > >>
>> > >> --
>> > >> Carlos Rovira
>> > >> http://about.me/carlosrovira
>> > >>
>> > >>
>> > >
>> > > --
>> > > Carlos Rovira
>> > > http://about.me/carlosrovira
>> > >
>> > >
>> >
>> > --
>> > Carlos Rovira
>> > http://about.me/carlosrovira
>> >
>>
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
>
--
Carlos Rovira
http://about.me/carlosrovira
Re: library-path changes
Posted by Carlos Rovira <ca...@apache.org>.
Hi Josh
I think it should be "runtime" for this from [1]:
*provided* This is much like compile, but indicates you expect the JDK or a
container to provide the dependency at *runtime*. ... *runtime* This
*scope* indicates
that the dependency is not required for compilation, but is for execution.
It is in the *runtime*and test classpaths, but not the compile classpath
going to try to add scope runtime, and will report here. Thanks :)
[1] Maven scopes vs. Gradle configurations – Andres
Almirayandresalmiray.com/maven-scopes-vs-gradle-configurations/
<https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=2ahUKEwiAvpqThcnjAhULyIUKHc11Af0QFjABegQICxAF&url=http%3A%2F%2Fandresalmiray.com%2Fmaven-scopes-vs-gradle-configurations%2F&usg=AOvVaw3mDdHGOHaiF7TI-0u_iHbe>
El lun., 22 jul. 2019 a las 19:17, Josh Tynjala (<jo...@bowlerhat.dev>)
escribió:
> When you compile a SWC, the framework libraries need to be on
> external-library-path (or js-external-library-path or
> swf-external-library-path). When you changed forceSwcExternalLibraryPath to
> false, this may have moved some of the libraries to the library-path
> instead. You don't want that. You can check the
> target/compile-js-config.xml file generated for your library to see if
> Maven is using library-path or external-library-path for each framework
> SWC.
>
> I took a look at the source code for the Royale Maven tasks. To add a
> framework library to the external-library-path, you need to specify the
> scope in pom.xml. It should be either "provided" or "runtime" to add them
> to the external-library-path instead of the library-path. I don't know what
> the difference between "provided" and "runtime" is, but I assume that you
> do since you know Maven much better than I do.
>
> I should point out that you should use "provided" or "runtime" for
> framework SWCs only when you are when compiling a SWC. When compiling an
> app, you definitely want these SWCs added to the library-path.
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Mon, Jul 22, 2019 at 9:59 AM Carlos Rovira <ca...@apache.org>
> wrote:
>
> > Hi,
> >
> > the compilation was ok, but I'm facing now a blank page. I'm getting in
> > debug mode:
> >
> > [Error] Error: Undefined nameToPath for
> > org.apache.royale.events.EventDispatcher
> > visitNode (base.js:1357)
> > visitNode (base.js:1355)
> > visitNode (base.js:1355)
> > writeScripts_ (base.js:1369)
> > require (base.js:706)
> > Código global (tablet-debug:418)
> >
> > and
> >
> > [Error] ReferenceError: Can't find variable: App
> > Código global (tablet-debug:425)
> >
> >
> > do you know what's could be wrong?
> >
> > thanks
> >
> > Carlos
> >
> >
> >
> >
> >
> > El lun., 22 jul. 2019 a las 18:33, Carlos Rovira (<
> carlosrovira@apache.org
> > >)
> > escribió:
> >
> > > Hi,
> > >
> > > I think finally reach to the problem, I had more of this in each
> library
> > >
> > > <forceSwcExternalLibraryPath>true</forceSwcExternalLibraryPath>
> > >
> > > So now I'm getting all the rest libs compiling properly
> > >
> > > thanks for the help :)
> > >
> > > Carlos
> > >
> > >
> > >
> > >
> > >
> > > El lun., 22 jul. 2019 a las 18:32, Carlos Rovira (<
> > carlosrovira@apache.org>)
> > > escribió:
> > >
> > >> I get the following progress:
> > >>
> > >> first library was compiled by commenting forceSwcExternalLibraryPath
> > >> since I have all libraries in the same folder "roaylelibs"
> > >>
> > >> <build>
> > >> <plugins>
> > >> <plugin>
> > >> <groupId>org.apache.royale.compiler</groupId>
> > >> <artifactId>royale-maven-plugin</artifactId>
> > >> <version>${royale.compiler.version}</version>
> > >> <configuration>
> > >> <!-- We don't want dependencies to be linked into the resulting
> > libraries
> > >> -->
> > >> <!-- <forceSwcExternalLibraryPath>true</forceSwcExternalLibraryPath>
> -->
> > >> </configuration>
> > >> </plugin>
> > >> </plugins>
> > >> </build>
> > >>
> > >> but now the next one is failing in the same way as the previous one
> was
> > >> failing :?
> > >>
> > >> I removed all compile-swf-config.xml in all projects, and what I don't
> > >> understand is where comes the config maven is using:
> > >>
> > >> Executing COMPC in tool group Royale with args:
> > >>
> >
> [-load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royaledto/target/compile-swf-config.xml,
> > >> -js-default-initializers=false, -source-map=true,
> > >> -compiler.targets=SWF,JSRoyale, -compiler.strict-xml=true]
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >> El lun., 22 jul. 2019 a las 18:14, Carlos Rovira (<
> > >> carlosrovira@apache.org>) escribió:
> > >>
> > >>> I think the license header would be added in all files at some point
> > for
> > >>> all files to prevent RAT plugin to make compilation fail, so I'm
> > figuring
> > >>> it was something done manual
> > >>>
> > >>> El lun., 22 jul. 2019 a las 17:57, Josh Tynjala (<
> > >>> joshtynjala@bowlerhat.dev>) escribió:
> > >>>
> > >>>> You're right. I remember seeing that the Royale Maven plugin
> generates
> > >>>> compile-swf-config.xml and compile-js-config.xml.
> > >>>>
> > >>>> It's strange that your Codeoscopic copyright header is added to
> > >>>> compiler-swf-config.xml, though. I wouldn't expect Maven to do
> that...
> > >>>> unless maybe you have some other plugin that adds it?
> > >>>>
> > >>>> --
> > >>>> Josh Tynjala
> > >>>> Bowler Hat LLC <https://bowlerhat.dev>
> > >>>>
> > >>>>
> > >>>> On Mon, Jul 22, 2019 at 8:49 AM Carlos Rovira <
> > carlosrovira@apache.org>
> > >>>> wrote:
> > >>>>
> > >>>> > Hi Josh,
> > >>>> >
> > >>>> > since my build is JS, I removed all "compile-swf-config.xml", but
> > >>>> executing
> > >>>> > again "mvn clean install", makes a "compile-swf-config.xml" file
> be
> > >>>> > generated in target folder
> > >>>> > so I think is something in royale maven plugin that creates that
> > file
> > >>>> in
> > >>>> > target folder. But is strange since as I say I'm working against
> JS
> > >>>> > although SWF is present but although always was compiling ok, it
> > does
> > >>>> not
> > >>>> > really works since Jewel is still not implemented fully in SWF
> > >>>> >
> > >>>> > El lun., 22 jul. 2019 a las 17:35, Josh Tynjala (<
> > >>>> > joshtynjala@bowlerhat.dev>)
> > >>>> > escribió:
> > >>>> >
> > >>>> > > The append attribute has existed since the Flex days.
> > >>>> > >
> > >>>> > > --
> > >>>> > > Josh Tynjala
> > >>>> > > Bowler Hat LLC <https://bowlerhat.dev>
> > >>>> > >
> > >>>> > >
> > >>>> > > On Mon, Jul 22, 2019 at 8:34 AM Carlos Rovira <
> > >>>> carlosrovira@apache.org>
> > >>>> > > wrote:
> > >>>> > >
> > >>>> > > > Hi Harbs,
> > >>>> > > > thanks, the append attribute is new one? it was introduced
> > >>>> recently?
> > >>>> > > >
> > >>>> > > > thanks
> > >>>> > > >
> > >>>> > > > El lun., 22 jul. 2019 a las 17:29, Harbs (<
> > harbs.lists@gmail.com
> > >>>> >)
> > >>>> > > > escribió:
> > >>>> > > >
> > >>>> > > > > Make sure you have for the JS config:
> > >>>> > > > > <js-external-library-path append=“true”>
> > >>>> > > > >
> > >>>> > > > > The append wil make sure you keep the default values.
> > >>>> > > > >
> > >>>> > > > > Here’s where I updated some of the libs I’m using:
> > >>>> > > > >
> > >>>> > > > >
> > >>>> > > > >
> > >>>> > > >
> > >>>> > >
> > >>>> >
> > >>>>
> >
> https://github.com/unhurdle/cep-royale/commit/35d45906035e3d1997d70a67893cc096307a3842
> > >>>> > > > > <
> > >>>> > > > >
> > >>>> > > >
> > >>>> > >
> > >>>> >
> > >>>>
> >
> https://github.com/unhurdle/cep-royale/commit/35d45906035e3d1997d70a67893cc096307a3842
> > >>>> > > > > >
> > >>>> > > > >
> > >>>> > > > >
> > >>>> > > >
> > >>>> > >
> > >>>> >
> > >>>>
> >
> https://github.com/unhurdle/spectrum-royale/commit/2f6e1b5ed25cc57585d6879fbcf2ccae79d57d28
> > >>>> > > > > <
> > >>>> > > > >
> > >>>> > > >
> > >>>> > >
> > >>>> >
> > >>>>
> >
> https://github.com/unhurdle/spectrum-royale/commit/2f6e1b5ed25cc57585d6879fbcf2ccae79d57d28
> > >>>> > > > > >
> > >>>> > > > >
> > >>>> > > > > > On Jul 22, 2019, at 6:20 PM, Carlos Rovira <
> > >>>> > carlosrovira@apache.org>
> > >>>> > > > > wrote:
> > >>>> > > > > >
> > >>>> > > > > > Hi Josh,
> > >>>> > > > > >
> > >>>> > > > > > playerglobal.swc is ok, but can you point me to some place
> > >>>> where
> > >>>> > > > "js.swc"
> > >>>> > > > > > is used?
> > >>>> > > > > >
> > >>>> > > > > > contents of compile-swf-config.xml are the following:
> > >>>> > > > > >
> > >>>> > > > > > <!--
> > >>>> > > > > >
> > >>>> > > > > > Copyright (C) 2009, Codeoscopic S.A. - All Rights Reserved
> > >>>> > > > > > Unauthorized copying of this file, via any medium is
> > strictly
> > >>>> > > > prohibited
> > >>>> > > > > > Proprietary and confidential
> > >>>> > > > > >
> > >>>> > > > > > Copyright (C) 2009, Codeoscopic S.A. - Todos Los Derechos
> > >>>> > Reservados
> > >>>> > > > > > La copia no autorizada de este archivo, a través de
> > cualquier
> > >>>> medio
> > >>>> > > > está
> > >>>> > > > > > estrictamente prohibida
> > >>>> > > > > > Privado y confidencial
> > >>>> > > > > >
> > >>>> > > > > > -->
> > >>>> > > > > > <royale-config>
> > >>>> > > > > >
> > >>>> > > > > > <compiler>
> > >>>> > > > > > <accessible>false</accessible>
> > >>>> > > > > > <!-- build both SWF and JS. -->
> > >>>> > > > > > <targets>
> > >>>> > > > > > <target>SWF</target>
> > >>>> > > > > > <target>JSRoyale</target>
> > >>>> > > > > > </targets>
> > >>>> > > > > > <strict-xml>true</strict-xml>
> > >>>> > > > > >
> > >>>> > > > > > <external-library-path>
> > >>>> > > > > >
> > >>>> <path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</
> > >>>> > > > > > path-element>
> > >>>> > > > > >
> <path-element>../../../../../libs/Binding.swc</path-element>
> > >>>> > > > > > <path-element>../../../../../libs/Core.swc</path-element>
> > >>>> > > > > >
> > <path-element>../../../../../libs/Graphics.swc</path-element>
> > >>>> > > > > >
> > >>>> <path-element>../../../../../libs/Collections.swc</path-element>
> > >>>> > > > > > <path-element>../../../../../libs/Basic.swc</path-element>
> > >>>> > > > > > </external-library-path>
> > >>>> > > > > > <allow-subclass-overrides>true</allow-subclass-overrides>
> > >>>> > > > > > <mxml>
> > >>>> > > > > > <children-as-data>true</children-as-data>
> > >>>> > > > > > </mxml>
> > >>>> > > > > > <binding-value-change-event>
> > >>>> > > > > >
> > >>>> > >
> > >>>>
> org.apache.royale.events.ValueChangeEvent</binding-value-change-event>
> > >>>> > > > > > <binding-value-change-event-kind>
> > >>>> > > > > >
> > >>>> > > > >
> > >>>> > > >
> > >>>> > >
> > >>>> >
> > >>>>
> >
> org.apache.royale.events.ValueChangeEvent</binding-value-change-event-kind>
> > >>>> > > > > > <binding-value-change-event-type>valueChange</
> > >>>> > > > > > binding-value-change-event-type>
> > >>>> > > > > >
> > >>>> > > > > > <define>
> > >>>> > > > > > <name>COMPILE::SWF</name>
> > >>>> > > > > > <value>true</value>
> > >>>> > > > > > </define>
> > >>>> > > > > > <define>
> > >>>> > > > > > <name>COMPILE::JS</name>
> > >>>> > > > > > <value>false</value>
> > >>>> > > > > > </define>
> > >>>> > > > > >
> > >>>> > > > > > <keep-as3-metadata>
> > >>>> > > > > > <name>Bindable</name>
> > >>>> > > > > > <name>Managed</name>
> > >>>> > > > > > <name>ChangeEvent</name>
> > >>>> > > > > > <name>NonCommittingChangeEvent</name>
> > >>>> > > > > > <name>Transient</name>
> > >>>> > > > > > </keep-as3-metadata>
> > >>>> > > > > >
> > >>>> > > > > > <locale/>
> > >>>> > > > > > <library-path/>
> > >>>> > > > > >
> > >>>> > > > > > <namespaces>
> > >>>> > > > > > <namespace>
> > >>>> > > > > > <uri>library://ns.apache.org/royale/basic</uri>
> > >>>> > > > > > <manifest>../resources/icons-manifest.xml</manifest>
> > >>>> > > > > > </namespace>
> > >>>> > > > > > </namespaces>
> > >>>> > > > > > <source-path>
> > >>>> > > > > > <path-element>../royale</path-element>
> > >>>> > > > > > </source-path>
> > >>>> > > > > > <warn-no-constructor>false</warn-no-constructor>
> > >>>> > > > > > </compiler>
> > >>>> > > > > > <include-classes>
> > >>>> > > > > > <class>IconsClasses</class>
> > >>>> > > > > > </include-classes>
> > >>>> > > > > > <include-namespaces>
> > >>>> > > > > > <uri>library://ns.apache.org/royale/basic</uri>
> > >>>> > > > > > </include-namespaces>
> > >>>> > > > > > <target-player>${playerglobal.version}</target-player>
> > >>>> > > > > >
> > >>>> > > > > > </royale-config>
> > >>>> > > > > >
> > >>>> > > > > >
> > >>>> > > > > >
> > >>>> > > > > > I don't know too much about this file, have we docs about
> > it?
> > >>>> > > > > > the compiler generates the file itself?
> > >>>> > > > > > it uses the global config.xml as a base?
> > >>>> > > > > >
> > >>>> > > > > > thanks Josh
> > >>>> > > > > >
> > >>>> > > > > >
> > >>>> > > > > > El lun., 22 jul. 2019 a las 17:01, Josh Tynjala (<
> > >>>> > > > > joshtynjala@bowlerhat.dev>)
> > >>>> > > > > > escribió:
> > >>>> > > > > >
> > >>>> > > > > >> Error: Missing builtin type Object
> > >>>> > > > > >>
> > >>>> > > > > >> This error usually means that either playerglobal.swc or
> > >>>> js.swc is
> > >>>> > > > > missing.
> > >>>> > > > > >>
> > >>>> > > > > >> It would be difficult to suggest anything more without
> > >>>> seeing the
> > >>>> > > > > contents
> > >>>> > > > > >> of compile-swf-config.xml.
> > >>>> > > > > >>
> > >>>> > > > > >> --
> > >>>> > > > > >> Josh Tynjala
> > >>>> > > > > >> Bowler Hat LLC <https://bowlerhat.dev>
> > >>>> > > > > >>
> > >>>> > > > > >>
> > >>>> > > > > >> On Mon, Jul 22, 2019 at 7:50 AM Carlos Rovira <
> > >>>> > > > carlosrovira@apache.org>
> > >>>> > > > > >> wrote:
> > >>>> > > > > >>
> > >>>> > > > > >>> Hi,
> > >>>> > > > > >>>
> > >>>> > > > > >>> after latest changes with "library-path" I'm trying to
> > >>>> update my
> > >>>> > > > > project
> > >>>> > > > > >>> with no luck.
> > >>>> > > > > >>>
> > >>>> > > > > >>> Hope someone could let me know some guide since all
> what I
> > >>>> tried
> > >>>> > > > didn't
> > >>>> > > > > >>> work and always get this:
> > >>>> > > > > >>>
> > >>>> > > > > >>> [*INFO*] *---
> > *royale-maven-plugin:0.9.6-SNAPSHOT:compile-as
> > >>>> > > > > >>> *(default-compile-as)* @ royalejewel* ---*
> > >>>> > > > > >>>
> > >>>> > > > > >>> [*INFO*] Executing COMPC in tool group Royale with args:
> > >>>> > > > > >>>
> > >>>> > > > > >>>
> > >>>> > > > > >>
> > >>>> > > > >
> > >>>> > > >
> > >>>> > >
> > >>>> >
> > >>>>
> >
> [-load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml,
> > >>>> > > > > >>> -js-default-initializers=false, -source-map=true,
> > >>>> > > > > >>> -compiler.targets=SWF,JSRoyale,
> -compiler.strict-xml=true]
> > >>>> > > > > >>>
> > >>>> > > > > >>> args:
> > >>>> > > > > >>>
> > >>>> > > > > >>>
> > >>>> > > > > >>>
> > >>>> > > > > >>
> > >>>> > > > >
> > >>>> > > >
> > >>>> > >
> > >>>> >
> > >>>>
> >
> -load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
> > >>>> > > > > >>>
> > >>>> > > > > >>> -js-default-initializers=false
> > >>>> > > > > >>>
> > >>>> > > > > >>> -source-map=true
> > >>>> > > > > >>>
> > >>>> > > > > >>> -compiler.targets=SWF,JSRoyale
> > >>>> > > > > >>>
> > >>>> > > > > >>> -compiler.strict-xml=true
> > >>>> > > > > >>>
> > >>>> > > > > >>> target:SWF
> > >>>> > > > > >>>
> > >>>> > > > > >>> target:JSRoyale
> > >>>> > > > > >>>
> > >>>> > > > > >>> COMPC
> > >>>> > > > > >>>
> > >>>> > > > > >>> Loading configuration:
> > >>>> > > > > >>>
> > >>>> > > > > >>>
> > >>>> > > > > >>
> > >>>> > > > >
> > >>>> > > >
> > >>>> > >
> > >>>> >
> > >>>>
> >
> /Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
> > >>>> > > > > >>>
> > >>>> > > > > >>>
> > >>>> > > > > >>> Error: Missing builtin type Object
> > >>>> > > > > >>>
> > >>>> > > > > >>>
> > >>>> > > > > >>>
> > >>>> > > > > >>> Missing builtin type Object
> > >>>> > > > > >>>
> > >>>> > > > > >>>
> > >>>> > > > > >>>
> > >>>> > > > > >>> 0.553372072 seconds
> > >>>> > > > > >>>
> > >>>> > > > > >>> this is failing when maven tries to compile the first
> > >>>> library
> > >>>> > > project
> > >>>> > > > > >>>
> > >>>> > > > > >>> Thanks for any light on this
> > >>>> > > > > >>>
> > >>>> > > > > >>> --
> > >>>> > > > > >>> Carlos Rovira
> > >>>> > > > > >>> http://about.me/carlosrovira
> > >>>> > > > > >>>
> > >>>> > > > > >>
> > >>>> > > > > >
> > >>>> > > > > >
> > >>>> > > > > > --
> > >>>> > > > > > Carlos Rovira
> > >>>> > > > > > http://about.me/carlosrovira
> > >>>> > > > >
> > >>>> > > > >
> > >>>> > > >
> > >>>> > > > --
> > >>>> > > > Carlos Rovira
> > >>>> > > > http://about.me/carlosrovira
> > >>>> > > >
> > >>>> > >
> > >>>> >
> > >>>> >
> > >>>> > --
> > >>>> > Carlos Rovira
> > >>>> > http://about.me/carlosrovira
> > >>>> >
> > >>>>
> > >>>
> > >>>
> > >>> --
> > >>> Carlos Rovira
> > >>> http://about.me/carlosrovira
> > >>>
> > >>>
> > >>
> > >> --
> > >> Carlos Rovira
> > >> http://about.me/carlosrovira
> > >>
> > >>
> > >
> > > --
> > > Carlos Rovira
> > > http://about.me/carlosrovira
> > >
> > >
> >
> > --
> > Carlos Rovira
> > http://about.me/carlosrovira
> >
>
--
Carlos Rovira
http://about.me/carlosrovira
Re: library-path changes
Posted by Josh Tynjala <jo...@bowlerhat.dev>.
When you compile a SWC, the framework libraries need to be on
external-library-path (or js-external-library-path or
swf-external-library-path). When you changed forceSwcExternalLibraryPath to
false, this may have moved some of the libraries to the library-path
instead. You don't want that. You can check the
target/compile-js-config.xml file generated for your library to see if
Maven is using library-path or external-library-path for each framework SWC.
I took a look at the source code for the Royale Maven tasks. To add a
framework library to the external-library-path, you need to specify the
scope in pom.xml. It should be either "provided" or "runtime" to add them
to the external-library-path instead of the library-path. I don't know what
the difference between "provided" and "runtime" is, but I assume that you
do since you know Maven much better than I do.
I should point out that you should use "provided" or "runtime" for
framework SWCs only when you are when compiling a SWC. When compiling an
app, you definitely want these SWCs added to the library-path.
--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>
On Mon, Jul 22, 2019 at 9:59 AM Carlos Rovira <ca...@apache.org>
wrote:
> Hi,
>
> the compilation was ok, but I'm facing now a blank page. I'm getting in
> debug mode:
>
> [Error] Error: Undefined nameToPath for
> org.apache.royale.events.EventDispatcher
> visitNode (base.js:1357)
> visitNode (base.js:1355)
> visitNode (base.js:1355)
> writeScripts_ (base.js:1369)
> require (base.js:706)
> Código global (tablet-debug:418)
>
> and
>
> [Error] ReferenceError: Can't find variable: App
> Código global (tablet-debug:425)
>
>
> do you know what's could be wrong?
>
> thanks
>
> Carlos
>
>
>
>
>
> El lun., 22 jul. 2019 a las 18:33, Carlos Rovira (<carlosrovira@apache.org
> >)
> escribió:
>
> > Hi,
> >
> > I think finally reach to the problem, I had more of this in each library
> >
> > <forceSwcExternalLibraryPath>true</forceSwcExternalLibraryPath>
> >
> > So now I'm getting all the rest libs compiling properly
> >
> > thanks for the help :)
> >
> > Carlos
> >
> >
> >
> >
> >
> > El lun., 22 jul. 2019 a las 18:32, Carlos Rovira (<
> carlosrovira@apache.org>)
> > escribió:
> >
> >> I get the following progress:
> >>
> >> first library was compiled by commenting forceSwcExternalLibraryPath
> >> since I have all libraries in the same folder "roaylelibs"
> >>
> >> <build>
> >> <plugins>
> >> <plugin>
> >> <groupId>org.apache.royale.compiler</groupId>
> >> <artifactId>royale-maven-plugin</artifactId>
> >> <version>${royale.compiler.version}</version>
> >> <configuration>
> >> <!-- We don't want dependencies to be linked into the resulting
> libraries
> >> -->
> >> <!-- <forceSwcExternalLibraryPath>true</forceSwcExternalLibraryPath> -->
> >> </configuration>
> >> </plugin>
> >> </plugins>
> >> </build>
> >>
> >> but now the next one is failing in the same way as the previous one was
> >> failing :?
> >>
> >> I removed all compile-swf-config.xml in all projects, and what I don't
> >> understand is where comes the config maven is using:
> >>
> >> Executing COMPC in tool group Royale with args:
> >>
> [-load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royaledto/target/compile-swf-config.xml,
> >> -js-default-initializers=false, -source-map=true,
> >> -compiler.targets=SWF,JSRoyale, -compiler.strict-xml=true]
> >>
> >>
> >>
> >>
> >>
> >>
> >> El lun., 22 jul. 2019 a las 18:14, Carlos Rovira (<
> >> carlosrovira@apache.org>) escribió:
> >>
> >>> I think the license header would be added in all files at some point
> for
> >>> all files to prevent RAT plugin to make compilation fail, so I'm
> figuring
> >>> it was something done manual
> >>>
> >>> El lun., 22 jul. 2019 a las 17:57, Josh Tynjala (<
> >>> joshtynjala@bowlerhat.dev>) escribió:
> >>>
> >>>> You're right. I remember seeing that the Royale Maven plugin generates
> >>>> compile-swf-config.xml and compile-js-config.xml.
> >>>>
> >>>> It's strange that your Codeoscopic copyright header is added to
> >>>> compiler-swf-config.xml, though. I wouldn't expect Maven to do that...
> >>>> unless maybe you have some other plugin that adds it?
> >>>>
> >>>> --
> >>>> Josh Tynjala
> >>>> Bowler Hat LLC <https://bowlerhat.dev>
> >>>>
> >>>>
> >>>> On Mon, Jul 22, 2019 at 8:49 AM Carlos Rovira <
> carlosrovira@apache.org>
> >>>> wrote:
> >>>>
> >>>> > Hi Josh,
> >>>> >
> >>>> > since my build is JS, I removed all "compile-swf-config.xml", but
> >>>> executing
> >>>> > again "mvn clean install", makes a "compile-swf-config.xml" file be
> >>>> > generated in target folder
> >>>> > so I think is something in royale maven plugin that creates that
> file
> >>>> in
> >>>> > target folder. But is strange since as I say I'm working against JS
> >>>> > although SWF is present but although always was compiling ok, it
> does
> >>>> not
> >>>> > really works since Jewel is still not implemented fully in SWF
> >>>> >
> >>>> > El lun., 22 jul. 2019 a las 17:35, Josh Tynjala (<
> >>>> > joshtynjala@bowlerhat.dev>)
> >>>> > escribió:
> >>>> >
> >>>> > > The append attribute has existed since the Flex days.
> >>>> > >
> >>>> > > --
> >>>> > > Josh Tynjala
> >>>> > > Bowler Hat LLC <https://bowlerhat.dev>
> >>>> > >
> >>>> > >
> >>>> > > On Mon, Jul 22, 2019 at 8:34 AM Carlos Rovira <
> >>>> carlosrovira@apache.org>
> >>>> > > wrote:
> >>>> > >
> >>>> > > > Hi Harbs,
> >>>> > > > thanks, the append attribute is new one? it was introduced
> >>>> recently?
> >>>> > > >
> >>>> > > > thanks
> >>>> > > >
> >>>> > > > El lun., 22 jul. 2019 a las 17:29, Harbs (<
> harbs.lists@gmail.com
> >>>> >)
> >>>> > > > escribió:
> >>>> > > >
> >>>> > > > > Make sure you have for the JS config:
> >>>> > > > > <js-external-library-path append=“true”>
> >>>> > > > >
> >>>> > > > > The append wil make sure you keep the default values.
> >>>> > > > >
> >>>> > > > > Here’s where I updated some of the libs I’m using:
> >>>> > > > >
> >>>> > > > >
> >>>> > > > >
> >>>> > > >
> >>>> > >
> >>>> >
> >>>>
> https://github.com/unhurdle/cep-royale/commit/35d45906035e3d1997d70a67893cc096307a3842
> >>>> > > > > <
> >>>> > > > >
> >>>> > > >
> >>>> > >
> >>>> >
> >>>>
> https://github.com/unhurdle/cep-royale/commit/35d45906035e3d1997d70a67893cc096307a3842
> >>>> > > > > >
> >>>> > > > >
> >>>> > > > >
> >>>> > > >
> >>>> > >
> >>>> >
> >>>>
> https://github.com/unhurdle/spectrum-royale/commit/2f6e1b5ed25cc57585d6879fbcf2ccae79d57d28
> >>>> > > > > <
> >>>> > > > >
> >>>> > > >
> >>>> > >
> >>>> >
> >>>>
> https://github.com/unhurdle/spectrum-royale/commit/2f6e1b5ed25cc57585d6879fbcf2ccae79d57d28
> >>>> > > > > >
> >>>> > > > >
> >>>> > > > > > On Jul 22, 2019, at 6:20 PM, Carlos Rovira <
> >>>> > carlosrovira@apache.org>
> >>>> > > > > wrote:
> >>>> > > > > >
> >>>> > > > > > Hi Josh,
> >>>> > > > > >
> >>>> > > > > > playerglobal.swc is ok, but can you point me to some place
> >>>> where
> >>>> > > > "js.swc"
> >>>> > > > > > is used?
> >>>> > > > > >
> >>>> > > > > > contents of compile-swf-config.xml are the following:
> >>>> > > > > >
> >>>> > > > > > <!--
> >>>> > > > > >
> >>>> > > > > > Copyright (C) 2009, Codeoscopic S.A. - All Rights Reserved
> >>>> > > > > > Unauthorized copying of this file, via any medium is
> strictly
> >>>> > > > prohibited
> >>>> > > > > > Proprietary and confidential
> >>>> > > > > >
> >>>> > > > > > Copyright (C) 2009, Codeoscopic S.A. - Todos Los Derechos
> >>>> > Reservados
> >>>> > > > > > La copia no autorizada de este archivo, a través de
> cualquier
> >>>> medio
> >>>> > > > está
> >>>> > > > > > estrictamente prohibida
> >>>> > > > > > Privado y confidencial
> >>>> > > > > >
> >>>> > > > > > -->
> >>>> > > > > > <royale-config>
> >>>> > > > > >
> >>>> > > > > > <compiler>
> >>>> > > > > > <accessible>false</accessible>
> >>>> > > > > > <!-- build both SWF and JS. -->
> >>>> > > > > > <targets>
> >>>> > > > > > <target>SWF</target>
> >>>> > > > > > <target>JSRoyale</target>
> >>>> > > > > > </targets>
> >>>> > > > > > <strict-xml>true</strict-xml>
> >>>> > > > > >
> >>>> > > > > > <external-library-path>
> >>>> > > > > >
> >>>> <path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</
> >>>> > > > > > path-element>
> >>>> > > > > > <path-element>../../../../../libs/Binding.swc</path-element>
> >>>> > > > > > <path-element>../../../../../libs/Core.swc</path-element>
> >>>> > > > > >
> <path-element>../../../../../libs/Graphics.swc</path-element>
> >>>> > > > > >
> >>>> <path-element>../../../../../libs/Collections.swc</path-element>
> >>>> > > > > > <path-element>../../../../../libs/Basic.swc</path-element>
> >>>> > > > > > </external-library-path>
> >>>> > > > > > <allow-subclass-overrides>true</allow-subclass-overrides>
> >>>> > > > > > <mxml>
> >>>> > > > > > <children-as-data>true</children-as-data>
> >>>> > > > > > </mxml>
> >>>> > > > > > <binding-value-change-event>
> >>>> > > > > >
> >>>> > >
> >>>> org.apache.royale.events.ValueChangeEvent</binding-value-change-event>
> >>>> > > > > > <binding-value-change-event-kind>
> >>>> > > > > >
> >>>> > > > >
> >>>> > > >
> >>>> > >
> >>>> >
> >>>>
> org.apache.royale.events.ValueChangeEvent</binding-value-change-event-kind>
> >>>> > > > > > <binding-value-change-event-type>valueChange</
> >>>> > > > > > binding-value-change-event-type>
> >>>> > > > > >
> >>>> > > > > > <define>
> >>>> > > > > > <name>COMPILE::SWF</name>
> >>>> > > > > > <value>true</value>
> >>>> > > > > > </define>
> >>>> > > > > > <define>
> >>>> > > > > > <name>COMPILE::JS</name>
> >>>> > > > > > <value>false</value>
> >>>> > > > > > </define>
> >>>> > > > > >
> >>>> > > > > > <keep-as3-metadata>
> >>>> > > > > > <name>Bindable</name>
> >>>> > > > > > <name>Managed</name>
> >>>> > > > > > <name>ChangeEvent</name>
> >>>> > > > > > <name>NonCommittingChangeEvent</name>
> >>>> > > > > > <name>Transient</name>
> >>>> > > > > > </keep-as3-metadata>
> >>>> > > > > >
> >>>> > > > > > <locale/>
> >>>> > > > > > <library-path/>
> >>>> > > > > >
> >>>> > > > > > <namespaces>
> >>>> > > > > > <namespace>
> >>>> > > > > > <uri>library://ns.apache.org/royale/basic</uri>
> >>>> > > > > > <manifest>../resources/icons-manifest.xml</manifest>
> >>>> > > > > > </namespace>
> >>>> > > > > > </namespaces>
> >>>> > > > > > <source-path>
> >>>> > > > > > <path-element>../royale</path-element>
> >>>> > > > > > </source-path>
> >>>> > > > > > <warn-no-constructor>false</warn-no-constructor>
> >>>> > > > > > </compiler>
> >>>> > > > > > <include-classes>
> >>>> > > > > > <class>IconsClasses</class>
> >>>> > > > > > </include-classes>
> >>>> > > > > > <include-namespaces>
> >>>> > > > > > <uri>library://ns.apache.org/royale/basic</uri>
> >>>> > > > > > </include-namespaces>
> >>>> > > > > > <target-player>${playerglobal.version}</target-player>
> >>>> > > > > >
> >>>> > > > > > </royale-config>
> >>>> > > > > >
> >>>> > > > > >
> >>>> > > > > >
> >>>> > > > > > I don't know too much about this file, have we docs about
> it?
> >>>> > > > > > the compiler generates the file itself?
> >>>> > > > > > it uses the global config.xml as a base?
> >>>> > > > > >
> >>>> > > > > > thanks Josh
> >>>> > > > > >
> >>>> > > > > >
> >>>> > > > > > El lun., 22 jul. 2019 a las 17:01, Josh Tynjala (<
> >>>> > > > > joshtynjala@bowlerhat.dev>)
> >>>> > > > > > escribió:
> >>>> > > > > >
> >>>> > > > > >> Error: Missing builtin type Object
> >>>> > > > > >>
> >>>> > > > > >> This error usually means that either playerglobal.swc or
> >>>> js.swc is
> >>>> > > > > missing.
> >>>> > > > > >>
> >>>> > > > > >> It would be difficult to suggest anything more without
> >>>> seeing the
> >>>> > > > > contents
> >>>> > > > > >> of compile-swf-config.xml.
> >>>> > > > > >>
> >>>> > > > > >> --
> >>>> > > > > >> Josh Tynjala
> >>>> > > > > >> Bowler Hat LLC <https://bowlerhat.dev>
> >>>> > > > > >>
> >>>> > > > > >>
> >>>> > > > > >> On Mon, Jul 22, 2019 at 7:50 AM Carlos Rovira <
> >>>> > > > carlosrovira@apache.org>
> >>>> > > > > >> wrote:
> >>>> > > > > >>
> >>>> > > > > >>> Hi,
> >>>> > > > > >>>
> >>>> > > > > >>> after latest changes with "library-path" I'm trying to
> >>>> update my
> >>>> > > > > project
> >>>> > > > > >>> with no luck.
> >>>> > > > > >>>
> >>>> > > > > >>> Hope someone could let me know some guide since all what I
> >>>> tried
> >>>> > > > didn't
> >>>> > > > > >>> work and always get this:
> >>>> > > > > >>>
> >>>> > > > > >>> [*INFO*] *---
> *royale-maven-plugin:0.9.6-SNAPSHOT:compile-as
> >>>> > > > > >>> *(default-compile-as)* @ royalejewel* ---*
> >>>> > > > > >>>
> >>>> > > > > >>> [*INFO*] Executing COMPC in tool group Royale with args:
> >>>> > > > > >>>
> >>>> > > > > >>>
> >>>> > > > > >>
> >>>> > > > >
> >>>> > > >
> >>>> > >
> >>>> >
> >>>>
> [-load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml,
> >>>> > > > > >>> -js-default-initializers=false, -source-map=true,
> >>>> > > > > >>> -compiler.targets=SWF,JSRoyale, -compiler.strict-xml=true]
> >>>> > > > > >>>
> >>>> > > > > >>> args:
> >>>> > > > > >>>
> >>>> > > > > >>>
> >>>> > > > > >>>
> >>>> > > > > >>
> >>>> > > > >
> >>>> > > >
> >>>> > >
> >>>> >
> >>>>
> -load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
> >>>> > > > > >>>
> >>>> > > > > >>> -js-default-initializers=false
> >>>> > > > > >>>
> >>>> > > > > >>> -source-map=true
> >>>> > > > > >>>
> >>>> > > > > >>> -compiler.targets=SWF,JSRoyale
> >>>> > > > > >>>
> >>>> > > > > >>> -compiler.strict-xml=true
> >>>> > > > > >>>
> >>>> > > > > >>> target:SWF
> >>>> > > > > >>>
> >>>> > > > > >>> target:JSRoyale
> >>>> > > > > >>>
> >>>> > > > > >>> COMPC
> >>>> > > > > >>>
> >>>> > > > > >>> Loading configuration:
> >>>> > > > > >>>
> >>>> > > > > >>>
> >>>> > > > > >>
> >>>> > > > >
> >>>> > > >
> >>>> > >
> >>>> >
> >>>>
> /Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
> >>>> > > > > >>>
> >>>> > > > > >>>
> >>>> > > > > >>> Error: Missing builtin type Object
> >>>> > > > > >>>
> >>>> > > > > >>>
> >>>> > > > > >>>
> >>>> > > > > >>> Missing builtin type Object
> >>>> > > > > >>>
> >>>> > > > > >>>
> >>>> > > > > >>>
> >>>> > > > > >>> 0.553372072 seconds
> >>>> > > > > >>>
> >>>> > > > > >>> this is failing when maven tries to compile the first
> >>>> library
> >>>> > > project
> >>>> > > > > >>>
> >>>> > > > > >>> Thanks for any light on this
> >>>> > > > > >>>
> >>>> > > > > >>> --
> >>>> > > > > >>> Carlos Rovira
> >>>> > > > > >>> http://about.me/carlosrovira
> >>>> > > > > >>>
> >>>> > > > > >>
> >>>> > > > > >
> >>>> > > > > >
> >>>> > > > > > --
> >>>> > > > > > Carlos Rovira
> >>>> > > > > > http://about.me/carlosrovira
> >>>> > > > >
> >>>> > > > >
> >>>> > > >
> >>>> > > > --
> >>>> > > > Carlos Rovira
> >>>> > > > http://about.me/carlosrovira
> >>>> > > >
> >>>> > >
> >>>> >
> >>>> >
> >>>> > --
> >>>> > Carlos Rovira
> >>>> > http://about.me/carlosrovira
> >>>> >
> >>>>
> >>>
> >>>
> >>> --
> >>> Carlos Rovira
> >>> http://about.me/carlosrovira
> >>>
> >>>
> >>
> >> --
> >> Carlos Rovira
> >> http://about.me/carlosrovira
> >>
> >>
> >
> > --
> > Carlos Rovira
> > http://about.me/carlosrovira
> >
> >
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
Re: library-path changes
Posted by Carlos Rovira <ca...@apache.org>.
Hi,
the compilation was ok, but I'm facing now a blank page. I'm getting in
debug mode:
[Error] Error: Undefined nameToPath for
org.apache.royale.events.EventDispatcher
visitNode (base.js:1357)
visitNode (base.js:1355)
visitNode (base.js:1355)
writeScripts_ (base.js:1369)
require (base.js:706)
Código global (tablet-debug:418)
and
[Error] ReferenceError: Can't find variable: App
Código global (tablet-debug:425)
do you know what's could be wrong?
thanks
Carlos
El lun., 22 jul. 2019 a las 18:33, Carlos Rovira (<ca...@apache.org>)
escribió:
> Hi,
>
> I think finally reach to the problem, I had more of this in each library
>
> <forceSwcExternalLibraryPath>true</forceSwcExternalLibraryPath>
>
> So now I'm getting all the rest libs compiling properly
>
> thanks for the help :)
>
> Carlos
>
>
>
>
>
> El lun., 22 jul. 2019 a las 18:32, Carlos Rovira (<ca...@apache.org>)
> escribió:
>
>> I get the following progress:
>>
>> first library was compiled by commenting forceSwcExternalLibraryPath
>> since I have all libraries in the same folder "roaylelibs"
>>
>> <build>
>> <plugins>
>> <plugin>
>> <groupId>org.apache.royale.compiler</groupId>
>> <artifactId>royale-maven-plugin</artifactId>
>> <version>${royale.compiler.version}</version>
>> <configuration>
>> <!-- We don't want dependencies to be linked into the resulting libraries
>> -->
>> <!-- <forceSwcExternalLibraryPath>true</forceSwcExternalLibraryPath> -->
>> </configuration>
>> </plugin>
>> </plugins>
>> </build>
>>
>> but now the next one is failing in the same way as the previous one was
>> failing :?
>>
>> I removed all compile-swf-config.xml in all projects, and what I don't
>> understand is where comes the config maven is using:
>>
>> Executing COMPC in tool group Royale with args:
>> [-load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royaledto/target/compile-swf-config.xml,
>> -js-default-initializers=false, -source-map=true,
>> -compiler.targets=SWF,JSRoyale, -compiler.strict-xml=true]
>>
>>
>>
>>
>>
>>
>> El lun., 22 jul. 2019 a las 18:14, Carlos Rovira (<
>> carlosrovira@apache.org>) escribió:
>>
>>> I think the license header would be added in all files at some point for
>>> all files to prevent RAT plugin to make compilation fail, so I'm figuring
>>> it was something done manual
>>>
>>> El lun., 22 jul. 2019 a las 17:57, Josh Tynjala (<
>>> joshtynjala@bowlerhat.dev>) escribió:
>>>
>>>> You're right. I remember seeing that the Royale Maven plugin generates
>>>> compile-swf-config.xml and compile-js-config.xml.
>>>>
>>>> It's strange that your Codeoscopic copyright header is added to
>>>> compiler-swf-config.xml, though. I wouldn't expect Maven to do that...
>>>> unless maybe you have some other plugin that adds it?
>>>>
>>>> --
>>>> Josh Tynjala
>>>> Bowler Hat LLC <https://bowlerhat.dev>
>>>>
>>>>
>>>> On Mon, Jul 22, 2019 at 8:49 AM Carlos Rovira <ca...@apache.org>
>>>> wrote:
>>>>
>>>> > Hi Josh,
>>>> >
>>>> > since my build is JS, I removed all "compile-swf-config.xml", but
>>>> executing
>>>> > again "mvn clean install", makes a "compile-swf-config.xml" file be
>>>> > generated in target folder
>>>> > so I think is something in royale maven plugin that creates that file
>>>> in
>>>> > target folder. But is strange since as I say I'm working against JS
>>>> > although SWF is present but although always was compiling ok, it does
>>>> not
>>>> > really works since Jewel is still not implemented fully in SWF
>>>> >
>>>> > El lun., 22 jul. 2019 a las 17:35, Josh Tynjala (<
>>>> > joshtynjala@bowlerhat.dev>)
>>>> > escribió:
>>>> >
>>>> > > The append attribute has existed since the Flex days.
>>>> > >
>>>> > > --
>>>> > > Josh Tynjala
>>>> > > Bowler Hat LLC <https://bowlerhat.dev>
>>>> > >
>>>> > >
>>>> > > On Mon, Jul 22, 2019 at 8:34 AM Carlos Rovira <
>>>> carlosrovira@apache.org>
>>>> > > wrote:
>>>> > >
>>>> > > > Hi Harbs,
>>>> > > > thanks, the append attribute is new one? it was introduced
>>>> recently?
>>>> > > >
>>>> > > > thanks
>>>> > > >
>>>> > > > El lun., 22 jul. 2019 a las 17:29, Harbs (<harbs.lists@gmail.com
>>>> >)
>>>> > > > escribió:
>>>> > > >
>>>> > > > > Make sure you have for the JS config:
>>>> > > > > <js-external-library-path append=“true”>
>>>> > > > >
>>>> > > > > The append wil make sure you keep the default values.
>>>> > > > >
>>>> > > > > Here’s where I updated some of the libs I’m using:
>>>> > > > >
>>>> > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> https://github.com/unhurdle/cep-royale/commit/35d45906035e3d1997d70a67893cc096307a3842
>>>> > > > > <
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> https://github.com/unhurdle/cep-royale/commit/35d45906035e3d1997d70a67893cc096307a3842
>>>> > > > > >
>>>> > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> https://github.com/unhurdle/spectrum-royale/commit/2f6e1b5ed25cc57585d6879fbcf2ccae79d57d28
>>>> > > > > <
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> https://github.com/unhurdle/spectrum-royale/commit/2f6e1b5ed25cc57585d6879fbcf2ccae79d57d28
>>>> > > > > >
>>>> > > > >
>>>> > > > > > On Jul 22, 2019, at 6:20 PM, Carlos Rovira <
>>>> > carlosrovira@apache.org>
>>>> > > > > wrote:
>>>> > > > > >
>>>> > > > > > Hi Josh,
>>>> > > > > >
>>>> > > > > > playerglobal.swc is ok, but can you point me to some place
>>>> where
>>>> > > > "js.swc"
>>>> > > > > > is used?
>>>> > > > > >
>>>> > > > > > contents of compile-swf-config.xml are the following:
>>>> > > > > >
>>>> > > > > > <!--
>>>> > > > > >
>>>> > > > > > Copyright (C) 2009, Codeoscopic S.A. - All Rights Reserved
>>>> > > > > > Unauthorized copying of this file, via any medium is strictly
>>>> > > > prohibited
>>>> > > > > > Proprietary and confidential
>>>> > > > > >
>>>> > > > > > Copyright (C) 2009, Codeoscopic S.A. - Todos Los Derechos
>>>> > Reservados
>>>> > > > > > La copia no autorizada de este archivo, a través de cualquier
>>>> medio
>>>> > > > está
>>>> > > > > > estrictamente prohibida
>>>> > > > > > Privado y confidencial
>>>> > > > > >
>>>> > > > > > -->
>>>> > > > > > <royale-config>
>>>> > > > > >
>>>> > > > > > <compiler>
>>>> > > > > > <accessible>false</accessible>
>>>> > > > > > <!-- build both SWF and JS. -->
>>>> > > > > > <targets>
>>>> > > > > > <target>SWF</target>
>>>> > > > > > <target>JSRoyale</target>
>>>> > > > > > </targets>
>>>> > > > > > <strict-xml>true</strict-xml>
>>>> > > > > >
>>>> > > > > > <external-library-path>
>>>> > > > > >
>>>> <path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</
>>>> > > > > > path-element>
>>>> > > > > > <path-element>../../../../../libs/Binding.swc</path-element>
>>>> > > > > > <path-element>../../../../../libs/Core.swc</path-element>
>>>> > > > > > <path-element>../../../../../libs/Graphics.swc</path-element>
>>>> > > > > >
>>>> <path-element>../../../../../libs/Collections.swc</path-element>
>>>> > > > > > <path-element>../../../../../libs/Basic.swc</path-element>
>>>> > > > > > </external-library-path>
>>>> > > > > > <allow-subclass-overrides>true</allow-subclass-overrides>
>>>> > > > > > <mxml>
>>>> > > > > > <children-as-data>true</children-as-data>
>>>> > > > > > </mxml>
>>>> > > > > > <binding-value-change-event>
>>>> > > > > >
>>>> > >
>>>> org.apache.royale.events.ValueChangeEvent</binding-value-change-event>
>>>> > > > > > <binding-value-change-event-kind>
>>>> > > > > >
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> org.apache.royale.events.ValueChangeEvent</binding-value-change-event-kind>
>>>> > > > > > <binding-value-change-event-type>valueChange</
>>>> > > > > > binding-value-change-event-type>
>>>> > > > > >
>>>> > > > > > <define>
>>>> > > > > > <name>COMPILE::SWF</name>
>>>> > > > > > <value>true</value>
>>>> > > > > > </define>
>>>> > > > > > <define>
>>>> > > > > > <name>COMPILE::JS</name>
>>>> > > > > > <value>false</value>
>>>> > > > > > </define>
>>>> > > > > >
>>>> > > > > > <keep-as3-metadata>
>>>> > > > > > <name>Bindable</name>
>>>> > > > > > <name>Managed</name>
>>>> > > > > > <name>ChangeEvent</name>
>>>> > > > > > <name>NonCommittingChangeEvent</name>
>>>> > > > > > <name>Transient</name>
>>>> > > > > > </keep-as3-metadata>
>>>> > > > > >
>>>> > > > > > <locale/>
>>>> > > > > > <library-path/>
>>>> > > > > >
>>>> > > > > > <namespaces>
>>>> > > > > > <namespace>
>>>> > > > > > <uri>library://ns.apache.org/royale/basic</uri>
>>>> > > > > > <manifest>../resources/icons-manifest.xml</manifest>
>>>> > > > > > </namespace>
>>>> > > > > > </namespaces>
>>>> > > > > > <source-path>
>>>> > > > > > <path-element>../royale</path-element>
>>>> > > > > > </source-path>
>>>> > > > > > <warn-no-constructor>false</warn-no-constructor>
>>>> > > > > > </compiler>
>>>> > > > > > <include-classes>
>>>> > > > > > <class>IconsClasses</class>
>>>> > > > > > </include-classes>
>>>> > > > > > <include-namespaces>
>>>> > > > > > <uri>library://ns.apache.org/royale/basic</uri>
>>>> > > > > > </include-namespaces>
>>>> > > > > > <target-player>${playerglobal.version}</target-player>
>>>> > > > > >
>>>> > > > > > </royale-config>
>>>> > > > > >
>>>> > > > > >
>>>> > > > > >
>>>> > > > > > I don't know too much about this file, have we docs about it?
>>>> > > > > > the compiler generates the file itself?
>>>> > > > > > it uses the global config.xml as a base?
>>>> > > > > >
>>>> > > > > > thanks Josh
>>>> > > > > >
>>>> > > > > >
>>>> > > > > > El lun., 22 jul. 2019 a las 17:01, Josh Tynjala (<
>>>> > > > > joshtynjala@bowlerhat.dev>)
>>>> > > > > > escribió:
>>>> > > > > >
>>>> > > > > >> Error: Missing builtin type Object
>>>> > > > > >>
>>>> > > > > >> This error usually means that either playerglobal.swc or
>>>> js.swc is
>>>> > > > > missing.
>>>> > > > > >>
>>>> > > > > >> It would be difficult to suggest anything more without
>>>> seeing the
>>>> > > > > contents
>>>> > > > > >> of compile-swf-config.xml.
>>>> > > > > >>
>>>> > > > > >> --
>>>> > > > > >> Josh Tynjala
>>>> > > > > >> Bowler Hat LLC <https://bowlerhat.dev>
>>>> > > > > >>
>>>> > > > > >>
>>>> > > > > >> On Mon, Jul 22, 2019 at 7:50 AM Carlos Rovira <
>>>> > > > carlosrovira@apache.org>
>>>> > > > > >> wrote:
>>>> > > > > >>
>>>> > > > > >>> Hi,
>>>> > > > > >>>
>>>> > > > > >>> after latest changes with "library-path" I'm trying to
>>>> update my
>>>> > > > > project
>>>> > > > > >>> with no luck.
>>>> > > > > >>>
>>>> > > > > >>> Hope someone could let me know some guide since all what I
>>>> tried
>>>> > > > didn't
>>>> > > > > >>> work and always get this:
>>>> > > > > >>>
>>>> > > > > >>> [*INFO*] *--- *royale-maven-plugin:0.9.6-SNAPSHOT:compile-as
>>>> > > > > >>> *(default-compile-as)* @ royalejewel* ---*
>>>> > > > > >>>
>>>> > > > > >>> [*INFO*] Executing COMPC in tool group Royale with args:
>>>> > > > > >>>
>>>> > > > > >>>
>>>> > > > > >>
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> [-load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml,
>>>> > > > > >>> -js-default-initializers=false, -source-map=true,
>>>> > > > > >>> -compiler.targets=SWF,JSRoyale, -compiler.strict-xml=true]
>>>> > > > > >>>
>>>> > > > > >>> args:
>>>> > > > > >>>
>>>> > > > > >>>
>>>> > > > > >>>
>>>> > > > > >>
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> -load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
>>>> > > > > >>>
>>>> > > > > >>> -js-default-initializers=false
>>>> > > > > >>>
>>>> > > > > >>> -source-map=true
>>>> > > > > >>>
>>>> > > > > >>> -compiler.targets=SWF,JSRoyale
>>>> > > > > >>>
>>>> > > > > >>> -compiler.strict-xml=true
>>>> > > > > >>>
>>>> > > > > >>> target:SWF
>>>> > > > > >>>
>>>> > > > > >>> target:JSRoyale
>>>> > > > > >>>
>>>> > > > > >>> COMPC
>>>> > > > > >>>
>>>> > > > > >>> Loading configuration:
>>>> > > > > >>>
>>>> > > > > >>>
>>>> > > > > >>
>>>> > > > >
>>>> > > >
>>>> > >
>>>> >
>>>> /Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
>>>> > > > > >>>
>>>> > > > > >>>
>>>> > > > > >>> Error: Missing builtin type Object
>>>> > > > > >>>
>>>> > > > > >>>
>>>> > > > > >>>
>>>> > > > > >>> Missing builtin type Object
>>>> > > > > >>>
>>>> > > > > >>>
>>>> > > > > >>>
>>>> > > > > >>> 0.553372072 seconds
>>>> > > > > >>>
>>>> > > > > >>> this is failing when maven tries to compile the first
>>>> library
>>>> > > project
>>>> > > > > >>>
>>>> > > > > >>> Thanks for any light on this
>>>> > > > > >>>
>>>> > > > > >>> --
>>>> > > > > >>> Carlos Rovira
>>>> > > > > >>> http://about.me/carlosrovira
>>>> > > > > >>>
>>>> > > > > >>
>>>> > > > > >
>>>> > > > > >
>>>> > > > > > --
>>>> > > > > > Carlos Rovira
>>>> > > > > > http://about.me/carlosrovira
>>>> > > > >
>>>> > > > >
>>>> > > >
>>>> > > > --
>>>> > > > Carlos Rovira
>>>> > > > http://about.me/carlosrovira
>>>> > > >
>>>> > >
>>>> >
>>>> >
>>>> > --
>>>> > Carlos Rovira
>>>> > http://about.me/carlosrovira
>>>> >
>>>>
>>>
>>>
>>> --
>>> Carlos Rovira
>>> http://about.me/carlosrovira
>>>
>>>
>>
>> --
>> Carlos Rovira
>> http://about.me/carlosrovira
>>
>>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
>
--
Carlos Rovira
http://about.me/carlosrovira
Re: library-path changes
Posted by Carlos Rovira <ca...@apache.org>.
Hi,
I think finally reach to the problem, I had more of this in each library
<forceSwcExternalLibraryPath>true</forceSwcExternalLibraryPath>
So now I'm getting all the rest libs compiling properly
thanks for the help :)
Carlos
El lun., 22 jul. 2019 a las 18:32, Carlos Rovira (<ca...@apache.org>)
escribió:
> I get the following progress:
>
> first library was compiled by commenting forceSwcExternalLibraryPath
> since I have all libraries in the same folder "roaylelibs"
>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.royale.compiler</groupId>
> <artifactId>royale-maven-plugin</artifactId>
> <version>${royale.compiler.version}</version>
> <configuration>
> <!-- We don't want dependencies to be linked into the resulting libraries
> -->
> <!-- <forceSwcExternalLibraryPath>true</forceSwcExternalLibraryPath> -->
> </configuration>
> </plugin>
> </plugins>
> </build>
>
> but now the next one is failing in the same way as the previous one was
> failing :?
>
> I removed all compile-swf-config.xml in all projects, and what I don't
> understand is where comes the config maven is using:
>
> Executing COMPC in tool group Royale with args:
> [-load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royaledto/target/compile-swf-config.xml,
> -js-default-initializers=false, -source-map=true,
> -compiler.targets=SWF,JSRoyale, -compiler.strict-xml=true]
>
>
>
>
>
>
> El lun., 22 jul. 2019 a las 18:14, Carlos Rovira (<ca...@apache.org>)
> escribió:
>
>> I think the license header would be added in all files at some point for
>> all files to prevent RAT plugin to make compilation fail, so I'm figuring
>> it was something done manual
>>
>> El lun., 22 jul. 2019 a las 17:57, Josh Tynjala (<
>> joshtynjala@bowlerhat.dev>) escribió:
>>
>>> You're right. I remember seeing that the Royale Maven plugin generates
>>> compile-swf-config.xml and compile-js-config.xml.
>>>
>>> It's strange that your Codeoscopic copyright header is added to
>>> compiler-swf-config.xml, though. I wouldn't expect Maven to do that...
>>> unless maybe you have some other plugin that adds it?
>>>
>>> --
>>> Josh Tynjala
>>> Bowler Hat LLC <https://bowlerhat.dev>
>>>
>>>
>>> On Mon, Jul 22, 2019 at 8:49 AM Carlos Rovira <ca...@apache.org>
>>> wrote:
>>>
>>> > Hi Josh,
>>> >
>>> > since my build is JS, I removed all "compile-swf-config.xml", but
>>> executing
>>> > again "mvn clean install", makes a "compile-swf-config.xml" file be
>>> > generated in target folder
>>> > so I think is something in royale maven plugin that creates that file
>>> in
>>> > target folder. But is strange since as I say I'm working against JS
>>> > although SWF is present but although always was compiling ok, it does
>>> not
>>> > really works since Jewel is still not implemented fully in SWF
>>> >
>>> > El lun., 22 jul. 2019 a las 17:35, Josh Tynjala (<
>>> > joshtynjala@bowlerhat.dev>)
>>> > escribió:
>>> >
>>> > > The append attribute has existed since the Flex days.
>>> > >
>>> > > --
>>> > > Josh Tynjala
>>> > > Bowler Hat LLC <https://bowlerhat.dev>
>>> > >
>>> > >
>>> > > On Mon, Jul 22, 2019 at 8:34 AM Carlos Rovira <
>>> carlosrovira@apache.org>
>>> > > wrote:
>>> > >
>>> > > > Hi Harbs,
>>> > > > thanks, the append attribute is new one? it was introduced
>>> recently?
>>> > > >
>>> > > > thanks
>>> > > >
>>> > > > El lun., 22 jul. 2019 a las 17:29, Harbs (<ha...@gmail.com>)
>>> > > > escribió:
>>> > > >
>>> > > > > Make sure you have for the JS config:
>>> > > > > <js-external-library-path append=“true”>
>>> > > > >
>>> > > > > The append wil make sure you keep the default values.
>>> > > > >
>>> > > > > Here’s where I updated some of the libs I’m using:
>>> > > > >
>>> > > > >
>>> > > > >
>>> > > >
>>> > >
>>> >
>>> https://github.com/unhurdle/cep-royale/commit/35d45906035e3d1997d70a67893cc096307a3842
>>> > > > > <
>>> > > > >
>>> > > >
>>> > >
>>> >
>>> https://github.com/unhurdle/cep-royale/commit/35d45906035e3d1997d70a67893cc096307a3842
>>> > > > > >
>>> > > > >
>>> > > > >
>>> > > >
>>> > >
>>> >
>>> https://github.com/unhurdle/spectrum-royale/commit/2f6e1b5ed25cc57585d6879fbcf2ccae79d57d28
>>> > > > > <
>>> > > > >
>>> > > >
>>> > >
>>> >
>>> https://github.com/unhurdle/spectrum-royale/commit/2f6e1b5ed25cc57585d6879fbcf2ccae79d57d28
>>> > > > > >
>>> > > > >
>>> > > > > > On Jul 22, 2019, at 6:20 PM, Carlos Rovira <
>>> > carlosrovira@apache.org>
>>> > > > > wrote:
>>> > > > > >
>>> > > > > > Hi Josh,
>>> > > > > >
>>> > > > > > playerglobal.swc is ok, but can you point me to some place
>>> where
>>> > > > "js.swc"
>>> > > > > > is used?
>>> > > > > >
>>> > > > > > contents of compile-swf-config.xml are the following:
>>> > > > > >
>>> > > > > > <!--
>>> > > > > >
>>> > > > > > Copyright (C) 2009, Codeoscopic S.A. - All Rights Reserved
>>> > > > > > Unauthorized copying of this file, via any medium is strictly
>>> > > > prohibited
>>> > > > > > Proprietary and confidential
>>> > > > > >
>>> > > > > > Copyright (C) 2009, Codeoscopic S.A. - Todos Los Derechos
>>> > Reservados
>>> > > > > > La copia no autorizada de este archivo, a través de cualquier
>>> medio
>>> > > > está
>>> > > > > > estrictamente prohibida
>>> > > > > > Privado y confidencial
>>> > > > > >
>>> > > > > > -->
>>> > > > > > <royale-config>
>>> > > > > >
>>> > > > > > <compiler>
>>> > > > > > <accessible>false</accessible>
>>> > > > > > <!-- build both SWF and JS. -->
>>> > > > > > <targets>
>>> > > > > > <target>SWF</target>
>>> > > > > > <target>JSRoyale</target>
>>> > > > > > </targets>
>>> > > > > > <strict-xml>true</strict-xml>
>>> > > > > >
>>> > > > > > <external-library-path>
>>> > > > > >
>>> <path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</
>>> > > > > > path-element>
>>> > > > > > <path-element>../../../../../libs/Binding.swc</path-element>
>>> > > > > > <path-element>../../../../../libs/Core.swc</path-element>
>>> > > > > > <path-element>../../../../../libs/Graphics.swc</path-element>
>>> > > > > >
>>> <path-element>../../../../../libs/Collections.swc</path-element>
>>> > > > > > <path-element>../../../../../libs/Basic.swc</path-element>
>>> > > > > > </external-library-path>
>>> > > > > > <allow-subclass-overrides>true</allow-subclass-overrides>
>>> > > > > > <mxml>
>>> > > > > > <children-as-data>true</children-as-data>
>>> > > > > > </mxml>
>>> > > > > > <binding-value-change-event>
>>> > > > > >
>>> > >
>>> org.apache.royale.events.ValueChangeEvent</binding-value-change-event>
>>> > > > > > <binding-value-change-event-kind>
>>> > > > > >
>>> > > > >
>>> > > >
>>> > >
>>> >
>>> org.apache.royale.events.ValueChangeEvent</binding-value-change-event-kind>
>>> > > > > > <binding-value-change-event-type>valueChange</
>>> > > > > > binding-value-change-event-type>
>>> > > > > >
>>> > > > > > <define>
>>> > > > > > <name>COMPILE::SWF</name>
>>> > > > > > <value>true</value>
>>> > > > > > </define>
>>> > > > > > <define>
>>> > > > > > <name>COMPILE::JS</name>
>>> > > > > > <value>false</value>
>>> > > > > > </define>
>>> > > > > >
>>> > > > > > <keep-as3-metadata>
>>> > > > > > <name>Bindable</name>
>>> > > > > > <name>Managed</name>
>>> > > > > > <name>ChangeEvent</name>
>>> > > > > > <name>NonCommittingChangeEvent</name>
>>> > > > > > <name>Transient</name>
>>> > > > > > </keep-as3-metadata>
>>> > > > > >
>>> > > > > > <locale/>
>>> > > > > > <library-path/>
>>> > > > > >
>>> > > > > > <namespaces>
>>> > > > > > <namespace>
>>> > > > > > <uri>library://ns.apache.org/royale/basic</uri>
>>> > > > > > <manifest>../resources/icons-manifest.xml</manifest>
>>> > > > > > </namespace>
>>> > > > > > </namespaces>
>>> > > > > > <source-path>
>>> > > > > > <path-element>../royale</path-element>
>>> > > > > > </source-path>
>>> > > > > > <warn-no-constructor>false</warn-no-constructor>
>>> > > > > > </compiler>
>>> > > > > > <include-classes>
>>> > > > > > <class>IconsClasses</class>
>>> > > > > > </include-classes>
>>> > > > > > <include-namespaces>
>>> > > > > > <uri>library://ns.apache.org/royale/basic</uri>
>>> > > > > > </include-namespaces>
>>> > > > > > <target-player>${playerglobal.version}</target-player>
>>> > > > > >
>>> > > > > > </royale-config>
>>> > > > > >
>>> > > > > >
>>> > > > > >
>>> > > > > > I don't know too much about this file, have we docs about it?
>>> > > > > > the compiler generates the file itself?
>>> > > > > > it uses the global config.xml as a base?
>>> > > > > >
>>> > > > > > thanks Josh
>>> > > > > >
>>> > > > > >
>>> > > > > > El lun., 22 jul. 2019 a las 17:01, Josh Tynjala (<
>>> > > > > joshtynjala@bowlerhat.dev>)
>>> > > > > > escribió:
>>> > > > > >
>>> > > > > >> Error: Missing builtin type Object
>>> > > > > >>
>>> > > > > >> This error usually means that either playerglobal.swc or
>>> js.swc is
>>> > > > > missing.
>>> > > > > >>
>>> > > > > >> It would be difficult to suggest anything more without seeing
>>> the
>>> > > > > contents
>>> > > > > >> of compile-swf-config.xml.
>>> > > > > >>
>>> > > > > >> --
>>> > > > > >> Josh Tynjala
>>> > > > > >> Bowler Hat LLC <https://bowlerhat.dev>
>>> > > > > >>
>>> > > > > >>
>>> > > > > >> On Mon, Jul 22, 2019 at 7:50 AM Carlos Rovira <
>>> > > > carlosrovira@apache.org>
>>> > > > > >> wrote:
>>> > > > > >>
>>> > > > > >>> Hi,
>>> > > > > >>>
>>> > > > > >>> after latest changes with "library-path" I'm trying to
>>> update my
>>> > > > > project
>>> > > > > >>> with no luck.
>>> > > > > >>>
>>> > > > > >>> Hope someone could let me know some guide since all what I
>>> tried
>>> > > > didn't
>>> > > > > >>> work and always get this:
>>> > > > > >>>
>>> > > > > >>> [*INFO*] *--- *royale-maven-plugin:0.9.6-SNAPSHOT:compile-as
>>> > > > > >>> *(default-compile-as)* @ royalejewel* ---*
>>> > > > > >>>
>>> > > > > >>> [*INFO*] Executing COMPC in tool group Royale with args:
>>> > > > > >>>
>>> > > > > >>>
>>> > > > > >>
>>> > > > >
>>> > > >
>>> > >
>>> >
>>> [-load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml,
>>> > > > > >>> -js-default-initializers=false, -source-map=true,
>>> > > > > >>> -compiler.targets=SWF,JSRoyale, -compiler.strict-xml=true]
>>> > > > > >>>
>>> > > > > >>> args:
>>> > > > > >>>
>>> > > > > >>>
>>> > > > > >>>
>>> > > > > >>
>>> > > > >
>>> > > >
>>> > >
>>> >
>>> -load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
>>> > > > > >>>
>>> > > > > >>> -js-default-initializers=false
>>> > > > > >>>
>>> > > > > >>> -source-map=true
>>> > > > > >>>
>>> > > > > >>> -compiler.targets=SWF,JSRoyale
>>> > > > > >>>
>>> > > > > >>> -compiler.strict-xml=true
>>> > > > > >>>
>>> > > > > >>> target:SWF
>>> > > > > >>>
>>> > > > > >>> target:JSRoyale
>>> > > > > >>>
>>> > > > > >>> COMPC
>>> > > > > >>>
>>> > > > > >>> Loading configuration:
>>> > > > > >>>
>>> > > > > >>>
>>> > > > > >>
>>> > > > >
>>> > > >
>>> > >
>>> >
>>> /Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
>>> > > > > >>>
>>> > > > > >>>
>>> > > > > >>> Error: Missing builtin type Object
>>> > > > > >>>
>>> > > > > >>>
>>> > > > > >>>
>>> > > > > >>> Missing builtin type Object
>>> > > > > >>>
>>> > > > > >>>
>>> > > > > >>>
>>> > > > > >>> 0.553372072 seconds
>>> > > > > >>>
>>> > > > > >>> this is failing when maven tries to compile the first library
>>> > > project
>>> > > > > >>>
>>> > > > > >>> Thanks for any light on this
>>> > > > > >>>
>>> > > > > >>> --
>>> > > > > >>> Carlos Rovira
>>> > > > > >>> http://about.me/carlosrovira
>>> > > > > >>>
>>> > > > > >>
>>> > > > > >
>>> > > > > >
>>> > > > > > --
>>> > > > > > Carlos Rovira
>>> > > > > > http://about.me/carlosrovira
>>> > > > >
>>> > > > >
>>> > > >
>>> > > > --
>>> > > > Carlos Rovira
>>> > > > http://about.me/carlosrovira
>>> > > >
>>> > >
>>> >
>>> >
>>> > --
>>> > Carlos Rovira
>>> > http://about.me/carlosrovira
>>> >
>>>
>>
>>
>> --
>> Carlos Rovira
>> http://about.me/carlosrovira
>>
>>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
>
--
Carlos Rovira
http://about.me/carlosrovira
Re: library-path changes
Posted by Carlos Rovira <ca...@apache.org>.
I get the following progress:
first library was compiled by commenting forceSwcExternalLibraryPath
since I have all libraries in the same folder "roaylelibs"
<build>
<plugins>
<plugin>
<groupId>org.apache.royale.compiler</groupId>
<artifactId>royale-maven-plugin</artifactId>
<version>${royale.compiler.version}</version>
<configuration>
<!-- We don't want dependencies to be linked into the resulting libraries
-->
<!-- <forceSwcExternalLibraryPath>true</forceSwcExternalLibraryPath> -->
</configuration>
</plugin>
</plugins>
</build>
but now the next one is failing in the same way as the previous one was
failing :?
I removed all compile-swf-config.xml in all projects, and what I don't
understand is where comes the config maven is using:
Executing COMPC in tool group Royale with args:
[-load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royaledto/target/compile-swf-config.xml,
-js-default-initializers=false, -source-map=true,
-compiler.targets=SWF,JSRoyale, -compiler.strict-xml=true]
El lun., 22 jul. 2019 a las 18:14, Carlos Rovira (<ca...@apache.org>)
escribió:
> I think the license header would be added in all files at some point for
> all files to prevent RAT plugin to make compilation fail, so I'm figuring
> it was something done manual
>
> El lun., 22 jul. 2019 a las 17:57, Josh Tynjala (<
> joshtynjala@bowlerhat.dev>) escribió:
>
>> You're right. I remember seeing that the Royale Maven plugin generates
>> compile-swf-config.xml and compile-js-config.xml.
>>
>> It's strange that your Codeoscopic copyright header is added to
>> compiler-swf-config.xml, though. I wouldn't expect Maven to do that...
>> unless maybe you have some other plugin that adds it?
>>
>> --
>> Josh Tynjala
>> Bowler Hat LLC <https://bowlerhat.dev>
>>
>>
>> On Mon, Jul 22, 2019 at 8:49 AM Carlos Rovira <ca...@apache.org>
>> wrote:
>>
>> > Hi Josh,
>> >
>> > since my build is JS, I removed all "compile-swf-config.xml", but
>> executing
>> > again "mvn clean install", makes a "compile-swf-config.xml" file be
>> > generated in target folder
>> > so I think is something in royale maven plugin that creates that file in
>> > target folder. But is strange since as I say I'm working against JS
>> > although SWF is present but although always was compiling ok, it does
>> not
>> > really works since Jewel is still not implemented fully in SWF
>> >
>> > El lun., 22 jul. 2019 a las 17:35, Josh Tynjala (<
>> > joshtynjala@bowlerhat.dev>)
>> > escribió:
>> >
>> > > The append attribute has existed since the Flex days.
>> > >
>> > > --
>> > > Josh Tynjala
>> > > Bowler Hat LLC <https://bowlerhat.dev>
>> > >
>> > >
>> > > On Mon, Jul 22, 2019 at 8:34 AM Carlos Rovira <
>> carlosrovira@apache.org>
>> > > wrote:
>> > >
>> > > > Hi Harbs,
>> > > > thanks, the append attribute is new one? it was introduced recently?
>> > > >
>> > > > thanks
>> > > >
>> > > > El lun., 22 jul. 2019 a las 17:29, Harbs (<ha...@gmail.com>)
>> > > > escribió:
>> > > >
>> > > > > Make sure you have for the JS config:
>> > > > > <js-external-library-path append=“true”>
>> > > > >
>> > > > > The append wil make sure you keep the default values.
>> > > > >
>> > > > > Here’s where I updated some of the libs I’m using:
>> > > > >
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> https://github.com/unhurdle/cep-royale/commit/35d45906035e3d1997d70a67893cc096307a3842
>> > > > > <
>> > > > >
>> > > >
>> > >
>> >
>> https://github.com/unhurdle/cep-royale/commit/35d45906035e3d1997d70a67893cc096307a3842
>> > > > > >
>> > > > >
>> > > > >
>> > > >
>> > >
>> >
>> https://github.com/unhurdle/spectrum-royale/commit/2f6e1b5ed25cc57585d6879fbcf2ccae79d57d28
>> > > > > <
>> > > > >
>> > > >
>> > >
>> >
>> https://github.com/unhurdle/spectrum-royale/commit/2f6e1b5ed25cc57585d6879fbcf2ccae79d57d28
>> > > > > >
>> > > > >
>> > > > > > On Jul 22, 2019, at 6:20 PM, Carlos Rovira <
>> > carlosrovira@apache.org>
>> > > > > wrote:
>> > > > > >
>> > > > > > Hi Josh,
>> > > > > >
>> > > > > > playerglobal.swc is ok, but can you point me to some place where
>> > > > "js.swc"
>> > > > > > is used?
>> > > > > >
>> > > > > > contents of compile-swf-config.xml are the following:
>> > > > > >
>> > > > > > <!--
>> > > > > >
>> > > > > > Copyright (C) 2009, Codeoscopic S.A. - All Rights Reserved
>> > > > > > Unauthorized copying of this file, via any medium is strictly
>> > > > prohibited
>> > > > > > Proprietary and confidential
>> > > > > >
>> > > > > > Copyright (C) 2009, Codeoscopic S.A. - Todos Los Derechos
>> > Reservados
>> > > > > > La copia no autorizada de este archivo, a través de cualquier
>> medio
>> > > > está
>> > > > > > estrictamente prohibida
>> > > > > > Privado y confidencial
>> > > > > >
>> > > > > > -->
>> > > > > > <royale-config>
>> > > > > >
>> > > > > > <compiler>
>> > > > > > <accessible>false</accessible>
>> > > > > > <!-- build both SWF and JS. -->
>> > > > > > <targets>
>> > > > > > <target>SWF</target>
>> > > > > > <target>JSRoyale</target>
>> > > > > > </targets>
>> > > > > > <strict-xml>true</strict-xml>
>> > > > > >
>> > > > > > <external-library-path>
>> > > > > >
>> <path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</
>> > > > > > path-element>
>> > > > > > <path-element>../../../../../libs/Binding.swc</path-element>
>> > > > > > <path-element>../../../../../libs/Core.swc</path-element>
>> > > > > > <path-element>../../../../../libs/Graphics.swc</path-element>
>> > > > > > <path-element>../../../../../libs/Collections.swc</path-element>
>> > > > > > <path-element>../../../../../libs/Basic.swc</path-element>
>> > > > > > </external-library-path>
>> > > > > > <allow-subclass-overrides>true</allow-subclass-overrides>
>> > > > > > <mxml>
>> > > > > > <children-as-data>true</children-as-data>
>> > > > > > </mxml>
>> > > > > > <binding-value-change-event>
>> > > > > >
>> > > org.apache.royale.events.ValueChangeEvent</binding-value-change-event>
>> > > > > > <binding-value-change-event-kind>
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>> org.apache.royale.events.ValueChangeEvent</binding-value-change-event-kind>
>> > > > > > <binding-value-change-event-type>valueChange</
>> > > > > > binding-value-change-event-type>
>> > > > > >
>> > > > > > <define>
>> > > > > > <name>COMPILE::SWF</name>
>> > > > > > <value>true</value>
>> > > > > > </define>
>> > > > > > <define>
>> > > > > > <name>COMPILE::JS</name>
>> > > > > > <value>false</value>
>> > > > > > </define>
>> > > > > >
>> > > > > > <keep-as3-metadata>
>> > > > > > <name>Bindable</name>
>> > > > > > <name>Managed</name>
>> > > > > > <name>ChangeEvent</name>
>> > > > > > <name>NonCommittingChangeEvent</name>
>> > > > > > <name>Transient</name>
>> > > > > > </keep-as3-metadata>
>> > > > > >
>> > > > > > <locale/>
>> > > > > > <library-path/>
>> > > > > >
>> > > > > > <namespaces>
>> > > > > > <namespace>
>> > > > > > <uri>library://ns.apache.org/royale/basic</uri>
>> > > > > > <manifest>../resources/icons-manifest.xml</manifest>
>> > > > > > </namespace>
>> > > > > > </namespaces>
>> > > > > > <source-path>
>> > > > > > <path-element>../royale</path-element>
>> > > > > > </source-path>
>> > > > > > <warn-no-constructor>false</warn-no-constructor>
>> > > > > > </compiler>
>> > > > > > <include-classes>
>> > > > > > <class>IconsClasses</class>
>> > > > > > </include-classes>
>> > > > > > <include-namespaces>
>> > > > > > <uri>library://ns.apache.org/royale/basic</uri>
>> > > > > > </include-namespaces>
>> > > > > > <target-player>${playerglobal.version}</target-player>
>> > > > > >
>> > > > > > </royale-config>
>> > > > > >
>> > > > > >
>> > > > > >
>> > > > > > I don't know too much about this file, have we docs about it?
>> > > > > > the compiler generates the file itself?
>> > > > > > it uses the global config.xml as a base?
>> > > > > >
>> > > > > > thanks Josh
>> > > > > >
>> > > > > >
>> > > > > > El lun., 22 jul. 2019 a las 17:01, Josh Tynjala (<
>> > > > > joshtynjala@bowlerhat.dev>)
>> > > > > > escribió:
>> > > > > >
>> > > > > >> Error: Missing builtin type Object
>> > > > > >>
>> > > > > >> This error usually means that either playerglobal.swc or
>> js.swc is
>> > > > > missing.
>> > > > > >>
>> > > > > >> It would be difficult to suggest anything more without seeing
>> the
>> > > > > contents
>> > > > > >> of compile-swf-config.xml.
>> > > > > >>
>> > > > > >> --
>> > > > > >> Josh Tynjala
>> > > > > >> Bowler Hat LLC <https://bowlerhat.dev>
>> > > > > >>
>> > > > > >>
>> > > > > >> On Mon, Jul 22, 2019 at 7:50 AM Carlos Rovira <
>> > > > carlosrovira@apache.org>
>> > > > > >> wrote:
>> > > > > >>
>> > > > > >>> Hi,
>> > > > > >>>
>> > > > > >>> after latest changes with "library-path" I'm trying to update
>> my
>> > > > > project
>> > > > > >>> with no luck.
>> > > > > >>>
>> > > > > >>> Hope someone could let me know some guide since all what I
>> tried
>> > > > didn't
>> > > > > >>> work and always get this:
>> > > > > >>>
>> > > > > >>> [*INFO*] *--- *royale-maven-plugin:0.9.6-SNAPSHOT:compile-as
>> > > > > >>> *(default-compile-as)* @ royalejewel* ---*
>> > > > > >>>
>> > > > > >>> [*INFO*] Executing COMPC in tool group Royale with args:
>> > > > > >>>
>> > > > > >>>
>> > > > > >>
>> > > > >
>> > > >
>> > >
>> >
>> [-load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml,
>> > > > > >>> -js-default-initializers=false, -source-map=true,
>> > > > > >>> -compiler.targets=SWF,JSRoyale, -compiler.strict-xml=true]
>> > > > > >>>
>> > > > > >>> args:
>> > > > > >>>
>> > > > > >>>
>> > > > > >>>
>> > > > > >>
>> > > > >
>> > > >
>> > >
>> >
>> -load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
>> > > > > >>>
>> > > > > >>> -js-default-initializers=false
>> > > > > >>>
>> > > > > >>> -source-map=true
>> > > > > >>>
>> > > > > >>> -compiler.targets=SWF,JSRoyale
>> > > > > >>>
>> > > > > >>> -compiler.strict-xml=true
>> > > > > >>>
>> > > > > >>> target:SWF
>> > > > > >>>
>> > > > > >>> target:JSRoyale
>> > > > > >>>
>> > > > > >>> COMPC
>> > > > > >>>
>> > > > > >>> Loading configuration:
>> > > > > >>>
>> > > > > >>>
>> > > > > >>
>> > > > >
>> > > >
>> > >
>> >
>> /Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
>> > > > > >>>
>> > > > > >>>
>> > > > > >>> Error: Missing builtin type Object
>> > > > > >>>
>> > > > > >>>
>> > > > > >>>
>> > > > > >>> Missing builtin type Object
>> > > > > >>>
>> > > > > >>>
>> > > > > >>>
>> > > > > >>> 0.553372072 seconds
>> > > > > >>>
>> > > > > >>> this is failing when maven tries to compile the first library
>> > > project
>> > > > > >>>
>> > > > > >>> Thanks for any light on this
>> > > > > >>>
>> > > > > >>> --
>> > > > > >>> Carlos Rovira
>> > > > > >>> http://about.me/carlosrovira
>> > > > > >>>
>> > > > > >>
>> > > > > >
>> > > > > >
>> > > > > > --
>> > > > > > Carlos Rovira
>> > > > > > http://about.me/carlosrovira
>> > > > >
>> > > > >
>> > > >
>> > > > --
>> > > > Carlos Rovira
>> > > > http://about.me/carlosrovira
>> > > >
>> > >
>> >
>> >
>> > --
>> > Carlos Rovira
>> > http://about.me/carlosrovira
>> >
>>
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
>
--
Carlos Rovira
http://about.me/carlosrovira
Re: library-path changes
Posted by Carlos Rovira <ca...@apache.org>.
I think the license header would be added in all files at some point for
all files to prevent RAT plugin to make compilation fail, so I'm figuring
it was something done manual
El lun., 22 jul. 2019 a las 17:57, Josh Tynjala (<jo...@bowlerhat.dev>)
escribió:
> You're right. I remember seeing that the Royale Maven plugin generates
> compile-swf-config.xml and compile-js-config.xml.
>
> It's strange that your Codeoscopic copyright header is added to
> compiler-swf-config.xml, though. I wouldn't expect Maven to do that...
> unless maybe you have some other plugin that adds it?
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Mon, Jul 22, 2019 at 8:49 AM Carlos Rovira <ca...@apache.org>
> wrote:
>
> > Hi Josh,
> >
> > since my build is JS, I removed all "compile-swf-config.xml", but
> executing
> > again "mvn clean install", makes a "compile-swf-config.xml" file be
> > generated in target folder
> > so I think is something in royale maven plugin that creates that file in
> > target folder. But is strange since as I say I'm working against JS
> > although SWF is present but although always was compiling ok, it does not
> > really works since Jewel is still not implemented fully in SWF
> >
> > El lun., 22 jul. 2019 a las 17:35, Josh Tynjala (<
> > joshtynjala@bowlerhat.dev>)
> > escribió:
> >
> > > The append attribute has existed since the Flex days.
> > >
> > > --
> > > Josh Tynjala
> > > Bowler Hat LLC <https://bowlerhat.dev>
> > >
> > >
> > > On Mon, Jul 22, 2019 at 8:34 AM Carlos Rovira <carlosrovira@apache.org
> >
> > > wrote:
> > >
> > > > Hi Harbs,
> > > > thanks, the append attribute is new one? it was introduced recently?
> > > >
> > > > thanks
> > > >
> > > > El lun., 22 jul. 2019 a las 17:29, Harbs (<ha...@gmail.com>)
> > > > escribió:
> > > >
> > > > > Make sure you have for the JS config:
> > > > > <js-external-library-path append=“true”>
> > > > >
> > > > > The append wil make sure you keep the default values.
> > > > >
> > > > > Here’s where I updated some of the libs I’m using:
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> https://github.com/unhurdle/cep-royale/commit/35d45906035e3d1997d70a67893cc096307a3842
> > > > > <
> > > > >
> > > >
> > >
> >
> https://github.com/unhurdle/cep-royale/commit/35d45906035e3d1997d70a67893cc096307a3842
> > > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> https://github.com/unhurdle/spectrum-royale/commit/2f6e1b5ed25cc57585d6879fbcf2ccae79d57d28
> > > > > <
> > > > >
> > > >
> > >
> >
> https://github.com/unhurdle/spectrum-royale/commit/2f6e1b5ed25cc57585d6879fbcf2ccae79d57d28
> > > > > >
> > > > >
> > > > > > On Jul 22, 2019, at 6:20 PM, Carlos Rovira <
> > carlosrovira@apache.org>
> > > > > wrote:
> > > > > >
> > > > > > Hi Josh,
> > > > > >
> > > > > > playerglobal.swc is ok, but can you point me to some place where
> > > > "js.swc"
> > > > > > is used?
> > > > > >
> > > > > > contents of compile-swf-config.xml are the following:
> > > > > >
> > > > > > <!--
> > > > > >
> > > > > > Copyright (C) 2009, Codeoscopic S.A. - All Rights Reserved
> > > > > > Unauthorized copying of this file, via any medium is strictly
> > > > prohibited
> > > > > > Proprietary and confidential
> > > > > >
> > > > > > Copyright (C) 2009, Codeoscopic S.A. - Todos Los Derechos
> > Reservados
> > > > > > La copia no autorizada de este archivo, a través de cualquier
> medio
> > > > está
> > > > > > estrictamente prohibida
> > > > > > Privado y confidencial
> > > > > >
> > > > > > -->
> > > > > > <royale-config>
> > > > > >
> > > > > > <compiler>
> > > > > > <accessible>false</accessible>
> > > > > > <!-- build both SWF and JS. -->
> > > > > > <targets>
> > > > > > <target>SWF</target>
> > > > > > <target>JSRoyale</target>
> > > > > > </targets>
> > > > > > <strict-xml>true</strict-xml>
> > > > > >
> > > > > > <external-library-path>
> > > > > > <path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</
> > > > > > path-element>
> > > > > > <path-element>../../../../../libs/Binding.swc</path-element>
> > > > > > <path-element>../../../../../libs/Core.swc</path-element>
> > > > > > <path-element>../../../../../libs/Graphics.swc</path-element>
> > > > > > <path-element>../../../../../libs/Collections.swc</path-element>
> > > > > > <path-element>../../../../../libs/Basic.swc</path-element>
> > > > > > </external-library-path>
> > > > > > <allow-subclass-overrides>true</allow-subclass-overrides>
> > > > > > <mxml>
> > > > > > <children-as-data>true</children-as-data>
> > > > > > </mxml>
> > > > > > <binding-value-change-event>
> > > > > >
> > > org.apache.royale.events.ValueChangeEvent</binding-value-change-event>
> > > > > > <binding-value-change-event-kind>
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.royale.events.ValueChangeEvent</binding-value-change-event-kind>
> > > > > > <binding-value-change-event-type>valueChange</
> > > > > > binding-value-change-event-type>
> > > > > >
> > > > > > <define>
> > > > > > <name>COMPILE::SWF</name>
> > > > > > <value>true</value>
> > > > > > </define>
> > > > > > <define>
> > > > > > <name>COMPILE::JS</name>
> > > > > > <value>false</value>
> > > > > > </define>
> > > > > >
> > > > > > <keep-as3-metadata>
> > > > > > <name>Bindable</name>
> > > > > > <name>Managed</name>
> > > > > > <name>ChangeEvent</name>
> > > > > > <name>NonCommittingChangeEvent</name>
> > > > > > <name>Transient</name>
> > > > > > </keep-as3-metadata>
> > > > > >
> > > > > > <locale/>
> > > > > > <library-path/>
> > > > > >
> > > > > > <namespaces>
> > > > > > <namespace>
> > > > > > <uri>library://ns.apache.org/royale/basic</uri>
> > > > > > <manifest>../resources/icons-manifest.xml</manifest>
> > > > > > </namespace>
> > > > > > </namespaces>
> > > > > > <source-path>
> > > > > > <path-element>../royale</path-element>
> > > > > > </source-path>
> > > > > > <warn-no-constructor>false</warn-no-constructor>
> > > > > > </compiler>
> > > > > > <include-classes>
> > > > > > <class>IconsClasses</class>
> > > > > > </include-classes>
> > > > > > <include-namespaces>
> > > > > > <uri>library://ns.apache.org/royale/basic</uri>
> > > > > > </include-namespaces>
> > > > > > <target-player>${playerglobal.version}</target-player>
> > > > > >
> > > > > > </royale-config>
> > > > > >
> > > > > >
> > > > > >
> > > > > > I don't know too much about this file, have we docs about it?
> > > > > > the compiler generates the file itself?
> > > > > > it uses the global config.xml as a base?
> > > > > >
> > > > > > thanks Josh
> > > > > >
> > > > > >
> > > > > > El lun., 22 jul. 2019 a las 17:01, Josh Tynjala (<
> > > > > joshtynjala@bowlerhat.dev>)
> > > > > > escribió:
> > > > > >
> > > > > >> Error: Missing builtin type Object
> > > > > >>
> > > > > >> This error usually means that either playerglobal.swc or js.swc
> is
> > > > > missing.
> > > > > >>
> > > > > >> It would be difficult to suggest anything more without seeing
> the
> > > > > contents
> > > > > >> of compile-swf-config.xml.
> > > > > >>
> > > > > >> --
> > > > > >> Josh Tynjala
> > > > > >> Bowler Hat LLC <https://bowlerhat.dev>
> > > > > >>
> > > > > >>
> > > > > >> On Mon, Jul 22, 2019 at 7:50 AM Carlos Rovira <
> > > > carlosrovira@apache.org>
> > > > > >> wrote:
> > > > > >>
> > > > > >>> Hi,
> > > > > >>>
> > > > > >>> after latest changes with "library-path" I'm trying to update
> my
> > > > > project
> > > > > >>> with no luck.
> > > > > >>>
> > > > > >>> Hope someone could let me know some guide since all what I
> tried
> > > > didn't
> > > > > >>> work and always get this:
> > > > > >>>
> > > > > >>> [*INFO*] *--- *royale-maven-plugin:0.9.6-SNAPSHOT:compile-as
> > > > > >>> *(default-compile-as)* @ royalejewel* ---*
> > > > > >>>
> > > > > >>> [*INFO*] Executing COMPC in tool group Royale with args:
> > > > > >>>
> > > > > >>>
> > > > > >>
> > > > >
> > > >
> > >
> >
> [-load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml,
> > > > > >>> -js-default-initializers=false, -source-map=true,
> > > > > >>> -compiler.targets=SWF,JSRoyale, -compiler.strict-xml=true]
> > > > > >>>
> > > > > >>> args:
> > > > > >>>
> > > > > >>>
> > > > > >>>
> > > > > >>
> > > > >
> > > >
> > >
> >
> -load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
> > > > > >>>
> > > > > >>> -js-default-initializers=false
> > > > > >>>
> > > > > >>> -source-map=true
> > > > > >>>
> > > > > >>> -compiler.targets=SWF,JSRoyale
> > > > > >>>
> > > > > >>> -compiler.strict-xml=true
> > > > > >>>
> > > > > >>> target:SWF
> > > > > >>>
> > > > > >>> target:JSRoyale
> > > > > >>>
> > > > > >>> COMPC
> > > > > >>>
> > > > > >>> Loading configuration:
> > > > > >>>
> > > > > >>>
> > > > > >>
> > > > >
> > > >
> > >
> >
> /Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
> > > > > >>>
> > > > > >>>
> > > > > >>> Error: Missing builtin type Object
> > > > > >>>
> > > > > >>>
> > > > > >>>
> > > > > >>> Missing builtin type Object
> > > > > >>>
> > > > > >>>
> > > > > >>>
> > > > > >>> 0.553372072 seconds
> > > > > >>>
> > > > > >>> this is failing when maven tries to compile the first library
> > > project
> > > > > >>>
> > > > > >>> Thanks for any light on this
> > > > > >>>
> > > > > >>> --
> > > > > >>> Carlos Rovira
> > > > > >>> http://about.me/carlosrovira
> > > > > >>>
> > > > > >>
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Carlos Rovira
> > > > > > http://about.me/carlosrovira
> > > > >
> > > > >
> > > >
> > > > --
> > > > Carlos Rovira
> > > > http://about.me/carlosrovira
> > > >
> > >
> >
> >
> > --
> > Carlos Rovira
> > http://about.me/carlosrovira
> >
>
--
Carlos Rovira
http://about.me/carlosrovira
Re: library-path changes
Posted by Josh Tynjala <jo...@bowlerhat.dev>.
You're right. I remember seeing that the Royale Maven plugin generates
compile-swf-config.xml and compile-js-config.xml.
It's strange that your Codeoscopic copyright header is added to
compiler-swf-config.xml, though. I wouldn't expect Maven to do that...
unless maybe you have some other plugin that adds it?
--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>
On Mon, Jul 22, 2019 at 8:49 AM Carlos Rovira <ca...@apache.org>
wrote:
> Hi Josh,
>
> since my build is JS, I removed all "compile-swf-config.xml", but executing
> again "mvn clean install", makes a "compile-swf-config.xml" file be
> generated in target folder
> so I think is something in royale maven plugin that creates that file in
> target folder. But is strange since as I say I'm working against JS
> although SWF is present but although always was compiling ok, it does not
> really works since Jewel is still not implemented fully in SWF
>
> El lun., 22 jul. 2019 a las 17:35, Josh Tynjala (<
> joshtynjala@bowlerhat.dev>)
> escribió:
>
> > The append attribute has existed since the Flex days.
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev>
> >
> >
> > On Mon, Jul 22, 2019 at 8:34 AM Carlos Rovira <ca...@apache.org>
> > wrote:
> >
> > > Hi Harbs,
> > > thanks, the append attribute is new one? it was introduced recently?
> > >
> > > thanks
> > >
> > > El lun., 22 jul. 2019 a las 17:29, Harbs (<ha...@gmail.com>)
> > > escribió:
> > >
> > > > Make sure you have for the JS config:
> > > > <js-external-library-path append=“true”>
> > > >
> > > > The append wil make sure you keep the default values.
> > > >
> > > > Here’s where I updated some of the libs I’m using:
> > > >
> > > >
> > > >
> > >
> >
> https://github.com/unhurdle/cep-royale/commit/35d45906035e3d1997d70a67893cc096307a3842
> > > > <
> > > >
> > >
> >
> https://github.com/unhurdle/cep-royale/commit/35d45906035e3d1997d70a67893cc096307a3842
> > > > >
> > > >
> > > >
> > >
> >
> https://github.com/unhurdle/spectrum-royale/commit/2f6e1b5ed25cc57585d6879fbcf2ccae79d57d28
> > > > <
> > > >
> > >
> >
> https://github.com/unhurdle/spectrum-royale/commit/2f6e1b5ed25cc57585d6879fbcf2ccae79d57d28
> > > > >
> > > >
> > > > > On Jul 22, 2019, at 6:20 PM, Carlos Rovira <
> carlosrovira@apache.org>
> > > > wrote:
> > > > >
> > > > > Hi Josh,
> > > > >
> > > > > playerglobal.swc is ok, but can you point me to some place where
> > > "js.swc"
> > > > > is used?
> > > > >
> > > > > contents of compile-swf-config.xml are the following:
> > > > >
> > > > > <!--
> > > > >
> > > > > Copyright (C) 2009, Codeoscopic S.A. - All Rights Reserved
> > > > > Unauthorized copying of this file, via any medium is strictly
> > > prohibited
> > > > > Proprietary and confidential
> > > > >
> > > > > Copyright (C) 2009, Codeoscopic S.A. - Todos Los Derechos
> Reservados
> > > > > La copia no autorizada de este archivo, a través de cualquier medio
> > > está
> > > > > estrictamente prohibida
> > > > > Privado y confidencial
> > > > >
> > > > > -->
> > > > > <royale-config>
> > > > >
> > > > > <compiler>
> > > > > <accessible>false</accessible>
> > > > > <!-- build both SWF and JS. -->
> > > > > <targets>
> > > > > <target>SWF</target>
> > > > > <target>JSRoyale</target>
> > > > > </targets>
> > > > > <strict-xml>true</strict-xml>
> > > > >
> > > > > <external-library-path>
> > > > > <path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</
> > > > > path-element>
> > > > > <path-element>../../../../../libs/Binding.swc</path-element>
> > > > > <path-element>../../../../../libs/Core.swc</path-element>
> > > > > <path-element>../../../../../libs/Graphics.swc</path-element>
> > > > > <path-element>../../../../../libs/Collections.swc</path-element>
> > > > > <path-element>../../../../../libs/Basic.swc</path-element>
> > > > > </external-library-path>
> > > > > <allow-subclass-overrides>true</allow-subclass-overrides>
> > > > > <mxml>
> > > > > <children-as-data>true</children-as-data>
> > > > > </mxml>
> > > > > <binding-value-change-event>
> > > > >
> > org.apache.royale.events.ValueChangeEvent</binding-value-change-event>
> > > > > <binding-value-change-event-kind>
> > > > >
> > > >
> > >
> >
> org.apache.royale.events.ValueChangeEvent</binding-value-change-event-kind>
> > > > > <binding-value-change-event-type>valueChange</
> > > > > binding-value-change-event-type>
> > > > >
> > > > > <define>
> > > > > <name>COMPILE::SWF</name>
> > > > > <value>true</value>
> > > > > </define>
> > > > > <define>
> > > > > <name>COMPILE::JS</name>
> > > > > <value>false</value>
> > > > > </define>
> > > > >
> > > > > <keep-as3-metadata>
> > > > > <name>Bindable</name>
> > > > > <name>Managed</name>
> > > > > <name>ChangeEvent</name>
> > > > > <name>NonCommittingChangeEvent</name>
> > > > > <name>Transient</name>
> > > > > </keep-as3-metadata>
> > > > >
> > > > > <locale/>
> > > > > <library-path/>
> > > > >
> > > > > <namespaces>
> > > > > <namespace>
> > > > > <uri>library://ns.apache.org/royale/basic</uri>
> > > > > <manifest>../resources/icons-manifest.xml</manifest>
> > > > > </namespace>
> > > > > </namespaces>
> > > > > <source-path>
> > > > > <path-element>../royale</path-element>
> > > > > </source-path>
> > > > > <warn-no-constructor>false</warn-no-constructor>
> > > > > </compiler>
> > > > > <include-classes>
> > > > > <class>IconsClasses</class>
> > > > > </include-classes>
> > > > > <include-namespaces>
> > > > > <uri>library://ns.apache.org/royale/basic</uri>
> > > > > </include-namespaces>
> > > > > <target-player>${playerglobal.version}</target-player>
> > > > >
> > > > > </royale-config>
> > > > >
> > > > >
> > > > >
> > > > > I don't know too much about this file, have we docs about it?
> > > > > the compiler generates the file itself?
> > > > > it uses the global config.xml as a base?
> > > > >
> > > > > thanks Josh
> > > > >
> > > > >
> > > > > El lun., 22 jul. 2019 a las 17:01, Josh Tynjala (<
> > > > joshtynjala@bowlerhat.dev>)
> > > > > escribió:
> > > > >
> > > > >> Error: Missing builtin type Object
> > > > >>
> > > > >> This error usually means that either playerglobal.swc or js.swc is
> > > > missing.
> > > > >>
> > > > >> It would be difficult to suggest anything more without seeing the
> > > > contents
> > > > >> of compile-swf-config.xml.
> > > > >>
> > > > >> --
> > > > >> Josh Tynjala
> > > > >> Bowler Hat LLC <https://bowlerhat.dev>
> > > > >>
> > > > >>
> > > > >> On Mon, Jul 22, 2019 at 7:50 AM Carlos Rovira <
> > > carlosrovira@apache.org>
> > > > >> wrote:
> > > > >>
> > > > >>> Hi,
> > > > >>>
> > > > >>> after latest changes with "library-path" I'm trying to update my
> > > > project
> > > > >>> with no luck.
> > > > >>>
> > > > >>> Hope someone could let me know some guide since all what I tried
> > > didn't
> > > > >>> work and always get this:
> > > > >>>
> > > > >>> [*INFO*] *--- *royale-maven-plugin:0.9.6-SNAPSHOT:compile-as
> > > > >>> *(default-compile-as)* @ royalejewel* ---*
> > > > >>>
> > > > >>> [*INFO*] Executing COMPC in tool group Royale with args:
> > > > >>>
> > > > >>>
> > > > >>
> > > >
> > >
> >
> [-load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml,
> > > > >>> -js-default-initializers=false, -source-map=true,
> > > > >>> -compiler.targets=SWF,JSRoyale, -compiler.strict-xml=true]
> > > > >>>
> > > > >>> args:
> > > > >>>
> > > > >>>
> > > > >>>
> > > > >>
> > > >
> > >
> >
> -load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
> > > > >>>
> > > > >>> -js-default-initializers=false
> > > > >>>
> > > > >>> -source-map=true
> > > > >>>
> > > > >>> -compiler.targets=SWF,JSRoyale
> > > > >>>
> > > > >>> -compiler.strict-xml=true
> > > > >>>
> > > > >>> target:SWF
> > > > >>>
> > > > >>> target:JSRoyale
> > > > >>>
> > > > >>> COMPC
> > > > >>>
> > > > >>> Loading configuration:
> > > > >>>
> > > > >>>
> > > > >>
> > > >
> > >
> >
> /Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
> > > > >>>
> > > > >>>
> > > > >>> Error: Missing builtin type Object
> > > > >>>
> > > > >>>
> > > > >>>
> > > > >>> Missing builtin type Object
> > > > >>>
> > > > >>>
> > > > >>>
> > > > >>> 0.553372072 seconds
> > > > >>>
> > > > >>> this is failing when maven tries to compile the first library
> > project
> > > > >>>
> > > > >>> Thanks for any light on this
> > > > >>>
> > > > >>> --
> > > > >>> Carlos Rovira
> > > > >>> http://about.me/carlosrovira
> > > > >>>
> > > > >>
> > > > >
> > > > >
> > > > > --
> > > > > Carlos Rovira
> > > > > http://about.me/carlosrovira
> > > >
> > > >
> > >
> > > --
> > > Carlos Rovira
> > > http://about.me/carlosrovira
> > >
> >
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
Re: library-path changes
Posted by Carlos Rovira <ca...@apache.org>.
Hi Josh,
since my build is JS, I removed all "compile-swf-config.xml", but executing
again "mvn clean install", makes a "compile-swf-config.xml" file be
generated in target folder
so I think is something in royale maven plugin that creates that file in
target folder. But is strange since as I say I'm working against JS
although SWF is present but although always was compiling ok, it does not
really works since Jewel is still not implemented fully in SWF
El lun., 22 jul. 2019 a las 17:35, Josh Tynjala (<jo...@bowlerhat.dev>)
escribió:
> The append attribute has existed since the Flex days.
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Mon, Jul 22, 2019 at 8:34 AM Carlos Rovira <ca...@apache.org>
> wrote:
>
> > Hi Harbs,
> > thanks, the append attribute is new one? it was introduced recently?
> >
> > thanks
> >
> > El lun., 22 jul. 2019 a las 17:29, Harbs (<ha...@gmail.com>)
> > escribió:
> >
> > > Make sure you have for the JS config:
> > > <js-external-library-path append=“true”>
> > >
> > > The append wil make sure you keep the default values.
> > >
> > > Here’s where I updated some of the libs I’m using:
> > >
> > >
> > >
> >
> https://github.com/unhurdle/cep-royale/commit/35d45906035e3d1997d70a67893cc096307a3842
> > > <
> > >
> >
> https://github.com/unhurdle/cep-royale/commit/35d45906035e3d1997d70a67893cc096307a3842
> > > >
> > >
> > >
> >
> https://github.com/unhurdle/spectrum-royale/commit/2f6e1b5ed25cc57585d6879fbcf2ccae79d57d28
> > > <
> > >
> >
> https://github.com/unhurdle/spectrum-royale/commit/2f6e1b5ed25cc57585d6879fbcf2ccae79d57d28
> > > >
> > >
> > > > On Jul 22, 2019, at 6:20 PM, Carlos Rovira <ca...@apache.org>
> > > wrote:
> > > >
> > > > Hi Josh,
> > > >
> > > > playerglobal.swc is ok, but can you point me to some place where
> > "js.swc"
> > > > is used?
> > > >
> > > > contents of compile-swf-config.xml are the following:
> > > >
> > > > <!--
> > > >
> > > > Copyright (C) 2009, Codeoscopic S.A. - All Rights Reserved
> > > > Unauthorized copying of this file, via any medium is strictly
> > prohibited
> > > > Proprietary and confidential
> > > >
> > > > Copyright (C) 2009, Codeoscopic S.A. - Todos Los Derechos Reservados
> > > > La copia no autorizada de este archivo, a través de cualquier medio
> > está
> > > > estrictamente prohibida
> > > > Privado y confidencial
> > > >
> > > > -->
> > > > <royale-config>
> > > >
> > > > <compiler>
> > > > <accessible>false</accessible>
> > > > <!-- build both SWF and JS. -->
> > > > <targets>
> > > > <target>SWF</target>
> > > > <target>JSRoyale</target>
> > > > </targets>
> > > > <strict-xml>true</strict-xml>
> > > >
> > > > <external-library-path>
> > > > <path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</
> > > > path-element>
> > > > <path-element>../../../../../libs/Binding.swc</path-element>
> > > > <path-element>../../../../../libs/Core.swc</path-element>
> > > > <path-element>../../../../../libs/Graphics.swc</path-element>
> > > > <path-element>../../../../../libs/Collections.swc</path-element>
> > > > <path-element>../../../../../libs/Basic.swc</path-element>
> > > > </external-library-path>
> > > > <allow-subclass-overrides>true</allow-subclass-overrides>
> > > > <mxml>
> > > > <children-as-data>true</children-as-data>
> > > > </mxml>
> > > > <binding-value-change-event>
> > > >
> org.apache.royale.events.ValueChangeEvent</binding-value-change-event>
> > > > <binding-value-change-event-kind>
> > > >
> > >
> >
> org.apache.royale.events.ValueChangeEvent</binding-value-change-event-kind>
> > > > <binding-value-change-event-type>valueChange</
> > > > binding-value-change-event-type>
> > > >
> > > > <define>
> > > > <name>COMPILE::SWF</name>
> > > > <value>true</value>
> > > > </define>
> > > > <define>
> > > > <name>COMPILE::JS</name>
> > > > <value>false</value>
> > > > </define>
> > > >
> > > > <keep-as3-metadata>
> > > > <name>Bindable</name>
> > > > <name>Managed</name>
> > > > <name>ChangeEvent</name>
> > > > <name>NonCommittingChangeEvent</name>
> > > > <name>Transient</name>
> > > > </keep-as3-metadata>
> > > >
> > > > <locale/>
> > > > <library-path/>
> > > >
> > > > <namespaces>
> > > > <namespace>
> > > > <uri>library://ns.apache.org/royale/basic</uri>
> > > > <manifest>../resources/icons-manifest.xml</manifest>
> > > > </namespace>
> > > > </namespaces>
> > > > <source-path>
> > > > <path-element>../royale</path-element>
> > > > </source-path>
> > > > <warn-no-constructor>false</warn-no-constructor>
> > > > </compiler>
> > > > <include-classes>
> > > > <class>IconsClasses</class>
> > > > </include-classes>
> > > > <include-namespaces>
> > > > <uri>library://ns.apache.org/royale/basic</uri>
> > > > </include-namespaces>
> > > > <target-player>${playerglobal.version}</target-player>
> > > >
> > > > </royale-config>
> > > >
> > > >
> > > >
> > > > I don't know too much about this file, have we docs about it?
> > > > the compiler generates the file itself?
> > > > it uses the global config.xml as a base?
> > > >
> > > > thanks Josh
> > > >
> > > >
> > > > El lun., 22 jul. 2019 a las 17:01, Josh Tynjala (<
> > > joshtynjala@bowlerhat.dev>)
> > > > escribió:
> > > >
> > > >> Error: Missing builtin type Object
> > > >>
> > > >> This error usually means that either playerglobal.swc or js.swc is
> > > missing.
> > > >>
> > > >> It would be difficult to suggest anything more without seeing the
> > > contents
> > > >> of compile-swf-config.xml.
> > > >>
> > > >> --
> > > >> Josh Tynjala
> > > >> Bowler Hat LLC <https://bowlerhat.dev>
> > > >>
> > > >>
> > > >> On Mon, Jul 22, 2019 at 7:50 AM Carlos Rovira <
> > carlosrovira@apache.org>
> > > >> wrote:
> > > >>
> > > >>> Hi,
> > > >>>
> > > >>> after latest changes with "library-path" I'm trying to update my
> > > project
> > > >>> with no luck.
> > > >>>
> > > >>> Hope someone could let me know some guide since all what I tried
> > didn't
> > > >>> work and always get this:
> > > >>>
> > > >>> [*INFO*] *--- *royale-maven-plugin:0.9.6-SNAPSHOT:compile-as
> > > >>> *(default-compile-as)* @ royalejewel* ---*
> > > >>>
> > > >>> [*INFO*] Executing COMPC in tool group Royale with args:
> > > >>>
> > > >>>
> > > >>
> > >
> >
> [-load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml,
> > > >>> -js-default-initializers=false, -source-map=true,
> > > >>> -compiler.targets=SWF,JSRoyale, -compiler.strict-xml=true]
> > > >>>
> > > >>> args:
> > > >>>
> > > >>>
> > > >>>
> > > >>
> > >
> >
> -load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
> > > >>>
> > > >>> -js-default-initializers=false
> > > >>>
> > > >>> -source-map=true
> > > >>>
> > > >>> -compiler.targets=SWF,JSRoyale
> > > >>>
> > > >>> -compiler.strict-xml=true
> > > >>>
> > > >>> target:SWF
> > > >>>
> > > >>> target:JSRoyale
> > > >>>
> > > >>> COMPC
> > > >>>
> > > >>> Loading configuration:
> > > >>>
> > > >>>
> > > >>
> > >
> >
> /Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
> > > >>>
> > > >>>
> > > >>> Error: Missing builtin type Object
> > > >>>
> > > >>>
> > > >>>
> > > >>> Missing builtin type Object
> > > >>>
> > > >>>
> > > >>>
> > > >>> 0.553372072 seconds
> > > >>>
> > > >>> this is failing when maven tries to compile the first library
> project
> > > >>>
> > > >>> Thanks for any light on this
> > > >>>
> > > >>> --
> > > >>> Carlos Rovira
> > > >>> http://about.me/carlosrovira
> > > >>>
> > > >>
> > > >
> > > >
> > > > --
> > > > Carlos Rovira
> > > > http://about.me/carlosrovira
> > >
> > >
> >
> > --
> > Carlos Rovira
> > http://about.me/carlosrovira
> >
>
--
Carlos Rovira
http://about.me/carlosrovira
Re: library-path changes
Posted by Josh Tynjala <jo...@bowlerhat.dev>.
The append attribute has existed since the Flex days.
--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>
On Mon, Jul 22, 2019 at 8:34 AM Carlos Rovira <ca...@apache.org>
wrote:
> Hi Harbs,
> thanks, the append attribute is new one? it was introduced recently?
>
> thanks
>
> El lun., 22 jul. 2019 a las 17:29, Harbs (<ha...@gmail.com>)
> escribió:
>
> > Make sure you have for the JS config:
> > <js-external-library-path append=“true”>
> >
> > The append wil make sure you keep the default values.
> >
> > Here’s where I updated some of the libs I’m using:
> >
> >
> >
> https://github.com/unhurdle/cep-royale/commit/35d45906035e3d1997d70a67893cc096307a3842
> > <
> >
> https://github.com/unhurdle/cep-royale/commit/35d45906035e3d1997d70a67893cc096307a3842
> > >
> >
> >
> https://github.com/unhurdle/spectrum-royale/commit/2f6e1b5ed25cc57585d6879fbcf2ccae79d57d28
> > <
> >
> https://github.com/unhurdle/spectrum-royale/commit/2f6e1b5ed25cc57585d6879fbcf2ccae79d57d28
> > >
> >
> > > On Jul 22, 2019, at 6:20 PM, Carlos Rovira <ca...@apache.org>
> > wrote:
> > >
> > > Hi Josh,
> > >
> > > playerglobal.swc is ok, but can you point me to some place where
> "js.swc"
> > > is used?
> > >
> > > contents of compile-swf-config.xml are the following:
> > >
> > > <!--
> > >
> > > Copyright (C) 2009, Codeoscopic S.A. - All Rights Reserved
> > > Unauthorized copying of this file, via any medium is strictly
> prohibited
> > > Proprietary and confidential
> > >
> > > Copyright (C) 2009, Codeoscopic S.A. - Todos Los Derechos Reservados
> > > La copia no autorizada de este archivo, a través de cualquier medio
> está
> > > estrictamente prohibida
> > > Privado y confidencial
> > >
> > > -->
> > > <royale-config>
> > >
> > > <compiler>
> > > <accessible>false</accessible>
> > > <!-- build both SWF and JS. -->
> > > <targets>
> > > <target>SWF</target>
> > > <target>JSRoyale</target>
> > > </targets>
> > > <strict-xml>true</strict-xml>
> > >
> > > <external-library-path>
> > > <path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</
> > > path-element>
> > > <path-element>../../../../../libs/Binding.swc</path-element>
> > > <path-element>../../../../../libs/Core.swc</path-element>
> > > <path-element>../../../../../libs/Graphics.swc</path-element>
> > > <path-element>../../../../../libs/Collections.swc</path-element>
> > > <path-element>../../../../../libs/Basic.swc</path-element>
> > > </external-library-path>
> > > <allow-subclass-overrides>true</allow-subclass-overrides>
> > > <mxml>
> > > <children-as-data>true</children-as-data>
> > > </mxml>
> > > <binding-value-change-event>
> > > org.apache.royale.events.ValueChangeEvent</binding-value-change-event>
> > > <binding-value-change-event-kind>
> > >
> >
> org.apache.royale.events.ValueChangeEvent</binding-value-change-event-kind>
> > > <binding-value-change-event-type>valueChange</
> > > binding-value-change-event-type>
> > >
> > > <define>
> > > <name>COMPILE::SWF</name>
> > > <value>true</value>
> > > </define>
> > > <define>
> > > <name>COMPILE::JS</name>
> > > <value>false</value>
> > > </define>
> > >
> > > <keep-as3-metadata>
> > > <name>Bindable</name>
> > > <name>Managed</name>
> > > <name>ChangeEvent</name>
> > > <name>NonCommittingChangeEvent</name>
> > > <name>Transient</name>
> > > </keep-as3-metadata>
> > >
> > > <locale/>
> > > <library-path/>
> > >
> > > <namespaces>
> > > <namespace>
> > > <uri>library://ns.apache.org/royale/basic</uri>
> > > <manifest>../resources/icons-manifest.xml</manifest>
> > > </namespace>
> > > </namespaces>
> > > <source-path>
> > > <path-element>../royale</path-element>
> > > </source-path>
> > > <warn-no-constructor>false</warn-no-constructor>
> > > </compiler>
> > > <include-classes>
> > > <class>IconsClasses</class>
> > > </include-classes>
> > > <include-namespaces>
> > > <uri>library://ns.apache.org/royale/basic</uri>
> > > </include-namespaces>
> > > <target-player>${playerglobal.version}</target-player>
> > >
> > > </royale-config>
> > >
> > >
> > >
> > > I don't know too much about this file, have we docs about it?
> > > the compiler generates the file itself?
> > > it uses the global config.xml as a base?
> > >
> > > thanks Josh
> > >
> > >
> > > El lun., 22 jul. 2019 a las 17:01, Josh Tynjala (<
> > joshtynjala@bowlerhat.dev>)
> > > escribió:
> > >
> > >> Error: Missing builtin type Object
> > >>
> > >> This error usually means that either playerglobal.swc or js.swc is
> > missing.
> > >>
> > >> It would be difficult to suggest anything more without seeing the
> > contents
> > >> of compile-swf-config.xml.
> > >>
> > >> --
> > >> Josh Tynjala
> > >> Bowler Hat LLC <https://bowlerhat.dev>
> > >>
> > >>
> > >> On Mon, Jul 22, 2019 at 7:50 AM Carlos Rovira <
> carlosrovira@apache.org>
> > >> wrote:
> > >>
> > >>> Hi,
> > >>>
> > >>> after latest changes with "library-path" I'm trying to update my
> > project
> > >>> with no luck.
> > >>>
> > >>> Hope someone could let me know some guide since all what I tried
> didn't
> > >>> work and always get this:
> > >>>
> > >>> [*INFO*] *--- *royale-maven-plugin:0.9.6-SNAPSHOT:compile-as
> > >>> *(default-compile-as)* @ royalejewel* ---*
> > >>>
> > >>> [*INFO*] Executing COMPC in tool group Royale with args:
> > >>>
> > >>>
> > >>
> >
> [-load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml,
> > >>> -js-default-initializers=false, -source-map=true,
> > >>> -compiler.targets=SWF,JSRoyale, -compiler.strict-xml=true]
> > >>>
> > >>> args:
> > >>>
> > >>>
> > >>>
> > >>
> >
> -load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
> > >>>
> > >>> -js-default-initializers=false
> > >>>
> > >>> -source-map=true
> > >>>
> > >>> -compiler.targets=SWF,JSRoyale
> > >>>
> > >>> -compiler.strict-xml=true
> > >>>
> > >>> target:SWF
> > >>>
> > >>> target:JSRoyale
> > >>>
> > >>> COMPC
> > >>>
> > >>> Loading configuration:
> > >>>
> > >>>
> > >>
> >
> /Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
> > >>>
> > >>>
> > >>> Error: Missing builtin type Object
> > >>>
> > >>>
> > >>>
> > >>> Missing builtin type Object
> > >>>
> > >>>
> > >>>
> > >>> 0.553372072 seconds
> > >>>
> > >>> this is failing when maven tries to compile the first library project
> > >>>
> > >>> Thanks for any light on this
> > >>>
> > >>> --
> > >>> Carlos Rovira
> > >>> http://about.me/carlosrovira
> > >>>
> > >>
> > >
> > >
> > > --
> > > Carlos Rovira
> > > http://about.me/carlosrovira
> >
> >
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
Re: library-path changes
Posted by Carlos Rovira <ca...@apache.org>.
Hi Harbs,
thanks, the append attribute is new one? it was introduced recently?
thanks
El lun., 22 jul. 2019 a las 17:29, Harbs (<ha...@gmail.com>) escribió:
> Make sure you have for the JS config:
> <js-external-library-path append=“true”>
>
> The append wil make sure you keep the default values.
>
> Here’s where I updated some of the libs I’m using:
>
>
> https://github.com/unhurdle/cep-royale/commit/35d45906035e3d1997d70a67893cc096307a3842
> <
> https://github.com/unhurdle/cep-royale/commit/35d45906035e3d1997d70a67893cc096307a3842
> >
>
> https://github.com/unhurdle/spectrum-royale/commit/2f6e1b5ed25cc57585d6879fbcf2ccae79d57d28
> <
> https://github.com/unhurdle/spectrum-royale/commit/2f6e1b5ed25cc57585d6879fbcf2ccae79d57d28
> >
>
> > On Jul 22, 2019, at 6:20 PM, Carlos Rovira <ca...@apache.org>
> wrote:
> >
> > Hi Josh,
> >
> > playerglobal.swc is ok, but can you point me to some place where "js.swc"
> > is used?
> >
> > contents of compile-swf-config.xml are the following:
> >
> > <!--
> >
> > Copyright (C) 2009, Codeoscopic S.A. - All Rights Reserved
> > Unauthorized copying of this file, via any medium is strictly prohibited
> > Proprietary and confidential
> >
> > Copyright (C) 2009, Codeoscopic S.A. - Todos Los Derechos Reservados
> > La copia no autorizada de este archivo, a través de cualquier medio está
> > estrictamente prohibida
> > Privado y confidencial
> >
> > -->
> > <royale-config>
> >
> > <compiler>
> > <accessible>false</accessible>
> > <!-- build both SWF and JS. -->
> > <targets>
> > <target>SWF</target>
> > <target>JSRoyale</target>
> > </targets>
> > <strict-xml>true</strict-xml>
> >
> > <external-library-path>
> > <path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</
> > path-element>
> > <path-element>../../../../../libs/Binding.swc</path-element>
> > <path-element>../../../../../libs/Core.swc</path-element>
> > <path-element>../../../../../libs/Graphics.swc</path-element>
> > <path-element>../../../../../libs/Collections.swc</path-element>
> > <path-element>../../../../../libs/Basic.swc</path-element>
> > </external-library-path>
> > <allow-subclass-overrides>true</allow-subclass-overrides>
> > <mxml>
> > <children-as-data>true</children-as-data>
> > </mxml>
> > <binding-value-change-event>
> > org.apache.royale.events.ValueChangeEvent</binding-value-change-event>
> > <binding-value-change-event-kind>
> >
> org.apache.royale.events.ValueChangeEvent</binding-value-change-event-kind>
> > <binding-value-change-event-type>valueChange</
> > binding-value-change-event-type>
> >
> > <define>
> > <name>COMPILE::SWF</name>
> > <value>true</value>
> > </define>
> > <define>
> > <name>COMPILE::JS</name>
> > <value>false</value>
> > </define>
> >
> > <keep-as3-metadata>
> > <name>Bindable</name>
> > <name>Managed</name>
> > <name>ChangeEvent</name>
> > <name>NonCommittingChangeEvent</name>
> > <name>Transient</name>
> > </keep-as3-metadata>
> >
> > <locale/>
> > <library-path/>
> >
> > <namespaces>
> > <namespace>
> > <uri>library://ns.apache.org/royale/basic</uri>
> > <manifest>../resources/icons-manifest.xml</manifest>
> > </namespace>
> > </namespaces>
> > <source-path>
> > <path-element>../royale</path-element>
> > </source-path>
> > <warn-no-constructor>false</warn-no-constructor>
> > </compiler>
> > <include-classes>
> > <class>IconsClasses</class>
> > </include-classes>
> > <include-namespaces>
> > <uri>library://ns.apache.org/royale/basic</uri>
> > </include-namespaces>
> > <target-player>${playerglobal.version}</target-player>
> >
> > </royale-config>
> >
> >
> >
> > I don't know too much about this file, have we docs about it?
> > the compiler generates the file itself?
> > it uses the global config.xml as a base?
> >
> > thanks Josh
> >
> >
> > El lun., 22 jul. 2019 a las 17:01, Josh Tynjala (<
> joshtynjala@bowlerhat.dev>)
> > escribió:
> >
> >> Error: Missing builtin type Object
> >>
> >> This error usually means that either playerglobal.swc or js.swc is
> missing.
> >>
> >> It would be difficult to suggest anything more without seeing the
> contents
> >> of compile-swf-config.xml.
> >>
> >> --
> >> Josh Tynjala
> >> Bowler Hat LLC <https://bowlerhat.dev>
> >>
> >>
> >> On Mon, Jul 22, 2019 at 7:50 AM Carlos Rovira <ca...@apache.org>
> >> wrote:
> >>
> >>> Hi,
> >>>
> >>> after latest changes with "library-path" I'm trying to update my
> project
> >>> with no luck.
> >>>
> >>> Hope someone could let me know some guide since all what I tried didn't
> >>> work and always get this:
> >>>
> >>> [*INFO*] *--- *royale-maven-plugin:0.9.6-SNAPSHOT:compile-as
> >>> *(default-compile-as)* @ royalejewel* ---*
> >>>
> >>> [*INFO*] Executing COMPC in tool group Royale with args:
> >>>
> >>>
> >>
> [-load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml,
> >>> -js-default-initializers=false, -source-map=true,
> >>> -compiler.targets=SWF,JSRoyale, -compiler.strict-xml=true]
> >>>
> >>> args:
> >>>
> >>>
> >>>
> >>
> -load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
> >>>
> >>> -js-default-initializers=false
> >>>
> >>> -source-map=true
> >>>
> >>> -compiler.targets=SWF,JSRoyale
> >>>
> >>> -compiler.strict-xml=true
> >>>
> >>> target:SWF
> >>>
> >>> target:JSRoyale
> >>>
> >>> COMPC
> >>>
> >>> Loading configuration:
> >>>
> >>>
> >>
> /Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
> >>>
> >>>
> >>> Error: Missing builtin type Object
> >>>
> >>>
> >>>
> >>> Missing builtin type Object
> >>>
> >>>
> >>>
> >>> 0.553372072 seconds
> >>>
> >>> this is failing when maven tries to compile the first library project
> >>>
> >>> Thanks for any light on this
> >>>
> >>> --
> >>> Carlos Rovira
> >>> http://about.me/carlosrovira
> >>>
> >>
> >
> >
> > --
> > Carlos Rovira
> > http://about.me/carlosrovira
>
>
--
Carlos Rovira
http://about.me/carlosrovira
Re: library-path changes
Posted by Harbs <ha...@gmail.com>.
Make sure you have for the JS config:
<js-external-library-path append=“true”>
The append wil make sure you keep the default values.
Here’s where I updated some of the libs I’m using:
https://github.com/unhurdle/cep-royale/commit/35d45906035e3d1997d70a67893cc096307a3842 <https://github.com/unhurdle/cep-royale/commit/35d45906035e3d1997d70a67893cc096307a3842>
https://github.com/unhurdle/spectrum-royale/commit/2f6e1b5ed25cc57585d6879fbcf2ccae79d57d28 <https://github.com/unhurdle/spectrum-royale/commit/2f6e1b5ed25cc57585d6879fbcf2ccae79d57d28>
> On Jul 22, 2019, at 6:20 PM, Carlos Rovira <ca...@apache.org> wrote:
>
> Hi Josh,
>
> playerglobal.swc is ok, but can you point me to some place where "js.swc"
> is used?
>
> contents of compile-swf-config.xml are the following:
>
> <!--
>
> Copyright (C) 2009, Codeoscopic S.A. - All Rights Reserved
> Unauthorized copying of this file, via any medium is strictly prohibited
> Proprietary and confidential
>
> Copyright (C) 2009, Codeoscopic S.A. - Todos Los Derechos Reservados
> La copia no autorizada de este archivo, a través de cualquier medio está
> estrictamente prohibida
> Privado y confidencial
>
> -->
> <royale-config>
>
> <compiler>
> <accessible>false</accessible>
> <!-- build both SWF and JS. -->
> <targets>
> <target>SWF</target>
> <target>JSRoyale</target>
> </targets>
> <strict-xml>true</strict-xml>
>
> <external-library-path>
> <path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</
> path-element>
> <path-element>../../../../../libs/Binding.swc</path-element>
> <path-element>../../../../../libs/Core.swc</path-element>
> <path-element>../../../../../libs/Graphics.swc</path-element>
> <path-element>../../../../../libs/Collections.swc</path-element>
> <path-element>../../../../../libs/Basic.swc</path-element>
> </external-library-path>
> <allow-subclass-overrides>true</allow-subclass-overrides>
> <mxml>
> <children-as-data>true</children-as-data>
> </mxml>
> <binding-value-change-event>
> org.apache.royale.events.ValueChangeEvent</binding-value-change-event>
> <binding-value-change-event-kind>
> org.apache.royale.events.ValueChangeEvent</binding-value-change-event-kind>
> <binding-value-change-event-type>valueChange</
> binding-value-change-event-type>
>
> <define>
> <name>COMPILE::SWF</name>
> <value>true</value>
> </define>
> <define>
> <name>COMPILE::JS</name>
> <value>false</value>
> </define>
>
> <keep-as3-metadata>
> <name>Bindable</name>
> <name>Managed</name>
> <name>ChangeEvent</name>
> <name>NonCommittingChangeEvent</name>
> <name>Transient</name>
> </keep-as3-metadata>
>
> <locale/>
> <library-path/>
>
> <namespaces>
> <namespace>
> <uri>library://ns.apache.org/royale/basic</uri>
> <manifest>../resources/icons-manifest.xml</manifest>
> </namespace>
> </namespaces>
> <source-path>
> <path-element>../royale</path-element>
> </source-path>
> <warn-no-constructor>false</warn-no-constructor>
> </compiler>
> <include-classes>
> <class>IconsClasses</class>
> </include-classes>
> <include-namespaces>
> <uri>library://ns.apache.org/royale/basic</uri>
> </include-namespaces>
> <target-player>${playerglobal.version}</target-player>
>
> </royale-config>
>
>
>
> I don't know too much about this file, have we docs about it?
> the compiler generates the file itself?
> it uses the global config.xml as a base?
>
> thanks Josh
>
>
> El lun., 22 jul. 2019 a las 17:01, Josh Tynjala (<jo...@bowlerhat.dev>)
> escribió:
>
>> Error: Missing builtin type Object
>>
>> This error usually means that either playerglobal.swc or js.swc is missing.
>>
>> It would be difficult to suggest anything more without seeing the contents
>> of compile-swf-config.xml.
>>
>> --
>> Josh Tynjala
>> Bowler Hat LLC <https://bowlerhat.dev>
>>
>>
>> On Mon, Jul 22, 2019 at 7:50 AM Carlos Rovira <ca...@apache.org>
>> wrote:
>>
>>> Hi,
>>>
>>> after latest changes with "library-path" I'm trying to update my project
>>> with no luck.
>>>
>>> Hope someone could let me know some guide since all what I tried didn't
>>> work and always get this:
>>>
>>> [*INFO*] *--- *royale-maven-plugin:0.9.6-SNAPSHOT:compile-as
>>> *(default-compile-as)* @ royalejewel* ---*
>>>
>>> [*INFO*] Executing COMPC in tool group Royale with args:
>>>
>>>
>> [-load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml,
>>> -js-default-initializers=false, -source-map=true,
>>> -compiler.targets=SWF,JSRoyale, -compiler.strict-xml=true]
>>>
>>> args:
>>>
>>>
>>>
>> -load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
>>>
>>> -js-default-initializers=false
>>>
>>> -source-map=true
>>>
>>> -compiler.targets=SWF,JSRoyale
>>>
>>> -compiler.strict-xml=true
>>>
>>> target:SWF
>>>
>>> target:JSRoyale
>>>
>>> COMPC
>>>
>>> Loading configuration:
>>>
>>>
>> /Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
>>>
>>>
>>> Error: Missing builtin type Object
>>>
>>>
>>>
>>> Missing builtin type Object
>>>
>>>
>>>
>>> 0.553372072 seconds
>>>
>>> this is failing when maven tries to compile the first library project
>>>
>>> Thanks for any light on this
>>>
>>> --
>>> Carlos Rovira
>>> http://about.me/carlosrovira
>>>
>>
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
Re: library-path changes
Posted by Carlos Rovira <ca...@apache.org>.
Hi Josh,
playerglobal.swc is ok, but can you point me to some place where "js.swc"
is used?
contents of compile-swf-config.xml are the following:
<!--
Copyright (C) 2009, Codeoscopic S.A. - All Rights Reserved
Unauthorized copying of this file, via any medium is strictly prohibited
Proprietary and confidential
Copyright (C) 2009, Codeoscopic S.A. - Todos Los Derechos Reservados
La copia no autorizada de este archivo, a través de cualquier medio está
estrictamente prohibida
Privado y confidencial
-->
<royale-config>
<compiler>
<accessible>false</accessible>
<!-- build both SWF and JS. -->
<targets>
<target>SWF</target>
<target>JSRoyale</target>
</targets>
<strict-xml>true</strict-xml>
<external-library-path>
<path-element>${env.AIR_HOME}/frameworks/libs/air/airglobal.swc</
path-element>
<path-element>../../../../../libs/Binding.swc</path-element>
<path-element>../../../../../libs/Core.swc</path-element>
<path-element>../../../../../libs/Graphics.swc</path-element>
<path-element>../../../../../libs/Collections.swc</path-element>
<path-element>../../../../../libs/Basic.swc</path-element>
</external-library-path>
<allow-subclass-overrides>true</allow-subclass-overrides>
<mxml>
<children-as-data>true</children-as-data>
</mxml>
<binding-value-change-event>
org.apache.royale.events.ValueChangeEvent</binding-value-change-event>
<binding-value-change-event-kind>
org.apache.royale.events.ValueChangeEvent</binding-value-change-event-kind>
<binding-value-change-event-type>valueChange</
binding-value-change-event-type>
<define>
<name>COMPILE::SWF</name>
<value>true</value>
</define>
<define>
<name>COMPILE::JS</name>
<value>false</value>
</define>
<keep-as3-metadata>
<name>Bindable</name>
<name>Managed</name>
<name>ChangeEvent</name>
<name>NonCommittingChangeEvent</name>
<name>Transient</name>
</keep-as3-metadata>
<locale/>
<library-path/>
<namespaces>
<namespace>
<uri>library://ns.apache.org/royale/basic</uri>
<manifest>../resources/icons-manifest.xml</manifest>
</namespace>
</namespaces>
<source-path>
<path-element>../royale</path-element>
</source-path>
<warn-no-constructor>false</warn-no-constructor>
</compiler>
<include-classes>
<class>IconsClasses</class>
</include-classes>
<include-namespaces>
<uri>library://ns.apache.org/royale/basic</uri>
</include-namespaces>
<target-player>${playerglobal.version}</target-player>
</royale-config>
I don't know too much about this file, have we docs about it?
the compiler generates the file itself?
it uses the global config.xml as a base?
thanks Josh
El lun., 22 jul. 2019 a las 17:01, Josh Tynjala (<jo...@bowlerhat.dev>)
escribió:
> Error: Missing builtin type Object
>
> This error usually means that either playerglobal.swc or js.swc is missing.
>
> It would be difficult to suggest anything more without seeing the contents
> of compile-swf-config.xml.
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Mon, Jul 22, 2019 at 7:50 AM Carlos Rovira <ca...@apache.org>
> wrote:
>
> > Hi,
> >
> > after latest changes with "library-path" I'm trying to update my project
> > with no luck.
> >
> > Hope someone could let me know some guide since all what I tried didn't
> > work and always get this:
> >
> > [*INFO*] *--- *royale-maven-plugin:0.9.6-SNAPSHOT:compile-as
> > *(default-compile-as)* @ royalejewel* ---*
> >
> > [*INFO*] Executing COMPC in tool group Royale with args:
> >
> >
> [-load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml,
> > -js-default-initializers=false, -source-map=true,
> > -compiler.targets=SWF,JSRoyale, -compiler.strict-xml=true]
> >
> > args:
> >
> >
> >
> -load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
> >
> > -js-default-initializers=false
> >
> > -source-map=true
> >
> > -compiler.targets=SWF,JSRoyale
> >
> > -compiler.strict-xml=true
> >
> > target:SWF
> >
> > target:JSRoyale
> >
> > COMPC
> >
> > Loading configuration:
> >
> >
> /Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
> >
> >
> > Error: Missing builtin type Object
> >
> >
> >
> > Missing builtin type Object
> >
> >
> >
> > 0.553372072 seconds
> >
> > this is failing when maven tries to compile the first library project
> >
> > Thanks for any light on this
> >
> > --
> > Carlos Rovira
> > http://about.me/carlosrovira
> >
>
--
Carlos Rovira
http://about.me/carlosrovira
Re: library-path changes
Posted by Josh Tynjala <jo...@bowlerhat.dev>.
Error: Missing builtin type Object
This error usually means that either playerglobal.swc or js.swc is missing.
It would be difficult to suggest anything more without seeing the contents
of compile-swf-config.xml.
--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>
On Mon, Jul 22, 2019 at 7:50 AM Carlos Rovira <ca...@apache.org>
wrote:
> Hi,
>
> after latest changes with "library-path" I'm trying to update my project
> with no luck.
>
> Hope someone could let me know some guide since all what I tried didn't
> work and always get this:
>
> [*INFO*] *--- *royale-maven-plugin:0.9.6-SNAPSHOT:compile-as
> *(default-compile-as)* @ royalejewel* ---*
>
> [*INFO*] Executing COMPC in tool group Royale with args:
>
> [-load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml,
> -js-default-initializers=false, -source-map=true,
> -compiler.targets=SWF,JSRoyale, -compiler.strict-xml=true]
>
> args:
>
>
> -load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
>
> -js-default-initializers=false
>
> -source-map=true
>
> -compiler.targets=SWF,JSRoyale
>
> -compiler.strict-xml=true
>
> target:SWF
>
> target:JSRoyale
>
> COMPC
>
> Loading configuration:
>
> /Users/carlosrovira/Dev/Codeoscopic/Source/sgc/royale/royalelibs/royalejewel/target/compile-swf-config.xml
>
>
> Error: Missing builtin type Object
>
>
>
> Missing builtin type Object
>
>
>
> 0.553372072 seconds
>
> this is failing when maven tries to compile the first library project
>
> Thanks for any light on this
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>