Hi Choirul,
I looked into your project and as I expected you have had problems with
configuration, so there is absolutely nothing wrong with Moonshine. I have
changed your project to follow examples which we have in repository [1].
Look into them to learn how project should be structured.
First of all when you go to the project Settings -> Build Options ->
Additional compiler options you have three option:
1) This one will load theme - this worked in your example ->
-theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css
2) This one load default template which you didn't have in your project
-html-template=src/main/resources/jewel-example-index-template.html
Your error, was caused wrong namespace in your mxml file for fx:script, so
I corrected it. Try to build project again -> link to zip [2]
unexpected. It will be ignored.
:
: <fx:Script>
[1] https://github.com/apache/royale-asjs/tree/develop/examples
[2] https://1drv.ms/u/s!ApVpLyjpHDC2hcFuJipgMij4GA-ghQ
Thanks,
Piotr
wt., 26 mar 2019 o 05:04 choirul anam <[email protected]> napisaĆ(a):
> Piotr, i already use latest Moonshine IDE 2.0, and use the latest night
> build of royale.
> In moonshine IDE when i build and run javascript still error:
>
>
> : Compiling http
> : Using Royale Compiler codebase:
> "D:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs"
> : Using Royale SDK:
> "D:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs"
> : MXMLJSC
> :
>
> -sdk-js-lib=D:\xampp\htdocs\apache-royale-0.9.6-bin-js-swf\royale-asjs\frameworks\js\Royale\generated-sources
> : -load-config+=obj/httpConfig.xml
> : -theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css
> : -html-template=src/main/resources/jewel-example-index-template.html
> : -js-dynamic-access-unknown-members=true
> : -compiler.targets=JSRoyale
> : -js-output=D:\xampp\htdocs\royale\http
> : D:\xampp\htdocs\royale\http\src\http.mxml(6): col: 2 Error: This tag is
> unexpected. It will be ignored.
> :
> : <fx:Script>
> : ^
> :
> : 3.769952296 seconds
>
> Using moonshine, when i build with apache maven, an error occure:
>
>
> : Starting Maven build...
> : Maven path: D:\apache-maven-3.6.0
> : Maven build directory: D:\xampp\htdocs\royale\http
> : Command: D:\apache-maven-3.6.0\bin\mvn.cmd clean install
> : [INFO] Scanning for projects...
> : [INFO]
> ------------------------------------------------------------------------
> : [INFO] BUILD FAILURE
> : [INFO]
> ------------------------------------------------------------------------
> : [INFO] Total time: 0.089 s
> : [INFO] Finished at: 2019-03-26T11:02:29+07:00
> : [INFO]
> ------------------------------------------------------------------------
> : [ERROR] The goal you specified requires a project to execute but there is
> no POM in this directory (D:\xampp\htdocs\royale\http). Please verify you
> invoked Maven from the correct directory. -> [Help 1]
> : [ERROR]
> : [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
> : [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> : [ERROR]
> : [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> : [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException
> : Maven build has been terminated with exit code: 1
>
>
> I host my code on github :
>
> https://github.com/ichsananam/royale_http/
>
> Regards,
> Choirul
>
>
>
> --
> Sent from: http://apache-royale-users.20374.n8.nabble.com/
>
--
Piotr Zarzycki
Patreon: *https://www.patreon.com/piotrzarzycki
<https://www.patreon.com/piotrzarzycki>*