Re: How to build users project using ANT to JS only

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: How to build users project using ANT to JS only

serkan
Hi Piotr,

This the batch file I use to build my test project.

https://github.com/nihavend/royale-testing/blob/master/build-ant.bat

May be it helps.

Thanks,
Serkan

6.04.2020 14:08 tarihinde Piotr Zarzycki yazdı:
Hi Alex,

I have commented out wrapper part to move forward and I have tried to build
HelloWorld of mxroyale example, cause this is actually my case. I got
following error [1]

[1] https://paste.apache.org/cvenu



sob., 4 kwi 2020 o 00:35 Alex Harui [hidden email] napisał(a):

That output doesn't show a compiler error, it shows an error after the
compile trying to set up the swf wrapper.  I think the examples haven't
been tested to see if they compile in js-only.  We should probably fix
that.  The wrapper target just has to detect js-only and not run.

For your scenario, if I understand it correctly, you can try one of the
other targets in build_example such as compile-js-only instead of the
compile target.

HTH,
-Alex

On 4/3/20, 3:13 PM, "Piotr Zarzycki" [hidden email] wrote:

    Alex,

    This is the output from attempt of building TourDeJewel. [1] - I don't
have
    in my system sets any environment variable related to Flex or Royale.
No
    ROYALE_HOME, playerglobal, AIR_HOME etc. I would like to build that
example
    to JS only using JS only SDK with build.xml file. Where is the issue
here ?

    Build used from Jenkins #1196.

    [1]
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apache.org%2F9n6dl&data=02%7C01%7Caharui%40adobe.com%7C983c849ee8df403ff69e08d7d81c3f26%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637215488145524020&sdata=jpQZcVahyYnB1V%2FEmCBp9XoPEgYw03dL%2FE5e1fuvizs%3D&reserved=0

    Thanks,
    Piotr

    pt., 3 kwi 2020 o 22:32 Alex Harui [hidden email]
napisał(a):

    > TourDeJewel uses a src/main/config/compile-app-config.xml that
specifies
    > JSRoyale.  Yes, lots of SWF params are provided but that's just so
we can
    > use the same template for all examples.   From the command-line, you
    > shouldn't need any of that.
    >
    > It looks like you did set targets=JSRoyale with <arg> tags instead
of a
    > config.xml file.  But the way to see if it is working is to look at
the
    > console output.
    >
    > -Alex
    >
    > On 4/3/20, 1:19 PM, "Piotr Zarzycki" [hidden email]
wrote:
    >
    >     How is this work that this code is building something to JS only
? Why
    > we
    >     are pointing output to some swf file and pointing playerglobal ?
-
    > This is
    >     my question rather.
    >
    >
    >
    >     pt., 3 kwi 2020 o 19:31 Alex Harui [hidden email]
    > napisał(a):
    >
    >     > I'm not sure what's wrong.  The TourDeJewel example is set up
to only
    >     > build for JS and not SWF.  Does it work?
    >     >
    >     > Also try calling mxmlc from the command-line with the
    > -target=JSRoyale and
    >     > see if that works.
    >     >
    >     > Post the output.  The compiler should be reporting what
targets it is
    >     > building.
    >     >
    >     > -Alex
    >     >
    >     > On 4/3/20, 10:18 AM, "Piotr Zarzycki" <
[hidden email]>
    > wrote:
    >     >
    >     >     Hi Alex,
    >     >
    >     >     Thanks for the comment. It looks like I understand
partially
    > where
    >     > issue
    >     >     is. Let me now redirect discussion into area of how build
    > project using
    >     >     Ant, cause this is actually what interests me. Whenever I
touche
    >     > building
    >     >     project trough ANT it turns out with some problems.
    >     >
    >     >     Let's start from - I'm completely not interested into
building
    > project
    >     > (By
    >     >     project I don't mean SDK, but users project) to SWF. I'm
only
    >     > interested to
    >     >     build project to JS using Royale downloaded from Jenkins
    > (Nightly).
    >     >
    >     >     I have following portion of code with some hardcoded value
taken
    > from
    >     >     build_example.xml script in Royale. I need to build project
    > which has
    >     >     emulation components stuff etc. [1]
    >     >
    >     >     It seems to me that this portion of code building stuff to
both
    > swf
    >     > and js
    >     >     - I wanted to have only JS build - what should I change ?
    >     >
    >     >     I think having this on the list would be beneficial to
others.
    >     >
    >     >     [1]
    >     >
    >
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apache.org%2Fo7n5i&amp;data=02%7C01%7Caharui%40adobe.com%7C983c849ee8df403ff69e08d7d81c3f26%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637215488145524020&amp;sdata=fW1PC1yA7xnlV7IKUKuDucOb1dR0Wjwn%2BumoNVtRSZc%3D&amp;reserved=0
    >     >
    >     >     Thanks,
    >     >     Piotr
    >     >
    >     >     pt., 3 kwi 2020 o 18:40 Alex Harui
[hidden email]
    >     > napisał(a):
    >     >
    >     >     > Download 0.9.6 and see what it has.
    >     >     >
    >     >     > In theory, js-only shouldn't need the swfobject/history
    > folder, but
    >     > js-swf
    >     >     > should.
    >     >     >
    >     >     > -Alex
    >     >     >
    >     >     > On 4/3/20, 6:12 AM, "Piotr Zarzycki" <
    > [hidden email]>
    >     > wrote:
    >     >     >
    >     >     >     Hi Yishay,
    >     >     >
    >     >     >     No changes here. It doesn't build. I don't know why.
I
    > will ask
    >     > more
    >     >     >     question regarding mxmlc in different thread once
above
    > will be
    >     >     > resolved.
    >     >     >
    >     >     >
    >     >     >
    >     >     >     pt., 3 kwi 2020 o 15:04 Yishay Weiss <
    > [hidden email]>
    >     >     > napisał(a):
    >     >     >
    >     >     >     > Hi Piotr,
    >     >     >     >
    >     >     >     > Is HelloWorld example building for you with Ant?
    >     >     >     >
    >     >     >     > Yishay
    >     >     >     >
    >     >     >     > From: Piotr Zarzycki[hidden email]
    >     >     >     > Sent: Friday, April 3, 2020 3:10 PM
    >     >     >     > To: Apache Royale Development[hidden email] [hidden email]>
    >     >     >     > Subject: Royale zip package of Nightly build
missing
    > some empty
    >     >     > folders
    >     >     >     >
    >     >     >     > Hi Guys,
    >     >     >     >
    >     >     >     > One of our project is failing - at least on my
machine
    > cause
    >     > it's
    >     >     > trying to
    >     >     >     > copy folder history
    > "royale-asjs\templates\swfobject\history\"
    >     > <-
    >     >     > This
    >     >     >     > folder doesn't exists in package
    >     > apache-royale-0.9.7-bin-js.zip
    >     >     >     > <
    >     >     >     >
    >     >     >
    >     >
    >
https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapacheroyaleci2.westus2.cloudapp.azure.com%3A8080%2Fjob%2Froyale-asjs_jsonly%2F1194%2Fartifact%2Fout%2Fapache-royale-0.9.7-bin-js.zip&amp;data=02%7C01%7Caharui%40adobe.com%7C983c849ee8df403ff69e08d7d81c3f26%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637215488145524020&amp;sdata=r8eJm%2FB7Sr0FRyI4xFzRfVDe6Rq77VpdHYChONYcaYc%3D&amp;reserved=0
    >     >     >     > >
    >     >     >     > but
    >     >     >     > exists in apache-royale-0.9.7-bin-js.tar.gz
    >     >     >     > <
    >     >     >     >
    >     >     >
    >     >
    >
https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapacheroyaleci2.westus2.cloudapp.azure.com%3A8080%2Fjob%2Froyale-asjs_jsonly%2F1194%2Fartifact%2Fout%2Fapache-royale-0.9.7-bin-js.tar.gz&amp;data=02%7C01%7Caharui%40adobe.com%7C983c849ee8df403ff69e08d7d81c3f26%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637215488145524020&amp;sdata=CxOUGKDe6GlBay4xGmvBYe3CTouVzZMHt%2FfdBMm%2Fiio%3D&amp;reserved=0
    >     >     >     > >
    >     >     >     > -
    >     >     >     > Can someone look into build.xml ? I'm lost with
that
    >     > completely :)
    >     >     >     >
    >     >     >     > Thanks,
    >     >     >     > --
    >     >     >     >
    >     >     >     > Piotr Zarzycki
    >     >     >     >
    >     >     >     >
    >     >     >
    >     >     >     --
    >     >     >
    >     >     >     Piotr Zarzycki
    >     >     >
    >     >     >     Patreon: *
    >     >     >
    >     >
    >
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&amp;data=02%7C01%7Caharui%40adobe.com%7C983c849ee8df403ff69e08d7d81c3f26%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637215488145524020&amp;sdata=SgBDc%2FSSOtTTKYGtPJMckO9cwQRK2206VLmce1tf%2FJY%3D&amp;reserved=0
    >     >     >     <
    >     >     >
    >     >
    >
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&amp;data=02%7C01%7Caharui%40adobe.com%7C983c849ee8df403ff69e08d7d81c3f26%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637215488145524020&amp;sdata=SgBDc%2FSSOtTTKYGtPJMckO9cwQRK2206VLmce1tf%2FJY%3D&amp;reserved=0
    >     >     > >*
    >     >     >
    >     >     >
    >     >     >
    >     >
    >     >     --
    >     >
    >     >     Piotr Zarzycki
    >     >
    >     >     Patreon: *
    >     >
    >
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&amp;data=02%7C01%7Caharui%40adobe.com%7C983c849ee8df403ff69e08d7d81c3f26%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637215488145534014&amp;sdata=mHaYLf70L08Xm01BG9RMMYu69b7WIjm%2B0LcUf9qdrCE%3D&amp;reserved=0
    >     >     <
    >     >
    >
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&amp;data=02%7C01%7Caharui%40adobe.com%7C983c849ee8df403ff69e08d7d81c3f26%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637215488145534014&amp;sdata=mHaYLf70L08Xm01BG9RMMYu69b7WIjm%2B0LcUf9qdrCE%3D&amp;reserved=0
    >     > >*
    >     >
    >     >
    >     >
    >
    >     --
    >
    >     Piotr Zarzycki
    >
    >     Patreon: *
    >
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&amp;data=02%7C01%7Caharui%40adobe.com%7C983c849ee8df403ff69e08d7d81c3f26%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637215488145534014&amp;sdata=mHaYLf70L08Xm01BG9RMMYu69b7WIjm%2B0LcUf9qdrCE%3D&amp;reserved=0
    >     <
    >
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&amp;data=02%7C01%7Caharui%40adobe.com%7C983c849ee8df403ff69e08d7d81c3f26%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637215488145534014&amp;sdata=mHaYLf70L08Xm01BG9RMMYu69b7WIjm%2B0LcUf9qdrCE%3D&amp;reserved=0
    > >*
    >
    >
    >

    --

    Piotr Zarzycki

    Patreon: *
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&amp;data=02%7C01%7Caharui%40adobe.com%7C983c849ee8df403ff69e08d7d81c3f26%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637215488145534014&amp;sdata=mHaYLf70L08Xm01BG9RMMYu69b7WIjm%2B0LcUf9qdrCE%3D&amp;reserved=0
    <
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&amp;data=02%7C01%7Caharui%40adobe.com%7C983c849ee8df403ff69e08d7d81c3f26%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637215488145534014&amp;sdata=mHaYLf70L08Xm01BG9RMMYu69b7WIjm%2B0LcUf9qdrCE%3D&amp;reserved=0
*