Hi, I have had a difficult few weeks with work, I feel the silence.
First I wanted to remember that my environment and routines I think are a
little different from Piotr's, maybe someone is in the same situation:
- IDE: vsCode
- Maven royale-compiler, royale-typedefs and royale-asjs compilation, js only.
- I compile the projects with maven: mvn clean install
-Droyalelib=${env:ROYALE_HOME}\\frameworks
Env:ROYALE_HOME --> sdk distribution folder
In the pom.xml /
-compiler.exclude-defaults-css-files=MXRoyale-0.9.8-SNAPSHOT-js.swc:defaults.css;
- Test projects: Jewel application.
Project Ex. 1: Royale-Echarts [1] - targets: JSRoyale
Project Ex. 2: AppWithLib [2] && Simplelib [3] - targets:
JSRoyale
Project Ex. 3: Custom app.
- Jewel application
- crux and mx.rpc.remoting.RemoteObject
- project consisting of an app project (views)
and an external library - JSRoyale (classes, controllers, models and delegates)
Project Ex. 4: Custom app.
- Jewel application
- crux and mx.rpc.remoting.RemoteObject
- This project is not my belief, the framework
was created by some external collaborators.
It is made up of a royale-app and a royale-libs
composed of several interconnected libraries and of these with the royale-app.
In royale-app as expected, the views, and in
royale-libs all the rest of the code (general classes, custom components,
echarts [1], controllers, models and delegates)
The application is compiled with the JSRoyale
target and the libraries are compiled in js and swf (I can't understand this
because the target is also JSRoyale)
[1] https://github.com/mjesteve/Royale-ECharts/tree/develop_v5
[2]
https://github.com/mjesteve/royale-asjs/tree/Example_AppWithLib/examples/crux/AppWithLib
[3]
https://github.com/mjesteve/royale-asjs/tree/Example_AppWithLib/examples/crux/SampleLib
@Chris, I have generated the distribution to the second 😝, had always used "-P
with-distribution" (with white space between the "-P" and the "w") but now it
does not recognize me. Yes I was recognized by "-Pwith-distribution" --> Ok all
Although I do not use the mvn swf-js distribution, I have also compiled it and
generated it correctly.
I don't know what should be generated with the distribution to be considered
"aligned with the ant distribution" but in the "themes" folder, of the swf-js
distribution, the "Halo" folder is missing and I don't know if anything else is
there? should it be generated?
The IDE perfectly recognizes both distributions.
Successful mvn compilation of "Project Ex. 1", "Project Ex. 2" and "Project Ex.
3" but with "Project Ex. 4" I get errors that I am debugging right now and that
I will share with you in a bit.
I have to say that all "Projects Ex." compile without errors if I use the
compiled SDK "no distribution"
Hiedra
-----Mensaje original-----
De: Piotr Zarzycki <[email protected]>
Enviado el: lunes, 15 de marzo de 2021 13:39
Para: Apache Royale Development <[email protected]>
Asunto: Re: [MAVEN DISTRIBUTION] getting the Ant and Maven aligned
Hi Chris,
I have tested your changes and finally I'm able build project using
generated distribution. I would like to test it for couple of days to see
if I won't have any problems with Josh's language server and we should be
good here.
Thanks,
Piotr
sob., 13 mar 2021 o 15:10 Christofer Dutz
<[email protected]<mailto:[email protected]>>
napisał(a):
> Hi Piotr,
>
> ok ... that was easily fixable.
> In one of my last commits I had removed the class path entry to
> antlr-runtime.jar as the Ant one didn't have this.
> But the missing class you reported is in this jar.
>
> So, I compared the antlr.jar in the Ant and Maven distribution. They were
> greatly different in size (Ant:2,4MB vs Maven 0.4MB)
> I therefore re-added the antlr-rutime.jar back to the class path of the
> Maven distribution.
>
> This error should now disappear.
>
> Chris
>…