royale-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alina Kazi" <alina.k...@d-bz.com>
Subject RE: Generating API report for Flex Web Browser application
Date Wed, 28 Feb 2018 03:28:45 GMT
Hi Alex,

Yes I am using Flash Builder.

SHMALIB and MainFlexApp are two separate Projects

Src for SHMALIB is placed into D:/SHMALIB/src

Src for MainFlexApp is D:/Flex/src and the library output file SHMALIB.swc is placed into
D:/Flex/libs

 

SHMALIB (.actionscriptProperties)

 

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<actionScriptProperties mainApplicationPath="SHMALib.as" projectUUID="863559ab-3e7b-475b-a3a4-09f4f76fc0d2"
version="6">

  <compiler additionalCompilerArguments="-locale en_US" autoRSLOrdering="true" copyDependentFiles="false"
fteInMXComponents="false" generateAccessible="false" htmlExpressInstall="true" htmlGenerate="false"
htmlHistoryManagement="false" htmlPlayerVersionCheck="true" includeNetmonSwc="false" outputFolderLocation="D:/Flex/libs"
outputFolderPath="bin-debug" sourceFolderPath="src" strict="true" targetPlayerVersion="0.0.0"
useApolloConfig="false" useDebugRSLSwfs="true" verifyDigests="true" warn="true">

    <compilerSourcePath/>

    <libraryPath defaultLinkType="0">

      <libraryPathEntry kind="4" path="">

        <excludedEntries>

          <libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/flex.swc"
useDefaultLinkType="false"/>

        </excludedEntries>

      </libraryPathEntry>

      <libraryPathEntry kind="1" linkType="1" path="libs"/>

    </libraryPath>

    <sourceAttachmentPath/>

  </compiler>

  <applications>

    <application path="SHMALib.as"/>

  </applications>

  <modules/>

  <buildCSSFiles/>

</actionScriptProperties>

 

SHMALIB (.flexLibProperties)

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<flexLibProperties includeAllClasses="true" version="3">

  <includeClasses/>

  <includeResources/>

  <namespaceManifests/>

</flexLibProperties>

 

Thanks,

Alina

From: Alex Harui [mailto:aharui@adobe.com] 
Sent: Tuesday, February 27, 2018 9:34 PM
To: Alina Kazi
Subject: Re: Generating API report for Flex Web Browser application

 

Hi Alina,

 

When you are not trying to use Royale to generate this API report, how are you building your
current Flex app?  We might need to know that in order to determine what parameters to add
to COMPC.

 

COMPC has additional parameters like -include–sources, include-file, include-classes.  Sometimes,
these are listed in an xml file.  If you are using Flash Builder, for example, then examine
the .flexlibproperties and .actionscriptProperties files in your project folder.

 

Thanks,

-Alex

 

From: Alina Kazi <alina.kazi@d-bz.com>
Date: Tuesday, February 27, 2018 at 3:21 AM
To: 'Alina Kazi' <alina.kazi@d-bz.com>
Cc: Alex Harui <aharui@adobe.com>
Subject: RE: Generating API report for Flex Web Browser application

 

D:\apache-royale-0.9.2-bin-js-swf\royale-asjs\bin>Compc -output "D:\SHMALib.swc"

 -api-report="D:\report.txt" -load-config=D:\apache-flex-sdk-4.16.0-bin\frameworks\flex-config.xml
-source-path="D:\SHMALIB\src"

Using Royale SDK: D:\apache-flex-sdk-4.16.0-bin\royale-asjs

Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8

WARNING: An illegal reflective access operation has occurred

WARNING: Illegal reflective access by com.google.common.base.internal.Finalizer

(file:/D:/apache-royale-0.9.2-bin-js-swf/royale-asjs/lib/external/guava.jar) to

field java.lang.Thread.inheritableThreadLocals

WARNING: Please consider reporting this to the maintainers of com.google.common.

base.internal.Finalizer

WARNING: Use --illegal-access=warn to enable warnings of further illegal reflect

ive access operations

 

Error: nothing was specified to be included in the library.

-Alina

 

From: Alina Kazi [mailto:alina.kazi@d-bz.com] 
Sent: Tuesday, February 27, 2018 2:16 PM
To: 'users@royale.apache.org'
Subject: RE: Generating API report for Flex Web Browser application

 

Hi Alex,

 

I am using Moonshine IDE 1.9.0.

Flex 4.16.0

Apache Royale 0.9.2 Latest Nightly Build

 

Running this Command on Command Prompt:

D:\apache-royale-0.9.2-bin-js-swf\royale-asjs\bin>Compc -output "D:\SHMALib.swc"

 -api-report="D:\report.txt" -load-config=D:\apache-flex-sdk-4.16.0-bin\frameworks\flex-config.xml
-source-path="D:\SHMALIB\src"

Using Royale SDK: D:\apache-flex-sdk-4.16.0-bin\royale-asjs

Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8

WARNING: An illegal reflective access operation has occurred

WARNING: Illegal reflective access by com.google.common.base.internal.Finalizer

(file:/D:/apache-royale-0.9.2-bin-js-swf/royale-asjs/lib/external/guava.jar) to

field java.lang.Thread.inheritableThreadLocals

WARNING: Please consider reporting this to the maintainers of com.google.common.

base.internal.Finalizer

WARNING: Use --illegal-access=warn to enable warnings of further illegal reflect

ive access operations

WARNING: All illegal access operations will be denied in a future release

 

command line Error: unknown configuration variable 'sourceΓÇôpath'.

 

-Alina

From: Alex Harui [mailto:aharui@adobe.com] 
Sent: Tuesday, February 27, 2018 1:26 PM
To: users@royale.apache.org
Subject: Re: Generating API report for Flex Web Browser application

 

Hi Alina,

 

COMPC takes a slightly different set of parameters.  What IDE or build tools are you using
to build it without Royale?  You might need to know what options that build uses.

 

You can try running: 

 

Compc -output "D:\Projects\SHMA\Main\Flex\libs\SHMALib.swc" -api-report="D:\report.txt" -load-config=D:\apache-flex-sdk-4.16.0-bin\frameworks\flex-config.xml
-source–path="D:\Projects\SHMA\Main\Flex\src" or wherever the source code is for the library.

 

HTH,

-Alex

 

From: Alina Kazi <alina.kazi@d-bz.com>
Reply-To: "users@royale.apache.org" <users@royale.apache.org>
Date: Monday, February 26, 2018 at 11:33 PM
To: "users@royale.apache.org" <users@royale.apache.org>
Subject: RE: Generating API report for Flex Web Browser application

 

Hi Alex,

 

For custom SWC, I am using COMPC to get an api-report for SWC

D:\apache-royale-0.9.2-bin-js-swf\royale-asjs\bin>compc "D:\Projects\SHMA\Main\Flex\libs\SHMALib.swc"
-api-report="D:\report.txt" -load-config=D:\apache-flex-sdk-4.16.0-bin\frameworks\flex-config.xml

Error: configuration variable 'output' was not set.

 

 

Thanks,

Alina

From: Alex Harui [mailto:aharui@adobe.com] 
Sent: Tuesday, February 27, 2018 12:27 PM
To: users@royale.apache.org
Subject: Re: Generating API report for Flex Web Browser application

 

Hi Alina,

 

Yes, any SWC that is not in the Flex SDK's frameworks/libs folder needs to be specified as
Piotr describes below.  We want you specify the same MXML file that you use to compile in
the regular Flex SDK.  So if your Application.mxml starts with an mx:Application or s:Application
that’s probably the one to use.  But also, if you have your own custom SWCs, we want you
to use COMPC to get an api-report for those SWCs.  We want this modified Royale compiler to
compile every source file you own so we can see what Flex APIs you are using.

 

HTH,

-Alex

 

From: Piotr Zarzycki <piotrzarzycki21@gmail.com>
Reply-To: "users@royale.apache.org" <users@royale.apache.org>
Date: Monday, February 26, 2018 at 11:19 PM
To: "users@royale.apache.org" <users@royale.apache.org>
Subject: Re: Generating API report for Flex Web Browser application

 

Hi Alina, 

 

In my sense you will have to use -library-path+=path to the library. You have to tell compiler
about that library.

 

Thanks, Piotr

 

2018-02-27 7:57 GMT+01:00 Alina Kazi <alina.kazi@d-bz.com>:

Hi  Alex,

With latest nightly build:

MaskedTextInput , shmReportUtil …. Are Library Project Actionscript Files.

Main Application contains SHMALib.swc file in Libs folder

Error Link:

https://www.dropbox.com/s/p5imt22cuut0ex6/ErrorGeneratingReport.png?dl=0 <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.dropbox.com%2Fs%2Fp5imt22cuut0ex6%2FErrorGeneratingReport.png%3Fdl%3D0&data=02%7C01%7Caharui%40adobe.com%7Cadf8d300cba047277ac508d57db27e5e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636553127940954068&sdata=8f1f9duW2Red4bP77hFTh3mLcCptBmAwd87n1iSkk%2Bs%3D&reserved=0>


 

I have a question that which .mxml file should be used to generate that report?

Applications.mxml is startup file in case of my Project so I’m using it.

 

Please visit reference link and If I’m doing anything wrong please let me know.

 

Thanks,

Alina

 

From: Alex Harui [mailto:aharui@adobe.com] 
Sent: Tuesday, February 27, 2018 12:00 AM


To: users@royale.apache.org
Subject: Re: Generating API report for Flex Web Browser application

 

Hi Alina,

 

I pushed a fix for that.  It might or might not be related to your custom swc.  Get the latest
nightly build and let us know.

 

Also, if you are successful, please use your regular compiler to generate a -link–report.
 That will help us verify that the API report didn't miss anything.

 

Thanks,

-Alex

 

 

From: Alina Kazi <alina.kazi@d-bz.com>
Reply-To: "users@royale.apache.org" <users@royale.apache.org>
Date: Monday, February 26, 2018 at 4:01 AM
To: "users@royale.apache.org" <users@royale.apache.org>
Subject: RE: Generating API report for Flex Web Browser application

 

Generated Report file for Sample Project Successfully.

 

spark.components.Application:minHeight,1

spark.components.Application:minWidth,1

spark.components.Application:mxmlContentFactory,2

spark.components.Label:fontSize,1

spark.components.Label:fontWeight,1

spark.components.Label:horizontalCenter,1

spark.components.Label:text,1

spark.components.Label:textAlign,1

spark.components.Label:verticalCenter,1

 

But while executing Actual Project got Error:

https://www.dropbox.com/s/d25eysllavuy5z4/compile2.png?dl=0 <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.dropbox.com%2Fs%2Fd25eysllavuy5z4%2Fcompile2.png%3Fdl%3D0&data=02%7C01%7Caharui%40adobe.com%7Cffb10a770dcf443c5c5008d57d1257e4%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636552440101509679&sdata=2i28J4zjv1vEQ7sd%2BGfHm%2Bh1FjG%2BP3YdJCc6rGZr3C4%3D&reserved=0>


https://www.dropbox.com/s/49iq74zk6rxcr1y/compile1.png?dl=0 <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.dropbox.com%2Fs%2F49iq74zk6rxcr1y%2Fcompile1.png%3Fdl%3D0&data=02%7C01%7Caharui%40adobe.com%7Cffb10a770dcf443c5c5008d57d1257e4%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636552440101509679&sdata=44tfkOscWyJ%2FH3M30HeJ6dfFE0TlpTMhQ2t%2Bv%2ByuoDg%3D&reserved=0>


 

May be because my Application is dependent to SHMALib(.swc) Library Project (Source Shared
Earlier). 

 

-Alina

 

From: Piotr Zarzycki [mailto:piotrzarzycki21@gmail.com] 
Sent: Monday, February 26, 2018 5:02 PM
To: users@royale.apache.org
Subject: Re: Generating API report for Flex Web Browser application

 

Alex,

 

I did above exercise for Moonshine and got NPE [1]. I used air-config.xml because it is na
Desktop app.

 

[1] https://paste.apache.org/R0Si <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apache.org%2FR0Si&data=02%7C01%7Caharui%40adobe.com%7Cffb10a770dcf443c5c5008d57d1257e4%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636552440101509679&sdata=tFLrK9xsVt57PytwBaNoUJ%2FIPFH7FCHDtfrmJ1sAl3Y%3D&reserved=0>
 

 

Thanks,

Piotr

 

 

2018-02-26 12:56 GMT+01:00 Piotr Zarzycki <piotrzarzycki21@gmail.com>:

Yishay,

 

Thank you so much!! I got it working.

 

Alina,

 

Here is the full instruction.

 

1) Download Apache Royale with SWF support - if you have that is good, if not it's here [1]

2) Download Apache Flex - you have it as I have seen on the screenshot.

3) Launch console and go to the Royale SDK folder

 

"yourpathtosdk\bin\" - In my case it was: "d:\Work\royale_ide\royale_nightly_js_swf\bin\"

 

4) Run following command where you will point to the Flex Browser application in order to
generate report. My command looks like that:

 

mxmlc "c:\Users\piotr\Documents\NewFlexBrowserProject\src\NewFlexBrowserProject.mxml" -api-report="c:\Users\piotr\Documents\NewFlexBrowserProject\report.txt"
-load-config=d:\Work\flex-sdk-4.16.1_adobe_air_28\frameworks\flex-config.xml

 

I generated report for hellow world. Maybe in order to generate report for your application
that console command may be much more sophisticated. Let's see!

 

 

[1] http://apacheroyaleci.westus2.cloudapp.azure.com:8080/job/royale-asjs/lastSuccessfulBuild/artifact/out/
<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapacheroyaleci.westus2.cloudapp.azure.com%3A8080%2Fjob%2Froyale-asjs%2FlastSuccessfulBuild%2Fartifact%2Fout%2F&data=02%7C01%7Caharui%40adobe.com%7Cffb10a770dcf443c5c5008d57d1257e4%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636552440101509679&sdata=O%2BpVQ8OuhB%2FtE4ZdylTSkAQCWsIPBGlr9RgiTjWSWEM%3D&reserved=0>


 

Thanks,

Piotr

 

 

2018-02-26 12:46 GMT+01:00 Yishay Weiss <yishayjobs@hotmail.com>:

Looks like [1] you do need to add compiler option: -api–report=<path to output file>

 

[1] http://apache-royale-users.20374.n8.nabble.com/Substitutes-in-Apache-Royale-tp392p492.html
<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-users.20374.n8.nabble.com%2FSubstitutes-in-Apache-Royale-tp392p492.html&data=02%7C01%7Caharui%40adobe.com%7Cffb10a770dcf443c5c5008d57d1257e4%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636552440101509679&sdata=kda6SpkBgdRqGAeGJ5Db629EAy7KAVbOZKzhzhynRZk%3D&reserved=0>


 

 

From: Piotr Zarzycki <mailto:piotrzarzycki21@gmail.com> 
Sent: Monday, February 26, 2018 1:37 PM


To: users@royale.apache.org
Subject: Re: Generating API report for Flex Web Browser application

 

I have produced with that swf, but what's next? Let's wait for Alex's response [1] 

 

[1] https://paste.apache.org/YEeG <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apache.org%2FYEeG&data=02%7C01%7Caharui%40adobe.com%7Cffb10a770dcf443c5c5008d57d1257e4%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636552440101509679&sdata=8ameYzJ7AloOW4nTa8dqu7zYxwORSQc5sCUqpZDVA%2BY%3D&reserved=0>


 

Thanks,

Piotr

 

2018-02-26 12:32 GMT+01:00 Yishay Weiss <yishayjobs@hotmail.com>:

Alex will know but I don’t think so. I haven’t updated the compiler recently so can’t
test it right now. If you want to test it maybe just create a simple app and replace /Users/aharui/ApacheFlex4.16.0
with your sdk home.

 

 

 

From: Piotr Zarzycki <mailto:piotrzarzycki21@gmail.com> 
Sent: Monday, February 26, 2018 1:25 PM
To: users@royale.apache.org
Subject: Re: Generating API report for Flex Web Browser application

 

Hi Yishay, 

 

bin/mxmlc

<path to app's

.mxml

file>

-load-config=/Users/aharui/ApacheFlex4.16.0/frameworks/flex-config.xml  

 

Do I need some switch for compiler -api-report or something like that ?

 

Thanks,

Piotr

 

 

2018-02-26 12:10 GMT+01:00 Yishay Weiss <yishayjobs@hotmail.com>:

Wasn’t logged in. Here’s [1] the link.

 

[1] http://apache-royale-users.20374.n8.nabble.com/Substitutes-in-Apache-Royale-tp392p489.html
<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-users.20374.n8.nabble.com%2FSubstitutes-in-Apache-Royale-tp392p489.html&data=02%7C01%7Caharui%40adobe.com%7Cffb10a770dcf443c5c5008d57d1257e4%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636552440101509679&sdata=8Tp5%2BFveKS0eoW7D8EovITPQqYrgwDK4P7cW9izXFH8%3D&reserved=0>


 

 

From: Yishay Weiss <mailto:yishayjobs@hotmail.com> 
Sent: Monday, February 26, 2018 12:59 PM
To: users@royale.apache.org
Subject: RE: Generating API report for Flex Web Browser application

 

I couldn’t find a way to link to a nabble post, but this [1] might help (from Substitutes
in Apache Royale).

 

[1] https://paste.apache.org/N2QR <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apache.org%2FN2QR&data=02%7C01%7Caharui%40adobe.com%7Cffb10a770dcf443c5c5008d57d1257e4%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636552440101509679&sdata=VIS8u6EEBWN6jQrFxpttZvAfUCSSKPe3rbrBDU2w7Sg%3D&reserved=0>


 

From: Piotr Zarzycki <mailto:piotrzarzycki21@gmail.com> 
Sent: Monday, February 26, 2018 12:44 PM
To: users@royale.apache.org
Subject: Generating API report for Flex Web Browser application

 

Hi Alex, 

 

I would like to understand how to generate that report. I will go with the console path, because
I think this is something unusual and probably Moonshine is not prepared to do this. I'm writing
this on the users mailing list because Alina is having some problems with that. I wanted to
simplify all of that. Let's start from the beginning. 

 

1) I have created Flex Web browser project using Apache Flex SDK 4.16.1. 

2) I have nightly build of Royale with SWF support [1]

 

What should I type in the console now ?

 

[1] http://apacheroyaleci.westus2.cloudapp.azure.com:8080/job/royale-asjs/lastSuccessfulBuild/artifact/
<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapacheroyaleci.westus2.cloudapp.azure.com%3A8080%2Fjob%2Froyale-asjs%2FlastSuccessfulBuild%2Fartifact%2F&data=02%7C01%7Caharui%40adobe.com%7Cffb10a770dcf443c5c5008d57d1257e4%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636552440101509679&sdata=UtYFFQ90aNB2HU2Vx4t8YAS6Eo2j1ZqVAytujEOgoFM%3D&reserved=0>


 

Thanks,
-- 

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com%7Cffb10a770dcf443c5c5008d57d1257e4%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636552440101509679&sdata=kT0%2B5AGvi0ESSH4m%2FZqaLkb0fyAXZ1djc97kEImLbpg%3D&reserved=0>


 

 





 

-- 

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com%7Cffb10a770dcf443c5c5008d57d1257e4%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636552440101509679&sdata=kT0%2B5AGvi0ESSH4m%2FZqaLkb0fyAXZ1djc97kEImLbpg%3D&reserved=0>


 





 

-- 

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com%7Cffb10a770dcf443c5c5008d57d1257e4%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636552440101509679&sdata=kT0%2B5AGvi0ESSH4m%2FZqaLkb0fyAXZ1djc97kEImLbpg%3D&reserved=0>


 





 

-- 

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com%7Cffb10a770dcf443c5c5008d57d1257e4%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636552440101509679&sdata=kT0%2B5AGvi0ESSH4m%2FZqaLkb0fyAXZ1djc97kEImLbpg%3D&reserved=0>






 

-- 

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com%7Cffb10a770dcf443c5c5008d57d1257e4%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636552440101509679&sdata=kT0%2B5AGvi0ESSH4m%2FZqaLkb0fyAXZ1djc97kEImLbpg%3D&reserved=0>






 

-- 

Piotr Zarzycki 

Patreon: https://www.patreon.com/piotrzarzycki <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com%7Cadf8d300cba047277ac508d57db27e5e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636553127940954068&sdata=zGrfZ2Wj3CLuuW%2B%2BKtUSQF6762Vn0%2BeNjCMlViBMghg%3D&reserved=0>



Mime
View raw message