I have never used modules in Royale, so I have a couple of questions. Is there a special compiler option that is used to add a module to an app? Or are modules supposed to be compiled separately? I'm asking in the context where you are compiling directly on the command line with mxmlc and no build tool like Maven.
If there's a compiler option, you should be able to do it with one asconfig.json file. You'd use that option instead of adding the module to the "files" field. If modules are compiled separately from the application, then you need a separate asconfig.json file for the module. -- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Thu, Jun 27, 2019 at 10:25 AM Carlos Rovira <[email protected]> wrote: > Hi, > > I'm trying to build the project in examples/blog/ > BE0013_Dividing_an_Apache_Royale_application_with_modules > > with asconfigc. > > The difference is we have two different compilations here: Application and > Module, so we have: > > "files": > [ > "JewelModule/src/main/royale/JewelModule.mxml", > "MainJewelApp/src/main/royale/MainJewelApp.mxml" > ] > > This outputs: > > Executing task: asconfigc > --sdk=/Users/carlosrovira/Dev/Royale/Source/royale-asjs < > > MXMLJSC > +royalelib=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/frameworks > +configname=royale > --debug=false > --targets=JSRoyale > --source-map=true > > --html-template=MainJewelApp/src/main/resources/jewel-example-index-template.html > --theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css > -remove-circulars > -js-output-optimization=skipAsCoercions > -- > JewelModule/src/main/royale/JewelModule.mxml > MainJewelApp/src/main/royale/MainJewelApp.mxml > jun 27, 2019 7:11:57 PM com.google.javascript.jscomp.LoggerErrorManager > printSummary > INFORMACIÓN: 0 error(s), 0 warning(s), 95.9% typed > The project 'MainJewelApp' has been successfully compiled and optimized. > 9.726229827 seconds > > and I get a bin folder in 'MainJewelApp', but nothing in 'JewelModule' > > Can asconfigc compile both Application and Module? Or I should do this in > other way? (maybe 2 asconfigc) > > A part from that, I think I'll need to make some copying of the Modules > output to the App target folder, I solved this in Maven, but how can be > done with asconfigc? > This is to provide to users with more possibilities > > @Piotr, maybe can you try this example in Moonshine and see what issues you > find to try to give some solution in the IDE. Again, copying of files seems > something to be solve in some way or another. > > Latest thing to solve will be ANT building > > thanks > > -- > Carlos Rovira > http://about.me/carlosrovira >
