You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Yishay Weiss <yi...@hotmail.com> on 2020/10/21 05:30:58 UTC

Using Mvn Build as SDK Home

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?


Re: Using Mvn Build as SDK Home

Posted by Piotr Zarzycki <pi...@gmail.com>.
More here ->
https://github.com/apache/royale-asjs/wiki/Build-Apache-Royale-with-Maven

śr., 21 paź 2020 o 07:54 Piotr Zarzycki <pi...@gmail.com>
napisał(a):

> 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 <yi...@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

Re: Using Mvn Build as SDK Home

Posted by Carlos Rovira <ca...@apache.org>.
Hi Piotr,

I think you refer to add the "with-distribution" profile to a normal build.
I do that daily as part of my script, so the last thing after going to the
ANT build is to create the distribution. But after that, during the rest of
your day you don't need to do a full pass that way, just build the lib you
want and go to the distribution folder to pass maven as I told you before,
that way is very fast you can do as much as you want. I think doing that
way you'll don't need another way.



El jue., 22 oct. 2020 a las 15:54, Piotr Zarzycki (<
piotrzarzycki21@gmail.com>) escribió:

> Sorry but I don't understand. I thought that
>
> 1) I can checkout Royale sources
> 2) Run build with distribution parameter
>
> Are you doing that differently ?
>
> czw., 22 paź 2020 o 15:47 Carlos Rovira <ca...@apache.org>
> napisał(a):
>
> > Hi Piotr,
> >
> > The distribution folder has the pom.xml with the assemble instructions to
> > create a full Royale distribution (and SDK in old school words), so it's
> > the right way to launch a maven royale distribution (sdk) build and put
> in
> > the folder you want.
> > That should take 1-2' depending on your machine, but not 20-30'
> >
> > El mié., 21 oct. 2020 a las 12:21, Piotr Zarzycki (<
> > piotrzarzycki21@gmail.com>) escribió:
> >
> > > Carlos,
> > >
> > > What contains the distribution folder ?
> > >
> > > Thanks,
> > > Piotr
> > >
> > > śr., 21 paź 2020 o 12:09 Carlos Rovira <ca...@apache.org>
> > > napisał(a):
> > >
> > > > 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 (<
> > > > piotrzarzycki21@gmail.com>) escribió:
> > > >
> > > > > On Windows it takes around 20-30 minutes ;)
> > > > >
> > > > > śr., 21 paź 2020 o 10:55 Carlos Rovira <ca...@apache.org>
> > > > > napisał(a):
> > > > >
> > > > > > yeah just 1 minute 20 secs
> > > > > >
> > > > > > El mié., 21 oct. 2020 a las 10:52, Piotr Zarzycki (<
> > > > > > piotrzarzycki21@gmail.com>) escribió:
> > > > > >
> > > > > > > Carlos,
> > > > > > >
> > > > > > > It's one minute and 20 seconds ?
> > > > > > >
> > > > > > > śr., 21 paź 2020 o 10:50 Carlos Rovira <
> carlosrovira@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.dutz@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" <
> > > > > > > piotrzarzycki21@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 <
> > > > > carlosrovira@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 (<
> > > > > > > > >     > piotrzarzycki21@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 <
> > > > > > > > piotrzarzycki21@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 <
> > > > > > > yishayjobs@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:
> > > piotrzarzycki21@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 <
> > > > > > > yishayjobs@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
> > > >
> > >
> > >
> > > --
> > >
> > > 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

Re: Using Mvn Build as SDK Home

Posted by Piotr Zarzycki <pi...@gmail.com>.
Sorry but I don't understand. I thought that

1) I can checkout Royale sources
2) Run build with distribution parameter

Are you doing that differently ?

czw., 22 paź 2020 o 15:47 Carlos Rovira <ca...@apache.org>
napisał(a):

> Hi Piotr,
>
> The distribution folder has the pom.xml with the assemble instructions to
> create a full Royale distribution (and SDK in old school words), so it's
> the right way to launch a maven royale distribution (sdk) build and put in
> the folder you want.
> That should take 1-2' depending on your machine, but not 20-30'
>
> El mié., 21 oct. 2020 a las 12:21, Piotr Zarzycki (<
> piotrzarzycki21@gmail.com>) escribió:
>
> > Carlos,
> >
> > What contains the distribution folder ?
> >
> > Thanks,
> > Piotr
> >
> > śr., 21 paź 2020 o 12:09 Carlos Rovira <ca...@apache.org>
> > napisał(a):
> >
> > > 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 (<
> > > piotrzarzycki21@gmail.com>) escribió:
> > >
> > > > On Windows it takes around 20-30 minutes ;)
> > > >
> > > > śr., 21 paź 2020 o 10:55 Carlos Rovira <ca...@apache.org>
> > > > napisał(a):
> > > >
> > > > > yeah just 1 minute 20 secs
> > > > >
> > > > > El mié., 21 oct. 2020 a las 10:52, Piotr Zarzycki (<
> > > > > piotrzarzycki21@gmail.com>) escribió:
> > > > >
> > > > > > Carlos,
> > > > > >
> > > > > > It's one minute and 20 seconds ?
> > > > > >
> > > > > > śr., 21 paź 2020 o 10:50 Carlos Rovira <ca...@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.dutz@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" <
> > > > > > piotrzarzycki21@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 <
> > > > carlosrovira@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 (<
> > > > > > > >     > piotrzarzycki21@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 <
> > > > > > > piotrzarzycki21@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 <
> > > > > > yishayjobs@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:
> > piotrzarzycki21@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 <
> > > > > > yishayjobs@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
> > >
> >
> >
> > --
> >
> > Piotr Zarzycki
> >
>
>
> --
> Carlos Rovira
> Apache Member & Apache Royale PMC
> *Apache Software Foundation*
> http://about.me/carlosrovira
>


-- 

Piotr Zarzycki

Re: Using Mvn Build as SDK Home

Posted by Carlos Rovira <ca...@apache.org>.
Hi Piotr,

The distribution folder has the pom.xml with the assemble instructions to
create a full Royale distribution (and SDK in old school words), so it's
the right way to launch a maven royale distribution (sdk) build and put in
the folder you want.
That should take 1-2' depending on your machine, but not 20-30'

El mié., 21 oct. 2020 a las 12:21, Piotr Zarzycki (<
piotrzarzycki21@gmail.com>) escribió:

> Carlos,
>
> What contains the distribution folder ?
>
> Thanks,
> Piotr
>
> śr., 21 paź 2020 o 12:09 Carlos Rovira <ca...@apache.org>
> napisał(a):
>
> > 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 (<
> > piotrzarzycki21@gmail.com>) escribió:
> >
> > > On Windows it takes around 20-30 minutes ;)
> > >
> > > śr., 21 paź 2020 o 10:55 Carlos Rovira <ca...@apache.org>
> > > napisał(a):
> > >
> > > > yeah just 1 minute 20 secs
> > > >
> > > > El mié., 21 oct. 2020 a las 10:52, Piotr Zarzycki (<
> > > > piotrzarzycki21@gmail.com>) escribió:
> > > >
> > > > > Carlos,
> > > > >
> > > > > It's one minute and 20 seconds ?
> > > > >
> > > > > śr., 21 paź 2020 o 10:50 Carlos Rovira <ca...@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.dutz@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" <
> > > > > piotrzarzycki21@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 <
> > > carlosrovira@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 (<
> > > > > > >     > piotrzarzycki21@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 <
> > > > > > piotrzarzycki21@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 <
> > > > > yishayjobs@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:
> piotrzarzycki21@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 <
> > > > > yishayjobs@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
> >
>
>
> --
>
> Piotr Zarzycki
>


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

Re: Using Mvn Build as SDK Home

Posted by Piotr Zarzycki <pi...@gmail.com>.
Carlos,

What contains the distribution folder ?

Thanks,
Piotr

śr., 21 paź 2020 o 12:09 Carlos Rovira <ca...@apache.org> napisał(a):

> 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 (<
> piotrzarzycki21@gmail.com>) escribió:
>
> > On Windows it takes around 20-30 minutes ;)
> >
> > śr., 21 paź 2020 o 10:55 Carlos Rovira <ca...@apache.org>
> > napisał(a):
> >
> > > yeah just 1 minute 20 secs
> > >
> > > El mié., 21 oct. 2020 a las 10:52, Piotr Zarzycki (<
> > > piotrzarzycki21@gmail.com>) escribió:
> > >
> > > > Carlos,
> > > >
> > > > It's one minute and 20 seconds ?
> > > >
> > > > śr., 21 paź 2020 o 10:50 Carlos Rovira <ca...@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.dutz@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" <
> > > > piotrzarzycki21@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 <
> > carlosrovira@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 (<
> > > > > >     > piotrzarzycki21@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 <
> > > > > piotrzarzycki21@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 <
> > > > yishayjobs@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:piotrzarzycki21@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 <
> > > > yishayjobs@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
>


-- 

Piotr Zarzycki

Re: Using Mvn Build as SDK Home

Posted by Carlos Rovira <ca...@apache.org>.
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 (<
piotrzarzycki21@gmail.com>) escribió:

> On Windows it takes around 20-30 minutes ;)
>
> śr., 21 paź 2020 o 10:55 Carlos Rovira <ca...@apache.org>
> napisał(a):
>
> > yeah just 1 minute 20 secs
> >
> > El mié., 21 oct. 2020 a las 10:52, Piotr Zarzycki (<
> > piotrzarzycki21@gmail.com>) escribió:
> >
> > > Carlos,
> > >
> > > It's one minute and 20 seconds ?
> > >
> > > śr., 21 paź 2020 o 10:50 Carlos Rovira <ca...@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.dutz@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" <
> > > piotrzarzycki21@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 <
> carlosrovira@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 (<
> > > > >     > piotrzarzycki21@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 <
> > > > piotrzarzycki21@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 <
> > > yishayjobs@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<ma...@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 <
> > > yishayjobs@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

Re: Using Mvn Build as SDK Home

Posted by Piotr Zarzycki <pi...@gmail.com>.
On Windows it takes around 20-30 minutes ;)

śr., 21 paź 2020 o 10:55 Carlos Rovira <ca...@apache.org> napisał(a):

> yeah just 1 minute 20 secs
>
> El mié., 21 oct. 2020 a las 10:52, Piotr Zarzycki (<
> piotrzarzycki21@gmail.com>) escribió:
>
> > Carlos,
> >
> > It's one minute and 20 seconds ?
> >
> > śr., 21 paź 2020 o 10:50 Carlos Rovira <ca...@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.dutz@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" <
> > piotrzarzycki21@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 <ca...@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 (<
> > > >     > piotrzarzycki21@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 <
> > > piotrzarzycki21@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 <
> > yishayjobs@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<ma...@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 <
> > yishayjobs@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

Re: Using Mvn Build as SDK Home

Posted by Carlos Rovira <ca...@apache.org>.
yeah just 1 minute 20 secs

El mié., 21 oct. 2020 a las 10:52, Piotr Zarzycki (<
piotrzarzycki21@gmail.com>) escribió:

> Carlos,
>
> It's one minute and 20 seconds ?
>
> śr., 21 paź 2020 o 10:50 Carlos Rovira <ca...@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.dutz@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" <
> piotrzarzycki21@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 <ca...@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 (<
> > >     > piotrzarzycki21@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 <
> > piotrzarzycki21@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 <
> yishayjobs@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<ma...@gmail.com>
> > >     > > >> Sent: Wednesday, October 21, 2020 8:54 AM
> > >     > > >> To: Apache Royale Development<ma...@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 <
> yishayjobs@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

Re: Using Mvn Build as SDK Home

Posted by Piotr Zarzycki <pi...@gmail.com>.
Carlos,

It's one minute and 20 seconds ?

śr., 21 paź 2020 o 10:50 Carlos Rovira <ca...@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.dutz@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" <piotrzarzycki21@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 <ca...@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 (<
> >     > piotrzarzycki21@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 <
> piotrzarzycki21@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 <yi...@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<ma...@gmail.com>
> >     > > >> Sent: Wednesday, October 21, 2020 8:54 AM
> >     > > >> To: Apache Royale Development<ma...@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 <yishayjobs@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

Re: Using Mvn Build as SDK Home

Posted by Carlos Rovira <ca...@apache.org>.
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.dutz@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" <pi...@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 <ca...@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 (<
>     > piotrzarzycki21@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 <piotrzarzycki21@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 <yi...@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<ma...@gmail.com>
>     > > >> Sent: Wednesday, October 21, 2020 8:54 AM
>     > > >> To: Apache Royale Development<ma...@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 <yi...@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

Re: Using Mvn Build as SDK Home

Posted by Carlos Rovira <ca...@apache.org>.
Hi Chris,

Intellij takes the changes because it goes to the source (.m2 folder) and
you're using the flexmojos and not a distribution (sdk), so it's normal you
see it ok. If IntelliJ have Royale support, it will be fantastic, but since
the support is very restricted, I think is not a real IDE option right now
:(
Maybe if we could create some extension (open source) for Intellij...



El mié., 21 oct. 2020 a las 11:53, Christofer Dutz (<
christofer.dutz@c-ware.de>) escribió:

> Hi Piotr,
>
> IntelliJ seems to be picking up the changes almost instantly ...
>
> But as I said, we could add a profile to automatically also install
> artifacts to the distribution, if that helps reduce the build time on
> Windows
> (dam ... gonna be interesting how my build times will change once I switch
> from my stupid Mac to my new Dell ... once I get it ... if I get it)
>
> Chris
>
>
>
> Am 21.10.20, 10:51 schrieb "Piotr Zarzycki" <pi...@gmail.com>:
>
>     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 <ch...@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" <
> piotrzarzycki21@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 <ca...@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 (<
>     >     > piotrzarzycki21@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 <
> piotrzarzycki21@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 <
> yishayjobs@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<ma...@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 <
> yishayjobs@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
>
>

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

Re: Using Mvn Build as SDK Home

Posted by Piotr Zarzycki <pi...@gmail.com>.
 Chris,

If you can add such profile it would be helpful not only for Yishay. To
understand it fully:

1) I'm building distribution for whole Royale
2) Thanks to your profile I can build 1 module and artifacts will install
into distribution folder

Am I understand it right ?

Thanks,
Piotr

śr., 21 paź 2020 o 11:53 Christofer Dutz <ch...@c-ware.de>
napisał(a):

> Hi Piotr,
>
> IntelliJ seems to be picking up the changes almost instantly ...
>
> But as I said, we could add a profile to automatically also install
> artifacts to the distribution, if that helps reduce the build time on
> Windows
> (dam ... gonna be interesting how my build times will change once I switch
> from my stupid Mac to my new Dell ... once I get it ... if I get it)
>
> Chris
>
>
>
> Am 21.10.20, 10:51 schrieb "Piotr Zarzycki" <pi...@gmail.com>:
>
>     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 <ch...@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" <
> piotrzarzycki21@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 <ca...@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 (<
>     >     > piotrzarzycki21@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 <
> piotrzarzycki21@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 <
> yishayjobs@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<ma...@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 <
> yishayjobs@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
>
>

-- 

Piotr Zarzycki

Re: Using Mvn Build as SDK Home

Posted by Christofer Dutz <ch...@c-ware.de>.
Hi Piotr,

IntelliJ seems to be picking up the changes almost instantly ... 

But as I said, we could add a profile to automatically also install artifacts to the distribution, if that helps reduce the build time on Windows 
(dam ... gonna be interesting how my build times will change once I switch from my stupid Mac to my new Dell ... once I get it ... if I get it)

Chris



Am 21.10.20, 10:51 schrieb "Piotr Zarzycki" <pi...@gmail.com>:

    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 <ch...@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" <pi...@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 <ca...@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 (<
    >     > piotrzarzycki21@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 <piotrzarzycki21@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 <yi...@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<ma...@gmail.com>
    >     > > >> Sent: Wednesday, October 21, 2020 8:54 AM
    >     > > >> To: Apache Royale Development<ma...@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 <yi...@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


Re: Using Mvn Build as SDK Home

Posted by Piotr Zarzycki <pi...@gmail.com>.
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 <ch...@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" <pi...@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 <ca...@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 (<
>     > piotrzarzycki21@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 <piotrzarzycki21@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 <yi...@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<ma...@gmail.com>
>     > > >> Sent: Wednesday, October 21, 2020 8:54 AM
>     > > >> To: Apache Royale Development<ma...@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 <yi...@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

Re: Using Mvn Build as SDK Home

Posted by Christofer Dutz <ch...@c-ware.de>.
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" <pi...@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 <ca...@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 (<
    > piotrzarzycki21@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 <pi...@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 <yi...@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<ma...@gmail.com>
    > > >> Sent: Wednesday, October 21, 2020 8:54 AM
    > > >> To: Apache Royale Development<ma...@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 <yi...@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


Re: Using Mvn Build as SDK Home

Posted by Piotr Zarzycki <pi...@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 <ca...@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 (<
> piotrzarzycki21@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 <pi...@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 <yi...@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<ma...@gmail.com>
> > >> Sent: Wednesday, October 21, 2020 8:54 AM
> > >> To: Apache Royale Development<ma...@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 <yi...@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

Re: Using Mvn Build as SDK Home

Posted by Carlos Rovira <ca...@apache.org>.
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 (<pi...@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 <pi...@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 <yi...@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<ma...@gmail.com>
> >> Sent: Wednesday, October 21, 2020 8:54 AM
> >> To: Apache Royale Development<ma...@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 <yi...@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

Re: Using Mvn Build as SDK Home

Posted by Piotr Zarzycki <pi...@gmail.com>.
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 <pi...@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 <yi...@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<ma...@gmail.com>
>> Sent: Wednesday, October 21, 2020 8:54 AM
>> To: Apache Royale Development<ma...@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 <yi...@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

Re: Using Mvn Build as SDK Home

Posted by Piotr Zarzycki <pi...@gmail.com>.
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 <yi...@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<ma...@gmail.com>
> Sent: Wednesday, October 21, 2020 8:54 AM
> To: Apache Royale Development<ma...@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 <yi...@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

RE: Using Mvn Build as SDK Home

Posted by Yishay Weiss <yi...@hotmail.com>.
And then if I e.g. change MXRoyale and do mvn clean install will the SDK be updated accordingly?

From: Piotr Zarzycki<ma...@gmail.com>
Sent: Wednesday, October 21, 2020 8:54 AM
To: Apache Royale Development<ma...@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 <yi...@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


Re: Using Mvn Build as SDK Home

Posted by Piotr Zarzycki <pi...@gmail.com>.
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 <yi...@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