Hi Chris, What I mean is If I change Button in Basic module - I build by ANT it - I have swc - When user point in IDE folder with Royale sources that changes in Button will be seen in code completion.
If I do the same with Maven - I won't see those changes, unless I do full rebuild with distribution option. Am I missing something? Thanks, Piotr śr., 21 paź 2020 o 10:46 Christofer Dutz <christofer.d...@c-ware.de> napisał(a): > 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 > > -- Piotr Zarzycki