Re: Migrating Enterprise Flex Application

2018-07-17 Thread Alex Harui
In theory, the build should have created a folder path:

  js/lib/google/closure-library

Does your copy of the older source have that?  If not, try running the build 
against the latest source to see what happens when it tries bring down the 
Google Closure Library.  You shouldn't have to specify -closure-lib if that 
folder path exists.

HTH,
-Alex


On 7/17/18, 4:32 AM, "chembali"  wrote:

I had the source that I had downloaded a week or so ago. I was able to
compile that source and use it successfully. I implemented the stub for an
emulation component and was able to get it working after the build. So the
issue appears to be in the latest branch ( for me at least )



--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-development.20373.n8.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C38b53e61c1284e63255508d5ebd9034e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636674239647362078sdata=L6S%2FdCG8kdfdFDnK7fI9SNCE6X8j%2B%2FxJlkqsAPbH82A%3Dreserved=0




Re: Migrating Enterprise Flex Application

2018-07-17 Thread chembali
I had the source that I had downloaded a week or so ago. I was able to
compile that source and use it successfully. I implemented the stub for an
emulation component and was able to get it working after the build. So the
issue appears to be in the latest branch ( for me at least )



--
Sent from: http://apache-royale-development.20373.n8.nabble.com/


Re: Migrating Enterprise Flex Application

2018-07-17 Thread chembali
I am using Java 1.8.0_161 for compiling and running.



--
Sent from: http://apache-royale-development.20373.n8.nabble.com/


Re: Migrating Enterprise Flex Application

2018-07-17 Thread chembali
It looks like the a couple of JS files are generated before the process
fails.  Compile.PNG
  





--
Sent from: http://apache-royale-development.20373.n8.nabble.com/


Re: Migrating Enterprise Flex Application

2018-07-17 Thread chembali
I switched to the MxRoyale branch and did the build and it the build was
successful. Then I ran the same command to transpile.

C:\devenv\GitHub\royale-asjs\royale-asjs\js\bin\mxmlc -targets=JSRoyale
C:\devenv\ii\trunk\components\ControlsManagement\src-flexui\com\infogix\insight\component\controlsmanagement\exp\view\controls\InsightRoyaleTestUI.mxml
-js-output=C:\devenv\ii\trunk\components\InfogixInsight\build\flex\InfogixInsightJS

It failed with the following message. 

C:\devenv\ii\trunk\components\InfogixInsight>C:\devenv\GitHub\royale-asjs\royale
-asjs\js\bin\mxmlc -targets=JSRoyale
C:\devenv\ii\trunk\components\ControlsManag
ement\src-flexui\com\infogix\insight\component\controlsmanagement\exp\view\contr
ols\InsightRoyaleTestUI.mxml
-js-output=C:\devenv\ii\trunk\components\InfogixIns
ight\build\flex\InfogixInsightJS3
Using Royale Compiler codebase:
C:\devenv\GitHub\royale-asjs\royale-asjs\js\bin\
..\..
Using Royale SDK: C:\devenv\GitHub\royale-asjs\royale-asjs
MXMLJSC
-sdk-js-lib=C:\devenv\GitHub\royale-asjs\royale-asjs\frameworks\js\Royale\genera
ted-sources
-targets=JSRoyale
C:\devenv\ii\trunk\components\ControlsManagement\src-flexui\com\infogix\insight\
component\controlsmanagement\exp\view\controls\InsightRoyaleTestUI.mxml
-js-output=C:\devenv\ii\trunk\components\InfogixInsight\build\flex\InfogixInsigh
tJS3
Compiling file:
C:\devenv\ii\trunk\components\InfogixInsight\build\flex\InfogixI
nsightJS3\bin\js-debug\InsightRoyaleTestUI.js
InsightRoyaleTestUI as: []
InsightRoyaleTestUI mxml: [mx.containers.VBox, mx.controls.Label,
mx.controls.Bu
tton, mx.controls.NumericStepper, mx.controls.Spacer, mx.containers.HBox,
mx.con
trols.LinkButton, mx.containers.Canvas, mx.controls.TextArea,
InsightRoyaleTestU
I, mx.core.Application]
find project folder for
c:\devenv\ii\trunk\components\controlsmanagement\src-fle
xui\com\infogix\insight\component\controlsmanagement\exp\view\controls\insightro
yaletestui.mxml
checking source path
C:\devenv\ii\trunk\components\ControlsManagement\src-flexui
\com\infogix\insight\component\controlsmanagement\exp\view\controls
Internal error: java.lang.RuntimeException: Parameter 'closure-lib' not
specifie
d and closure resources not available in classpath.
org.apache.royale.compiler.i
nternal.codegen.mxml.royale.MXMLRoyalePublisher.publish(MXMLRoyalePublisher.java
:318)org.apache.royale.compiler.clients.MXMLJSCRoyale.compile(MXMLJSCRoyale.java
:384)org.apache.royale.compiler.clients.MXMLJSCRoyale._mainNoExit(MXMLJSCRoyale.
java:240)org.apache.royale.compiler.clients.MXMLJSCRoyale.mainNoExit(MXMLJSCRoya
le.java:197)org.apache.royale.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:
363)org.apache.royale.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:299)org.a
pache.royale.compiler.clients.MXMLJSC.staticMainNoExit(MXMLJSC.java:258)org.apac
he.royale.compiler.clients.MXMLJSC.main(MXMLJSC.java:240)

Then I updated the transpile comand as shown below and ran again.

C:\devenv\GitHub\royale-asjs\royale-asjs\js\bin\mxmlc -closure-lib
C:\devenv\GitHub\royale-asjs\royale-asjs\js\lib\google\closure-compiler
-targets=JSRoyale
C:\devenv\ii\trunk\components\ControlsManagement\src-flexui\com\infogix\insight\component\controlsmanagement\exp\view\controls\InsightRoyaleTestUI.mxml
-js-output=C:\devenv\ii\trunk\components\InfogixInsight\build\flex\InfogixInsightJS

It failed with the below message.

Using Royale Compiler codebase:
C:\devenv\GitHub\royale-asjs\royale-asjs\js\bin\
..\..
Using Royale SDK: C:\devenv\GitHub\royale-asjs\royale-asjs
MXMLJSC
-sdk-js-lib=C:\devenv\GitHub\royale-asjs\royale-asjs\frameworks\js\Royale\genera
ted-sources
-closure-lib
C:\devenv\GitHub\royale-asjs\royale-asjs\js\lib\google\closure-compiler
-targets=JSRoyale
C:\devenv\ii\trunk\components\ControlsManagement\src-flexui\com\infogix\insight\
component\controlsmanagement\exp\view\controls\InsightRoyaleTestUI.mxml
-js-output=C:\devenv\ii\trunk\components\InfogixInsight\build\flex\InfogixInsigh
tJS
Compiling file:
C:\devenv\ii\trunk\components\InfogixInsight\build\flex\InfogixI
nsightJS\bin\js-debug\InsightRoyaleTestUI.js
InsightRoyaleTestUI as: []
InsightRoyaleTestUI mxml: [mx.containers.VBox, mx.controls.Label,
mx.controls.Bu
tton, mx.controls.NumericStepper, mx.controls.Spacer, mx.containers.HBox,
mx.con
trols.LinkButton, mx.containers.Canvas, mx.controls.TextArea,
InsightRoyaleTestU
I, mx.core.Application]
find project folder for
c:\devenv\ii\trunk\components\controlsmanagement\src-fle
xui\com\infogix\insight\component\controlsmanagement\exp\view\controls\insightro
yaletestui.mxml
checking source path
C:\devenv\ii\trunk\components\ControlsManagement\src-flexui
\com\infogix\insight\component\controlsmanagement\exp\view\controls
Internal error: java.lang.IllegalArgumentException: Parameter 'directory' is
not
 a directory
org.apache.commons.io.FileUtils.validateListFilesParameters(FileUti
ls.java:545)org.apache.commons.io.FileUtils.listFiles(FileUtils.java:521)org.apa

Re: Migrating Enterprise Flex Application

2018-07-17 Thread chembali
No I am using the develop branch. I will switch to feature/MxRoyale and see.
Thank you.



--
Sent from: http://apache-royale-development.20373.n8.nabble.com/


Re: Migrating Enterprise Flex Application

2018-07-17 Thread Alex Harui
Are you using the feature/MXRoyale branch in royale-asjs?

On 7/16/18, 11:04 PM, "chembali"  wrote:

Met with the Management. They insisted on POC including the development of 
at
least one emulation component by me in order to proceed with the project. I
am starting on the POC work now. I got the Apache-Royale source tree cloned
and did the build without any issues. I just tried to transpile a simple
mxml file to test my build. Here is the mxml I tried.


https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fns.adobe.com%2Fmxml%2F2009data=02%7C01%7Caharui%40adobe.com%7C38ae9d025c7b4119434f08d5ebab318d%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636674042857406660sdata=fBmYwGgz0TbrtObCqCUf2QcJz34XlcY3UCB6mJwqLks%3Dreserved=0;
xmlns:mx="library://ns.apache.org/royale/mx">

























The command that I used to compile is

C:\devenv\GitHub\royale-asjs\royale-asjs\js\bin\mxmlc -targets=JSRoyale

C:\devenv\ii\trunk\components\ControlsManagement\src-flexui\com\infogix\insight\component\controlsmanagement\exp\view\controls\InsightRoyaleTestUI.mxml

-js-output=C:\devenv\ii\trunk\components\InfogixInsight\build\flex\InfogixInsightJS

It failed with the following error.


C:\devenv\ii\trunk\components\InfogixInsight>C:\devenv\GitHub\royale-asjs\royale
-asjs\js\bin\mxmlc -targets=JSRoyale
C:\devenv\ii\trunk\components\ControlsManag

ement\src-flexui\com\infogix\insight\component\controlsmanagement\exp\view\contr
ols\InsightRoyaleTestUI.mxml
-js-output=C:\devenv\ii\trunk\components\InfogixIns
ight\build\flex\InfogixInsightJS
Using Royale Compiler codebase:
C:\devenv\GitHub\royale-asjs\royale-asjs\js\bin\
..\..
Using Royale SDK: C:\devenv\GitHub\royale-asjs\royale-asjs
MXMLJSC

-sdk-js-lib=C:\devenv\GitHub\royale-asjs\royale-asjs\frameworks\js\Royale\genera
ted-sources
-targets=JSRoyale

C:\devenv\ii\trunk\components\ControlsManagement\src-flexui\com\infogix\insight\
component\controlsmanagement\exp\view\controls\InsightRoyaleTestUI.mxml

-js-output=C:\devenv\ii\trunk\components\InfogixInsight\build\flex\InfogixInsigh
tJS

C:\devenv\ii\trunk\components\InfogixInsight\MXRoyaleJS.swc:defaults.css(65):
co
l: 14 Error: org.apache.royale.core.beads.views.ContainerView is not
defined.



C:\devenv\ii\trunk\components\InfogixInsight\MXRoyaleJS.swc:defaults.css(65):
co
l: 14 Error: org.apache.royale.core.beads.views.ContainerView is not
defined.



C:\devenv\ii\trunk\components\InfogixInsight\MXRoyaleJS.swc:defaults.css(65):
co
l: 14 Error: org.apache.royale.core.beads.views.ContainerView is not
defined.


3.80624289 seconds

Any ideas? Your quick help is much appreciated. 





--
Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-development.20373.n8.nabble.com%2Fdata=02%7C01%7Caharui%40adobe.com%7C38ae9d025c7b4119434f08d5ebab318d%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636674042857406660sdata=y8x2weu3wqq2BWFoszfvIhr47K%2FO4z2pijiPI%2BN1WRI%3Dreserved=0




Re: Migrating Enterprise Flex Application

2018-07-17 Thread chembali
Met with the Management. They insisted on POC including the development of at
least one emulation component by me in order to proceed with the project. I
am starting on the POC work now. I got the Apache-Royale source tree cloned
and did the build without any issues. I just tried to transpile a simple
mxml file to test my build. Here is the mxml I tried.


http://ns.adobe.com/mxml/2009;
xmlns:mx="library://ns.apache.org/royale/mx">

























The command that I used to compile is

C:\devenv\GitHub\royale-asjs\royale-asjs\js\bin\mxmlc -targets=JSRoyale
C:\devenv\ii\trunk\components\ControlsManagement\src-flexui\com\infogix\insight\component\controlsmanagement\exp\view\controls\InsightRoyaleTestUI.mxml
-js-output=C:\devenv\ii\trunk\components\InfogixInsight\build\flex\InfogixInsightJS

It failed with the following error.

C:\devenv\ii\trunk\components\InfogixInsight>C:\devenv\GitHub\royale-asjs\royale
-asjs\js\bin\mxmlc -targets=JSRoyale
C:\devenv\ii\trunk\components\ControlsManag
ement\src-flexui\com\infogix\insight\component\controlsmanagement\exp\view\contr
ols\InsightRoyaleTestUI.mxml
-js-output=C:\devenv\ii\trunk\components\InfogixIns
ight\build\flex\InfogixInsightJS
Using Royale Compiler codebase:
C:\devenv\GitHub\royale-asjs\royale-asjs\js\bin\
..\..
Using Royale SDK: C:\devenv\GitHub\royale-asjs\royale-asjs
MXMLJSC
-sdk-js-lib=C:\devenv\GitHub\royale-asjs\royale-asjs\frameworks\js\Royale\genera
ted-sources
-targets=JSRoyale
C:\devenv\ii\trunk\components\ControlsManagement\src-flexui\com\infogix\insight\
component\controlsmanagement\exp\view\controls\InsightRoyaleTestUI.mxml
-js-output=C:\devenv\ii\trunk\components\InfogixInsight\build\flex\InfogixInsigh
tJS
C:\devenv\ii\trunk\components\InfogixInsight\MXRoyaleJS.swc:defaults.css(65):
co
l: 14 Error: org.apache.royale.core.beads.views.ContainerView is not
defined.


C:\devenv\ii\trunk\components\InfogixInsight\MXRoyaleJS.swc:defaults.css(65):
co
l: 14 Error: org.apache.royale.core.beads.views.ContainerView is not
defined.


C:\devenv\ii\trunk\components\InfogixInsight\MXRoyaleJS.swc:defaults.css(65):
co
l: 14 Error: org.apache.royale.core.beads.views.ContainerView is not
defined.


3.80624289 seconds

Any ideas? Your quick help is much appreciated. 





--
Sent from: http://apache-royale-development.20373.n8.nabble.com/