Hi Maria Jose,

As I have something working I'll report so you can try it too from windows.
I expect to have something very SO agnostic, since the purpose is to check
things in a library and see all is working fine. Another thing will be to
try to run the example and see it works too.

thanks!


El vie, 26 feb 2021 a las 0:02, Maria Jose Esteve (<mjest...@iest.com>)
escribió:

> Hi Carlos,
> Thanks for your interest. I can help you with something? I think you work
> with Mac and there are some times that the behavior is not the same in
> Windows, I don't know if it could help you with the tests ... you tell me.
>
> Hiedra.
>
> -----Mensaje original-----
> De: Carlos Rovira <carlosrov...@apache.org>
> Enviado el: jueves, 25 de febrero de 2021 19:53
> Para: Apache Royale Development <dev@royale.apache.org>
> Asunto: Re: Library compilation with asconfigc produces an error
>
> Hi Maria Jose,
>
> I plan to create a project example layout with an app and a library
> created with the new maven archetypes I did some months ago and try to add
> this.
> Then look for how to fix the distribution. Hope I can do that this weekend
> if I hopefully have the time. Having that example would be important to
> test thing in a library since we don't have examples in the repo with that
> layout.
>
> El mié, 24 feb 2021 a las 2:12, Maria Jose Esteve (<mjest...@iest.com>)
> escribió:
>
> > Hi, I got it, I already compile the libraries that use fx: Array.
> > Josh gave me the hint ...
> > In the pom, I have added the namespace, inside
> "additionalCompilerOptions":
> >
> > -compiler.js-namespaces.namespace+=
> > http://ns.adobe.com/mxml/2009,${env.ROYALE_HOME}/frameworks/mxml-2009-
> > manifest.xml
> > ;
> >
> > Now I need to understand why I need this now and not 2 weeks ago ...
> > "😝
> > Do any of you make sense?
> >
> > Thank you all for your time.
> >
> > Hiedra
> >
> > -----Mensaje original-----
> > De: Josh Tynjala <joshtynj...@bowlerhat.dev> Enviado el: martes, 23 de
> > febrero de 2021 18:21
> > Para: Apache Royale Development <dev@royale.apache.org>
> > Asunto: Re: Library compilation with asconfigc produces an error
> >
> > I remember seeing an issue a while back where core classes in MXML,
> > like <fx:Array> or <fx:Object>, didn't work its because the
> > mxml-2009-manifest.xml is not properly referenced anywhere. Does the
> > Maven distribution reference this manifest in royale-config.xml?
> >
> >
> > https://github.com/apache/royale-asjs/blob/develop/frameworks/mxml-200
> > 9-manifest.xml
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev>
> >
> >
> > On Tue, Feb 23, 2021 at 1:01 AM Maria Jose Esteve <mjest...@iest.com>
> > wrote:
> >
> > > Hello, let's see if someone can give me a clue ...
> > > I always compile my app projects and libraries with mvn.
> > > In the last few days, with all this from the sdk, I am getting a
> > > very strange error when compiling my libraries ... it does not
> > > recognize the tag
> > > "<fx: Array>".
> > > I wanted to do a test: compile with asconfigc but I get a different
> > error:
> > >
> > > > Executing task in folder royale-library: asconfigc
> > > --sdk=D:\Apache\apache-royale-0.9.8-maven <
> > >
> > > args:
> > > +royalelib=D:\Apache\apache-royale-0.9.8-maven\frameworks
> > > +configname=royale
> > > --debug=true
> > > --targets=JSRoyale
> > > --source-path+=src/main/royale
> > > --include-namespaces+=library://ns.mjesteve.com/royalecharting/libra
> > > --include-namespaces+ry
> > >
> > > --namespace+=library://ns.mjesteve.com/royalecharting/library,src/ma
> > > --namespace+in /resources/library-manifest.xml
> > > <http://ns.mjesteve.com/royalecharting/library--namespace+=library:/
> > > /n
> > > s.mjesteve.com/royalecharting/library,src/main/resources/library-man
> > > if
> > > est.xml>
> > > --include-classes=LibraryClasses.as
> > > --include-sources+=src/main/royale
> > > --library-path+=${royalelib}/js/libs/MXRoyaleJS.swc
> > > --js-library-path+=${royalelib}/js/libs/MXRoyaleJS.swc
> > > --define+=COMPILE::JS,true
> > > --define+=COMPILE::SWF,false
> > > --source-map=true
> > > --output=target/royale-library-1.0-SNAPSHOT-js.swc
> > > -remove-circulars
> > > -js-output-optimization=skipAsCoercions
> > > target:JSRoyale
> > > COMPCJSCRoyale
> > > Could not find source for class LibraryClasses.as.
> > >
> > > This is my asconfig.json file:
> > >
> > >  {
> > >     "config": "royale",
> > >     "type": "lib",
> > >     "compilerOptions": {
> > >         "debug": true,
> > >         "targets": [
> > >             "JSRoyale"
> > >         ],
> > >         "source-path": [
> > >             "src/main/royale"
> > >         ],
> > >         "include-namespaces": [
> > >             "library://ns.mjesteve.com/royalecharting/library"
> > >         ],
> > >         "namespace": [
> > >             {
> > >                 "uri":
> > > "library://ns.mjesteve.com/royalecharting/library
> > ",
> > >                 "manifest": "src/main/resources/library-manifest.xml"
> > >             }
> > >         ],
> > >         "include-classes": [
> > >             "LibraryClasses.as"
> > >         ],
> > >         "include-sources": [
> > >             "src/main/royale"
> > >         ],
> > >         "library-path": [
> > >             "${royalelib}/js/libs/MXRoyaleJS.swc"
> > >         ],
> > >         "js-library-path": [
> > >             "${royalelib}/js/libs/MXRoyaleJS.swc"
> > >         ],
> > >         "define": [
> > >             {
> > >                 "name": "COMPILE::JS",
> > >                 "value": true
> > >             },
> > >             {
> > >                 "name": "COMPILE::SWF",
> > >                 "value": false
> > >             }
> > >         ],
> > >         "source-map": true,
> > >         "output": "target/royale-library-1.0-SNAPSHOT-js.swc"
> > >     }
> > > }
> > >
> > > Any clues to the "Could not find source for class LibraryClasses.as"
> > error?
> > >
> > > Thank you all.
> > > Hiedra
> > >
> >
>
>
> --
> Carlos Rovira
> Apache Member & Apache Royale PMC
> *Apache Software Foundation*
> http://about.me/carlosrovira
>


-- 
Carlos Rovira
Apache Member & Apache Royale PMC
*Apache Software Foundation*
http://about.me/carlosrovira

Reply via email to