Hi Piotr, something strange is happening. Don't think it is a problem of win vs mac. Are you doing exactly as I do?
- cd distribution - mvn clean install -DdistributionTargetFolder=/Users/<you-user>/Dev/Royale/Sdks/apache-royale-maven thanks El mié., 21 oct. 2020 a las 10:56, Piotr Zarzycki (< piotrzarzyck...@gmail.com>) escribió: > On Windows it takes around 20-30 minutes ;) > > śr., 21 paź 2020 o 10:55 Carlos Rovira <carlosrov...@apache.org> > napisał(a): > > > yeah just 1 minute 20 secs > > > > El mié., 21 oct. 2020 a las 10:52, Piotr Zarzycki (< > > piotrzarzyck...@gmail.com>) escribió: > > > > > Carlos, > > > > > > It's one minute and 20 seconds ? > > > > > > śr., 21 paź 2020 o 10:50 Carlos Rovira <carlosrov...@apache.org> > > > napisał(a): > > > > > > > Hi Piotr and Chris, > > > > > > > > we can add something to add directly to distribution as Chris says > but > > > > sincerely I think the time it take to build all distribution is very > > very > > > > fast. Just did while writing this, and 1'20" seems to me very good :) > > > > > > > > [*INFO*] > > > > > > > > > > *------------------------------------------------------------------------* > > > > > > > > [*INFO*] *Reactor Summary for Apache Royale: Distribution > > > 0.9.8-SNAPSHOT:* > > > > > > > > [*INFO*] > > > > > > > > [*INFO*] compc .............................................. > > *SUCCESS* [ > > > > 11.880 s] > > > > > > > > [*INFO*] compiler-asc ....................................... > > > > *SUCCESS* [ 0.289 > > > > s] > > > > > > > > [*INFO*] compiler-compc ..................................... > > > > *SUCCESS* [ 0.369 > > > > s] > > > > > > > > [*INFO*] compiler-compjsc ................................... > > > > *SUCCESS* [ 0.290 > > > > s] > > > > > > > > [*INFO*] compiler-mxmlc ..................................... > > > > *SUCCESS* [ 0.296 > > > > s] > > > > > > > > [*INFO*] compiler-mxmljsc ................................... > > > > *SUCCESS* [ 0.289 > > > > s] > > > > > > > > [*INFO*] compiler-optimizer ................................. > > > > *SUCCESS* [ 0.383 > > > > s] > > > > > > > > [*INFO*] compiler-swfdump ................................... > > > > *SUCCESS* [ 0.300 > > > > s] > > > > > > > > [*INFO*] mxmlc .............................................. > > > > *SUCCESS* [ 0.254 > > > > s] > > > > > > > > [*INFO*] Apache Royale: Distribution ........................ > *SUCCESS* > > > > [01:05 min] > > > > > > > > [*INFO*] > > > > > > > > > > *------------------------------------------------------------------------* > > > > > > > > [*INFO*] *BUILD SUCCESS* > > > > > > > > [*INFO*] > > > > > > > > > > *------------------------------------------------------------------------* > > > > > > > > [*INFO*] Total time: 01:20 min > > > > > > > > [*INFO*] Finished at: 2020-10-21T10:47:32+02:00 > > > > > > > > [*INFO*] > > > > > > > > > > *------------------------------------------------------------------------* > > > > > > > > carlosrovira@macbookpro distribution % > > > > > > > > El mié., 21 oct. 2020 a las 10:46, Christofer Dutz (< > > > > christofer.d...@c-ware.de>) escribió: > > > > > > > > > Hi Piotr, > > > > > > > > > > do you mean that if you build a single module that only this module > > is > > > > > updated in the distribution? > > > > > Cause if you use maven in your IDE actually just doing a "mvn > > install" > > > > > should be all you need. > > > > > > > > > > We could probably add a profile to automatically install a copy of > > the > > > > > resources in the provided distribution folder directly without > going > > > > > through the assembly plugin. > > > > > > > > > > I'm all for helping get the developer experience to match that of > the > > > Ant > > > > > build. > > > > > > > > > > Chris > > > > > > > > > > > > > > > > > > > > > > > > > Am 21.10.20, 10:30 schrieb "Piotr Zarzycki" < > > > piotrzarzyck...@gmail.com > > > > >: > > > > > > > > > > Carlos, > > > > > > > > > > I'm skipping rat stuff on my own responsibility and I know how > it > > > may > > > > > end > > > > > up. :) > > > > > > > > > > Problem with Maven way is that in this specific case which > Yishay > > > > > experience there is no way workaround it. In ANT you can build > > one > > > > > module > > > > > and have it seen immediately in IDE - with Maven you have to > > build > > > > > whole > > > > > SDK with distribution - on windows it takes time and resources. > > > > > > > > > > It would be good to have something in Maven like in ANT. > > > > > > > > > > Thanks, > > > > > Piotr > > > > > > > > > > śr., 21 paź 2020 o 10:18 Carlos Rovira < > carlosrov...@apache.org> > > > > > napisał(a): > > > > > > > > > > > Hi Yishay, Piotr > > > > > > > > > > > > to complement, If you have a VSCode window with MXRoyale > > openned > > > > you > > > > > can > > > > > > build in the VSCode terminal: > > > > > > > > > > > > ( > > > > > > first a warning: > > > > > > -Drat.skip=true -> doing this will not check rat, and if you > > add > > > a > > > > > class > > > > > > without license will break the build so better don't use it > > > > > > -Dgenerate.swf.swcs=true -> doesn't exists anymore, since was > > > > > refactored > > > > > > many months ago to a friendly maven option schema > > > > > > ) > > > > > > > > > > > > Now: > > > > > > > > > > > > - *ANT*: just call "*ant*" > > > > > > - If you're building in your royale-asjs folder since > use > > > to > > > > > be an > > > > > > SDK itself (if you use to do and -all inside) you'll > see > > > the > > > > > changes > > > > > > restarting VSCode > > > > > > - *Maven*: *mvn clean install -P option-with-swf* > (optional > > > you > > > > > can add > > > > > > -DskipTests > > > > > > - When you use the library you directly get the new > build > > > > > since Maven > > > > > > update the local .m2 repo > > > > > > - VSCode: You don't get the SDK updated so VSCode > doesn't > > > > know > > > > > about > > > > > > the change, you need to rebuild the SDK with maven what > > use > > > > to > > > > > be a > > > > > > quick > > > > > > task doing this inside royale-asjs: > > > > > > - cd distribution > > > > > > - mvn clean install > > > > > > > > > > > > > > > > > > > > > > > > > > > -DdistributionTargetFolder=/Users/<you-user>/Dev/Royale/Sdks/apache-royale-maven > > > > > > > > > > > > (Notice I don't need to add here *-P with-distribution*) > > > > > > > > > > > > So, it depends if you have VSCode pointing to an SDK > generated > > by > > > > > ANT or my > > > > > > MAVEN. > > > > > > This is what I do: > > > > > > > > > > > > 1. pass a script that builds Maven and ANT (daily first > > thing > > > in > > > > > the > > > > > > morning) > > > > > > 2. If I change (add, remove, updte) anything on a library > in > > > the > > > > > SDK, I > > > > > > build with Maven on VSCode then ANT (VSCode too). > > > > > > 3. I have my VSCode using Maven SDK, so I build maven > > > > > distribution (as > > > > > > showed before) and restart VSCode) > > > > > > 1. Instead I could have my VScode pointing to > royale-asjs > > > > with > > > > > SDK > > > > > > built, that way just restarting VSCode take the > changes, > > > > since > > > > > the > > > > > > "ant" > > > > > > command updated the SDK in royale-asjs. > > > > > > > > > > > > HTH > > > > > > > > > > > > Carlos > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > El mié., 21 oct. 2020 a las 8:08, Piotr Zarzycki (< > > > > > > piotrzarzyck...@gmail.com>) > > > > > > escribió: > > > > > > > > > > > > > I think smart IDE like Intellij is able to recognize > changes > > > > using > > > > > Maven > > > > > > > script, but VSCode or Moonshine definitely not. > > > > > > > > > > > > > > śr., 21 paź 2020 o 08:04 Piotr Zarzycki < > > > > piotrzarzyck...@gmail.com > > > > > > > > > > > > > napisał(a): > > > > > > > > > > > > > > > Well if you wanted to have code completion etc - you have > > to > > > do > > > > > that > > > > > > > > again, but in general you are using Maven (to try your > > Royale > > > > > code) and > > > > > > > do > > > > > > > > distribution build once in a while. > > > > > > > > > > > > > > > > When I add property in Button - I usually don't care > > whether > > > I > > > > > see it > > > > > > > > immediately in code completion - I'm checking if it's > > > working: > > > > > > > > > > > > > > > > 1) I'm building by maven module where the changes are > "mvn > > > > clean > > > > > > install" > > > > > > > > 2) I'm building my app with that changes "mvn clean > > install" > > > > > > > > > > > > > > > > I know with ant you are building module and result of > that > > > > build > > > > > is > > > > > > > > immediately put inside royale folder, but with Maven > option > > > > > "install" > > > > > > > > putting it here: > > > > > c:\Users\{youruser}\.m2\repository\org\apache\royale\ > > > > > > > > > > > > > > > > > > > > > > > > śr., 21 paź 2020 o 07:57 Yishay Weiss < > > > yishayj...@hotmail.com> > > > > > > > napisał(a): > > > > > > > > > > > > > > > >> And then if I e.g. change MXRoyale and do mvn clean > > install > > > > > will the > > > > > > SDK > > > > > > > >> be updated accordingly? > > > > > > > >> > > > > > > > >> From: Piotr Zarzycki<mailto:piotrzarzyck...@gmail.com> > > > > > > > >> Sent: Wednesday, October 21, 2020 8:54 AM > > > > > > > >> To: Apache Royale Development<mailto: > > dev@royale.apache.org> > > > > > > > >> Subject: Re: Using Mvn Build as SDK Home > > > > > > > >> > > > > > > > >> Hi, > > > > > > > >> > > > > > > > >> This is my command line: > > > > > > > >> > > > > > > > >> mvn clean install -P with-distribution -DskipTests > > > > > -Drat.skip=true > > > > > > > >> -Dgenerate.swf.swcs=true -DdistributionTargetFolder=path > > > > > > > >> > > > > > > > >> > > > > > > > >> > > > > > > > >> śr., 21 paź 2020 o 07:31 Yishay Weiss < > > > yishayj...@hotmail.com > > > > > > > > > > > > >> napisał(a): > > > > > > > >> > > > > > > > >> > When I build SDK with ant I can just point VSCode to > > > > > royale-asjs and > > > > > > > it > > > > > > > >> > can use it to compile. How do I do that if I build SDK > > > with > > > > > mvn? > > > > > > > >> > > > > > > > > >> > > > > > > > > >> > > > > > > > >> -- > > > > > > > >> > > > > > > > >> Piotr Zarzycki > > > > > > > >> > > > > > > > >> > > > > > > > > > > > > > > > > -- > > > > > > > > > > > > > > > > Piotr Zarzycki > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > > > > > Piotr Zarzycki > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > Carlos Rovira > > > > > > Apache Member & Apache Royale PMC > > > > > > *Apache Software Foundation* > > > > > > http://about.me/carlosrovira > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > Piotr Zarzycki > > > > > > > > > > > > > > > > > > -- > > > > Carlos Rovira > > > > Apache Member & Apache Royale PMC > > > > *Apache Software Foundation* > > > > http://about.me/carlosrovira > > > > > > > > > > > > > -- > > > > > > Piotr Zarzycki > > > > > > > > > -- > > Carlos Rovira > > Apache Member & Apache Royale PMC > > *Apache Software Foundation* > > http://about.me/carlosrovira > > > > > -- > > Piotr Zarzycki > -- Carlos Rovira Apache Member & Apache Royale PMC *Apache Software Foundation* http://about.me/carlosrovira