I think it will be better for me to share my pom's that way you can see all
the compilation options used.  The pom for the parent (FmClient2), the
MainApp and one module (Overview) have been attached to this email.


On Thu, Dec 30, 2021 at 6:22 PM Harbs <harbs.li...@gmail.com> wrote:

> Roman, can you share your full compiler options?
>
> I decided to remove the below settings completely
>> -export-public-symbols=false
>> -prevent-rename-protected-symbols=false
>> -prevent-rename-public-symbols=false
>> -prevent-rename-internal-symbols=false
>>
>>
>> I enabled the below settings
>>
>> -js-dynamic-access-unknown-members=true;
>> -js-default-initializers=true
>>
>>
>> The release version starts up
>>
>>
>>
> Hiedra, that’s great!
>
> On Dec 30, 2021, at 7:15 PM, Roman Isitua <romanisi...@gmail.com> wrote:
>
>
> Yes. I am testing with the sdk compiled on branch ROYALE_INTERFACE_INFO
>
> On Thu, Dec 30, 2021 at 6:10 PM Maria Jose Esteve <mjest...@iest.com>
> wrote:
>
>> Roman, are you testing with the SDK compiled from the Harb branches,
>> ROYALE_INTERFACE_INFO, or from develop?
>>
>>
>>
>> Hiedra
>>
>>
>>
>> *De:* Roman Isitua <romanisi...@gmail.com>
>> *Enviado el:* jueves, 30 de diciembre de 2021 16:52
>> *Para:* users@royale.apache.org
>> *Asunto:* Re: Compiling Modules (was Re: Load time is very slow)
>>
>>
>>
>> I decided to remove the below settings completely
>> -export-public-symbols=false
>> -prevent-rename-protected-symbols=false
>> -prevent-rename-public-symbols=false
>> -prevent-rename-internal-symbols=false
>>
>>
>> I enabled the below settings
>>
>> -js-dynamic-access-unknown-members=true;
>> -js-default-initializers=true
>>
>>
>> The release version starts up
>>
>>
>>
>>
>>
>>
>>
>> <image001.png>
>>
>>
>>
>>
>>
>> <image002.png>
>>
>>
>>
>> However, the moment I launch a module. I get the below error
>>
>>
>>
>> <image003.png>
>>
>>
>>
>>
>>
>> It appears to be failing when I launch the "*Overview*" module
>> (by clicking the Overview side menu).
>>
>>
>>
>> So my current observation is that by retaining only two settings
>>
>>
>>
>> -js-dynamic-access-unknown-members=true;
>> -js-default-initializers=true
>>
>>
>>
>> The release module starts up but the app fails whenever I launch a module.
>>
>>
>>
>> The smallest size settings in the documentation do not work. The app does
>> not start up.
>>
>>
>>
>> -export-public-symbols=false
>> -prevent-rename-protected-symbols=false
>> -prevent-rename-public-symbols=false
>> -prevent-rename-internal-symbols=false
>>
>>
>>
>>
>>
>>
>>
>> The error trace is below
>>
>>
>>
>>
>>
>> Uncaught TypeError: cm.valuesImpl.init is not a function
>>     at Wr.Rr.pl <http://wr.rr.pl/> (Overview.js:792)
>>     at Function.mq.generateMXMLProperties (Overview.js:743)
>>     at Wr.lq.generateMXMLAttributes (Overview.js:551)
>>     at new Wr (Overview.js:810)
>>     at QN.J.loadHandler (FrontEnd.js:1978)
>> 3Overview.js:56 Uncaught TypeError: Cannot read properties of undefined
>> (reading 'prototype')
>>     at P (Overview.js:56)
>>     at VG.convert (FrontEnd.js:910)
>>     at ny (FrontEnd.js:250)
>>     at HTMLElement.iy (FrontEnd.js:125)
>>     at HTMLElement.b (FrontEnd.js:121)
>> FrontEnd.js:1649 Uncaught TypeError: M is not a function
>>     at sM.J.handleMouseOut (FrontEnd.js:1649)
>>     at Function.ny [as googFireListener] (FrontEnd.js:123)
>>     at ny (FrontEnd.js:250)
>>     at HTMLAnchorElement.iy (FrontEnd.js:125)
>>     at HTMLAnchorElement.b (FrontEnd.js:121)
>> FrontEnd.js:1649 Uncaught TypeError: M is not a function
>>     at sM.J.handleMouseOver (FrontEnd.js:1649)
>>     at Function.ny [as googFireListener] (FrontEnd.js:123)
>>     at ny (FrontEnd.js:250)
>>     at HTMLAnchorElement.iy (FrontEnd.js:125)
>>     at HTMLAnchorElement.b (FrontEnd.js:121)
>> J.handleMouseOver @ FrontEnd.js:1649
>> ny @ FrontEnd.js:123
>> ny @ FrontEnd.js:250
>> iy @ FrontEnd.js:125
>> b @ FrontEnd.js:121
>> FrontEnd.js:1649 Uncaught TypeError: M is not a function
>>     at sM.J.handleMouseOut (FrontEnd.js:1649)
>>     at Function.ny [as googFireListener] (FrontEnd.js:123)
>>     at ny (FrontEnd.js:250)
>>     at HTMLAnchorElement.iy (FrontEnd.js:125)
>>     at HTMLAnchorElement.b (FrontEnd.js:121)
>> J.handleMouseOut @ FrontEnd.js:1649
>> ny @ FrontEnd.js:123
>> ny @ FrontEnd.js:250
>> iy @ FrontEnd.js:125
>> b @ FrontEnd.js:121
>> FrontEnd.js:1649 Uncaught TypeError: M is not a function
>>     at sM.J.handleMouseOver (FrontEnd.js:1649)
>>     at Function.ny [as googFireListener] (FrontEnd.js:123)
>>     at ny (FrontEnd.js:250)
>>     at HTMLAnchorElement.iy (FrontEnd.js:125)
>>     at HTMLAnchorElement.b (FrontEnd.js:121)
>> J.handleMouseOver @ FrontEnd.js:1649
>> ny @ FrontEnd.js:123
>> ny @ FrontEnd.js:250
>> iy @ FrontEnd.js:125
>> b @ FrontEnd.js:121
>> FrontEnd.js:1649 Uncaught TypeError: M is not a function
>>     at sM.J.handleMouseOut (FrontEnd.js:1649)
>>     at Function.ny [as googFireListener] (FrontEnd.js:123)
>>     at ny (FrontEnd.js:250)
>>     at HTMLAnchorElement.iy (FrontEnd.js:125)
>>     at HTMLAnchorElement.b (FrontEnd.js:121)
>> J.handleMouseOut @ FrontEnd.js:1649
>> ny @ FrontEnd.js:123
>> ny @ FrontEnd.js:250
>> iy @ FrontEnd.js:125
>> b @ FrontEnd.js:121
>> FrontEnd.js:1649 Uncaught TypeError: M is not a function
>>     at sM.J.handleMouseOver (FrontEnd.js:1649)
>>     at Function.ny [as googFireListener] (FrontEnd.js:123)
>>     at ny (FrontEnd.js:250)
>>     at HTMLAnchorElement.iy (FrontEnd.js:125)
>>     at HTMLAnchorElement.b (FrontEnd.js:121)
>> J.handleMouseOver @ FrontEnd.js:1649
>> ny @ FrontEnd.js:123
>> ny @ FrontEnd.js:250
>> iy @ FrontEnd.js:125
>> b @ FrontEnd.js:121
>> FrontEnd.js:1649 Uncaught TypeError: M is not a function
>>     at sM.J.handleMouseOut (FrontEnd.js:1649)
>>     at Function.ny [as googFireListener] (FrontEnd.js:123)
>>     at ny (FrontEnd.js:250)
>>     at HTMLAnchorElement.iy (FrontEnd.js:125)
>>     at HTMLAnchorElement.b (FrontEnd.js:121)
>> J.handleMouseOut @ FrontEnd.js:1649
>> ny @ FrontEnd.js:123
>> ny @ FrontEnd.js:250
>> iy @ FrontEnd.js:125
>> b @ FrontEnd.js:121
>> FrontEnd.js:1649 Uncaught TypeError: M is not a function
>>     at sM.J.handleMouseOver (FrontEnd.js:1649)
>>     at Function.ny [as googFireListener] (FrontEnd.js:123)
>>     at ny (FrontEnd.js:250)
>>     at HTMLAnchorElement.iy (FrontEnd.js:125)
>>     at HTMLAnchorElement.b (FrontEnd.js:121)
>> J.handleMouseOver @ FrontEnd.js:1649
>> ny @ FrontEnd.js:123
>> ny @ FrontEnd.js:250
>> iy @ FrontEnd.js:125
>> b @ FrontEnd.js:121
>> FrontEnd.js:1649 Uncaught TypeError: M is not a function
>>     at sM.J.handleMouseOut (FrontEnd.js:1649)
>>     at Function.ny [as googFireListener] (FrontEnd.js:123)
>>     at ny (FrontEnd.js:250)
>>     at HTMLAnchorElement.iy (FrontEnd.js:125)
>>     at HTMLAnchorElement.b (FrontEnd.js:121)
>> J.handleMouseOut @ FrontEnd.js:1649
>> ny @ FrontEnd.js:123
>> ny @ FrontEnd.js:250
>> iy @ FrontEnd.js:125
>> b @ FrontEnd.js:121
>>
>>
>>
>> On Thu, Dec 30, 2021 at 4:32 PM Roman Isitua <romanisi...@gmail.com>
>> wrote:
>>
>> I get the same error even when I set
>> the -js-dynamic-access-unknown-members=true;
>>
>>
>>
>> On Thu, Dec 30, 2021 at 4:24 PM Roman Isitua <romanisi...@gmail.com>
>> wrote:
>>
>>
>>
>> Using the below settings,
>>
>> -export-public-symbols=false
>> -prevent-rename-protected-symbols=false
>> -prevent-rename-public-symbols=false
>> -prevent-rename-internal-symbols=false
>> -js-dynamic-access-unknown-members=false;
>>
>> -js-default-initializers=true
>>
>>
>> Debug version runs fine. The release version does not start up
>>
>> <image004.png>
>>
>>
>> I get the below errors
>>
>> Uncaught TypeError: Cannot read properties of undefined (reading 'apply')
>>     at KE.hm (FrontEnd.js:1600)
>>     at XE.M.Fb (FrontEnd.js:943)
>>     at XE.M.uh (FrontEnd.js:937)
>>     at FE.M.na <http://fe.m.na/> (FrontEnd.js:497)
>>     at FE.M.v (FrontEnd.js:497)
>>     at dR.M.S (FrontEnd.js:213)
>>     at dR.Nz.S (FrontEnd.js:217)
>>     at dR.M.start (FrontEnd.js:1396)
>>     at index.html:45
>> :8080/favicon.ico:1 Failed to load resource: the server responded with a
>> status of 404 (Not Found)
>>
>>
>>
>>
>>
>> FrontEnd.js is the start up class for the application. i.e. It implements
>> the Jewel application class.
>>
>>
>>
>>
>>
>>
>>
>> On Thu, Dec 30, 2021 at 3:19 PM Roman Isitua <romanisi...@gmail.com>
>> wrote:
>>
>> Hi Harb,
>>
>>
>>
>> Thanks for your response. I have gone through the documentation. I will
>> do my test again starting with the smallest size option and share my
>> findings.
>>
>>
>>
>> Regards,
>>
>>
>>
>> On Thu, Dec 30, 2021 at 10:59 AM Harbs <harbs.li...@gmail.com> wrote:
>>
>> Sorry for my deal in responding.
>>
>>
>>
>> Let’s take a step back.
>>
>>
>>
>> I’m not sure how you are compiling your modules. I just added some
>> content to the module documentation page which explains what compiler
>> options you need while compiling modules. (It still needs some editing.)
>> https://apache.github.io/royale-docs/features/modules#minification
>>
>>
>>
>> Are you using those options?
>>
>>
>>
>> On Dec 29, 2021, at 2:19 AM, Maria Jose Esteve <mjest...@iest.com> wrote:
>>
>>
>>
>> Hi, Let me join you with these tests....
>>
>>
>>
>> @Harb, I have compiled the SDK from this branch, 
>> feature/ROYALE_INTERFACE_INFO,
>>  and when running in debug I get this error:
>>
>>
>>
>> Message on the PURGE CONSOLE is displayed:
>>
>>
>>
>> Cannot convert  org.apache.royale.reflection.beads.ClassAliasBead  to
>> IBead
>>
>>
>>
>> Message in the IDE Window:
>>
>>
>>
>> Se produjo una excepción: TypeError: Cannot convert [object Object] to
>> IBead
>>
>>   at App.org.apache.royale.core.ElementWrapper.addBead (
>> http://localhost:8080/WNetSuitePlus/org/apache/royale/core/ElementWrapper.js:114:11
>> )
>>
>>     at App.org.apache.royale.core.HTMLElementWrapper.addBead (
>> http://localhost:8080/WNetSuitePlus/org/apache/royale/core/HTMLElementWrapper.js:43:65
>> )
>>
>>     at App.org.apache.royale.jewel.Application.start (
>> http://localhost:8080/WNetSuitePlus/org/apache/royale/jewel/Application.js:246:10
>> )
>>
>>     at App.App_loadXML (
>> http://localhost:8080/WNetSuitePlus/App.js:1681:25)
>>
>>     at
>> org.apache.royale.net.URLLoader.org.apache.royale.events.EventDispatcher.fireListeners
>> (
>> http://localhost:8080/WNetSuitePlus/org/apache/royale/events/EventDispatcher.js:97:23
>> )
>>
>>     at Function.goog.events.EventTarget.dispatchEventInternal_ (
>> http://localhost:8080/WNetSuitePlus/library/closure/goog/events/eventtarget.js:381:26
>> )
>>
>>     at
>> org.apache.royale.net.URLLoader.org.apache.royale.events.EventDispatcher.dispatchEvent
>> (
>> http://localhost:8080/WNetSuitePlus/org/apache/royale/events/EventDispatcher.js:72:37
>> )
>>
>>     at org.apache.royale.net.URLLoader.jsEventHandler (
>> http://localhost:8080/WNetSuitePlus/org/apache/royale/net/URLLoader.js:169:12
>> )
>>
>>
>>
>> Call stack:
>>
>>
>>
>> <image003.png>
>>
>>
>>
>> [INFO] Executing MXMLC in tool group Royale with args: [
>>
>>
>> -load-config=D:\Develop_Royale\Projects\WinPlusWebSuite\royaleapp\royalelogin\target\compile-app-config.xml,
>>
>> -js-default-initializers=true,
>>
>> -source-map=true,
>>
>> -js-dynamic-access-unknown-members=true,
>>
>>
>> -keep-as3-metadata+=Inject,Dispatcher,EventHandler,Event,PostConstruct,PreDestroy,ViewAdded,ViewRemoved,Bindable,Transient,
>>
>> -keep-code-with-metadata=Inject,
>>
>> -show-binding-warnings=false,
>>
>> -export-public-symbols=false,
>>
>> -prevent-rename-protected-symbols=false,
>>
>> -prevent-rename-internal-symbols=false,
>>
>>
>> -js-output=D:\Develop_Royale\Projects\WinPlusWebSuite\royaleapp\royalelogin\target\javascript,
>>
>> -compiler.targets=JSRoyale,
>>
>>
>> D:\Develop_Royale\Projects\WinPlusWebSuite\royaleapp\royalelogin\src\main\royale\App.mxml
>>
>>
>>
>>
>>
>> The release execution does not change, the error is the same as before
>> (SDK compilation from the develop branch):
>>
>>
>>
>> Se produjo una excepción: ReferenceError: Error #1065: Variable
>> com.iest.winplusweb.models.MasterConfigSystemModel is not defined.
>>
>>   at yR (http://localhost:8080/WPWebRelease/App.js:3605:1771)
>>
>>     at Mya (http://localhost:8080/WPWebRelease/App.js:3343:365)
>>
>>     at AR.J.usa (http://localhost:8080/WPWebRelease/App.js:434:441)
>>
>>     at GFa.J.fromTypeDefinition (
>> http://localhost:8080/WPWebRelease/App.js:5706:139)
>>
>>     at Function.YT.getTypeDescriptor (
>> http://localhost:8080/WPWebRelease/App.js:4570:820)
>>
>>     at Function.fX.constructBean (
>> http://localhost:8080/WPWebRelease/App.js:2336:472)
>>
>>     at r$.J.initialize (http://localhost:8080/WPWebRelease/App.js:5041:66
>> )
>>
>>     at OW.J.init (http://localhost:8080/WPWebRelease/App.js:950:452)
>>
>>     at OW.J.u (http://localhost:8080/WPWebRelease/App.js:951:454)
>>
>>     at $$.J.addBead (http://localhost:8080/WPWebRelease/App.js:357:549)
>>
>>
>>
>> The main difference:
>>
>> project compiled from "SDK-develop" runs fine in js-debug and gives error
>> in js-release and, compiled from "SDK-ROYALE_INTERFACE_INFO" does not
>> launch because of conversion error.
>>
>>
>>
>> Hiedra
>>
>>
>>
>> *De:* Roman Isitua <romanisi...@gmail.com>
>> *Enviado el:* martes, 28 de diciembre de 2021 15:55
>> *Para:* users@royale.apache.org
>> *Asunto:* Re: Load time is very slow
>>
>>
>>
>> @Harb
>>
>>
>>
>> I have checked out the feature/ROYALE_INTERFACE_INFO branch and compiled
>> asjs and compiler. I have rebuilt my application with modules in release
>> mode.
>>
>>
>>
>> I get the following error when I attempt to launch a module
>>
>>
>>
>>
>>
>> <image001.png>
>>
>>
>>
>>
>>
>> The module loads fine in debug mode
>>
>>
>>
>> <image002.png>
>>
>>
>>
>>
>>
>> Snippets of the log
>>
>>
>>
>> Overview.js:786 Uncaught TypeError: cm.valuesImpl.init is not a function
>>     at Rr.Mr.yl (Overview.js:786)
>>     at Function.iq.generateMXMLProperties (Overview.js:736)
>>     at Rr.hq.generateMXMLAttributes (Overview.js:546)
>>     at new Rr (Overview.js:804)
>>     at LN.J.loadHandler (FrontEnd.js:1967)
>> Mr.yl @ Overview.js:786
>> iq.generateMXMLProperties @ Overview.js:736
>> hq.generateMXMLAttributes @ Overview.js:546
>> Rr @ Overview.js:804
>> J.loadHandler @ FrontEnd.js:1967
>> load (async)
>> LN.loadModule @ FrontEnd.js:1965
>> dN.loadModule @ FrontEnd.js:2406
>> LD.Un @ FrontEnd.js:1809
>> ny @ FrontEnd.js:123
>> ny @ FrontEnd.js:248
>> iy @ FrontEnd.js:125
>> b @ FrontEnd.js:121
>>
>>
>>
>>
>>
>> I have attached the full log to this email.
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> On Tue, Dec 28, 2021 at 2:51 PM Roman Isitua <romanisi...@gmail.com>
>> wrote:
>>
>> Hi Maria,
>>
>>
>>
>> Prior to starting this mail discussion "Load time is very slow". I can
>> confirm I have only been compiling in debug mode. My target\javascript\bin\
>> only had js-debug. It was after I upgraded my royale sdk from 0.9.7 to
>> 0.9.8 that I compiled in release mode.
>>
>>
>>
>>
>>
>>
>>
>> On Tue, Dec 28, 2021 at 2:24 PM Maria Jose Esteve <mjest...@iest.com>
>> wrote:
>>
>> Hi, @Roman, I think you are doing a double compile can it be? My times
>> are the same as yours and I always compile in debug and release.
>>
>>
>>
>> Look at your target folder " target\javascript\bin\" and if you have two
>> folders: js-debug and js-release you are compiling always double.
>>
>>
>>
>> In my case, the architecture of my project as well as the Maven
>> compilation files (pom.xml) were provided by an external company (we didn't
>> know anything about Maven or Royale at that time) and I understand that
>> this formula was chosen to show us the options we had.
>>
>>
>>
>> A priori and without doing any test as Harb has done, I think that
>> modularity gives us the advantage of compiling parts of the code once and
>> not compiling them again if they are not modified. So far WITH MY
>> COMPILATION TIMES, sometimes more than 1 minute, this is fundamental. But
>> of course, now we have the problem of minification of the modules and it is
>> really a serious problem because it is impossible for us to deploy in
>> production.
>>
>>
>>
>> I will try to separate the compiación realese with a profile and if I
>> succeed I will pass it to you @Roman.
>>
>>
>>
>> @Harb what do you mean by compiling the ROYALE_INTERFACE_INFO branch?
>>
>>
>>
>> Hiedra
>>
>>
>>
>> *De:* Harbs <harbs.li...@gmail.com>
>> *Enviado el:* lunes, 27 de diciembre de 2021 18:32
>> *Para:* users@royale.apache.org
>> *Asunto:* Re: Load time is very slow
>>
>>
>>
>> That doesn’t sound right.
>>
>>
>>
>> Are you sure you’re compiling debug and not release? That sounds like
>> release build times.
>>
>>
>>
>> On Dec 27, 2021, at 3:31 PM, Roman Isitua <romanisi...@gmail.com> wrote:
>>
>>
>>
>>  Wow ! You are using a workstation with a bleeding edge processor.
>>
>>
>>
>>  I just compiled my app now. It took 44 seconds. (First compilation after
>> ide start up.) Subsequently compilations are usually 19s to 20s.
>>
>>
>>
>>  My application code base is very very small compared to yours.  As we
>> continue to add functionality, I expect the compile times to rise.
>>
>>
>>
>>
>>
>>
>>
>>
>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd";>
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <artifactId>FmClient2</artifactId>
    <groupId>com.spacio.fm2</groupId>
    <version>1</version>
  </parent>

  <groupId>com.spacio.fm2.fmclient2</groupId>
  <artifactId>MainApp</artifactId>
  <packaging>swf</packaging>
  <version>1</version>

  <name>MainApp</name>
  <!-- FIXME change it to the project's website -->
  <url>http://www.example.com</url>

  
  <!-- 0.9.8 0.9.9-SNAPSHOT -->

 <properties>      
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>    
   <!--  <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target> -->
  	<royale.framework.version>0.9.9-SNAPSHOT</royale.framework.version>
  	<royale.compiler.version>0.9.9-SNAPSHOT</royale.compiler.version>
  	<royale.typedefs.version>0.9.9-SNAPSHOT</royale.typedefs.version>
        <royale.showbindingWarnings>-compiler.show-binding-warnings=false;</royale.showbindingWarnings>
        <royale.sourceMapSettings>-source-map=false;</royale.sourceMapSettings>
        <royale.jsDefaultInitializers>-js-default-initializers=true;</royale.jsDefaultInitializers>
        <royale.jsDynamicAccessUnknownMembers>-js-dynamic-access-unknown-members=true;</royale.jsDynamicAccessUnknownMembers>
        <royale.targets>JSRoyale</royale.targets>
        <royale.debug>false</royale.debug>
        <royale.mxroyale.css>-compiler.exclude-defaults-css-files=MXRoyale-0.9.8-js.swc:defaults.css;</royale.mxroyale.css>
  <royale.keepAS3MetaData>-keep-as3-metadata+=
	 Inject,
	 Dispatcher,
	 EventHandler,
	 PostConstruct,
	 PreDestroy,
	 ViewAdded,
	 ViewRemoved,
	 Bindable,
	 Transient
 </royale.keepAS3MetaData>
 <royale.export-public-symbols>-export-public-symbols=false;</royale.export-public-symbols>
<royale.prevent-rename-protected-symbols>-prevent-rename-protected-symbols=false;</royale.prevent-rename-protected-symbols>
<royale.prevent-rename-internal-symbols>-prevent-rename-internal-symbols=false;</royale.prevent-rename-internal-symbols>
<royale.prevent-rename-public-symbols>-prevent-rename-public-symbols=false</royale.prevent-rename-public-symbols>
<royale.prevent-rename-public-static-methods>-prevent-rename-public-static-methods=false;</royale.prevent-rename-public-static-methods>
<royale.prevent-rename-public-instance-methods>-prevent-rename-public-instance-methods=false;</royale.prevent-rename-public-instance-methods>
	<local.config>    
	      <!---keep-code-with-metadata=Inject;
	      -compiler.exclude-defaults-css-files=MXRoyale-0.9.9-SNAPSHOT-js.swc:defaults.css;-->
      ${royale.showbindingWarnings}
      ${royale.sourceMapSettings}
      ${royale.jsDefaultInitializers}
      ${royale.jsDynamicAccessUnknownMembers}
		  ${royale.keepAS3MetaData}
     <!--  ${royale.mxroyale.css} -->
      ${royale.export-public-symbols}
      ${royale.prevent-rename-protected-symbols}
      ${royale.prevent-rename-public-symbols}
      ${royale.prevent-rename-internal-symbols}    <!-- not supported in 0.9.7 -->
     <!--  ${royale.prevent-rename-public-static-methods} --> <!-- not supported in 0.9.7 -->
    <!--   ${royale.prevent-rename-public-instance-methods} -->  <!-- not supported in 0.9.7 -->
    </local.config>		
  </properties>

  <build>
     <sourceDirectory>src/main/royale</sourceDirectory>
	 <resources>
	   <resource>
	      <directory>${basedir}/src/resources</directory>
	      <filtering>true</filtering>
	   </resource>
	</resources>
   <plugins>
      <plugin>
        <groupId>org.apache.royale.compiler</groupId>
        <artifactId>royale-maven-plugin</artifactId>
 		<version>${royale.compiler.version}</version>
        <extensions>true</extensions>
        <configuration>
          <mainClass>FrontEnd.mxml</mainClass>
          <targets>${royale.targets}</targets>
          <debug>${royale.debug}</debug>
          <htmlTemplate>${basedir}/src/resources/jewel-index-template.html</htmlTemplate>
		      <allowSubclassOverrides>true</allowSubclassOverrides>
          <additionalCompilerOptions>
			         ${local.config}
		      </additionalCompilerOptions>
        </configuration>
		<dependencies>
			  <dependency>
				<groupId>org.apache.royale.compiler</groupId>
				<artifactId>compiler-jx</artifactId>
				<version>${royale.compiler.version}</version>
			  </dependency>			  
		</dependencies>
      </plugin>
	    <plugin>
        <groupId>org.jboss.errai</groupId>
        <artifactId>cordova-maven-plugin</artifactId>
        <version>4.0.0.Beta3</version>
      </plugin>
  <!-- Makes it possible to run the example directly by running 'mvn tomcat7:run' -->
    <plugin>
      <groupId>org.apache.tomcat.maven</groupId>
      <artifactId>tomcat7-maven-plugin</artifactId>
      <version>2.2</version>
      <configuration>
        <ignorePackaging>true</ignorePackaging>
        <port>8082</port>
    <!--  <directory>${project.basedir}/../client_lib/target/javascript/bin/js-debug/</directory>
        <warSourceDirectory>${project.build.directory}/${project.artifactId}-${project.version}</warSourceDirectory>  -->
    <warSourceDirectory>${project.basedir}/target/javascript/bin/js-debug/</warSourceDirectory>
      </configuration>
    </plugin>
    <!-- clean front end in fm server2 used to be here -->
    
     <!-- copy to fm server2 used to be here -->
     
   </plugins>
  </build>
  <dependencies>
    <!-- 
    <dependency>
      <groupId>org.apache.royale.framework</groupId>
      <artifactId>Jewel</artifactId>
      <version>${royale.typedefs.version}</version>
      <type>swc</type>
      <classifier>js</classifier>
    </dependency>
    <dependency>
      <groupId>org.apache.royale.framework</groupId>
      <artifactId>HTML</artifactId>
      <version>${royale.typedefs.version}</version>
      <type>swc</type>
      <classifier>js</classifier>
    </dependency>
    <dependency>
      <groupId>org.apache.royale.framework</groupId>
      <artifactId>JewelTheme</artifactId>
      <version>${royale.typedefs.version}</version>
      <type>swc</type>
      <scope>theme</scope>
      <classifier>js</classifier>
    </dependency>
     -->
  </dependencies>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd";>
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <artifactId>FmClient2</artifactId>
    <groupId>com.spacio.fm2</groupId>
    <version>1</version>
  </parent>

  <groupId>com.spacio.fm2.fmclient2</groupId>
  <artifactId>Overview</artifactId>
  <packaging>swf</packaging>
  <version>1</version>

  <name>Overview</name>
  <!-- FIXME change it to the project's website -->
  <url>http://www.example.com</url>

 <!-- 0.9.8 0.9.9-SNAPSHOT -->

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <maven.compiler.source>1.7</maven.compiler.source>
    <maven.compiler.target>1.7</maven.compiler.target>
    <royale.compiler.version>0.9.9-SNAPSHOT</royale.compiler.version>
  </properties>

  <dependencies>
    <!-- <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.11</version>
      <scope>test</scope>
    </dependency> -->
    <!-- <dependency>
      <groupId>com.spacio.fm2.fmclient2</groupId>
      <artifactId>MainApp</artifactId>
      <version>1</version>
      <type>swc</type>
      <classifier>js</classifier>
    </dependency> -->
  </dependencies>

  <build>
    <sourceDirectory>src/main/royale</sourceDirectory>
	  <resources>
	   <resource>
	      <directory>${basedir}/src/resources</directory>
	      <filtering>true</filtering>
	   </resource>
	  </resources>
    <plugins>
	    <plugin>
        <groupId>org.apache.royale.compiler</groupId>
        <artifactId>royale-maven-plugin</artifactId>
        <version>${royale.compiler.version}</version>
        <extensions>true</extensions>
        <configuration>
          <mainClass>Overview.mxml</mainClass>
          <targets>JSRoyale</targets>
          <debug>false</debug>
          <additionalCompilerOptions>-source-map=false;-compiler.show-binding-warnings=false;-js-default-initializers=true;-js-dynamic-access-unknown-members=true;
            -export-public-symbols=false;-prevent-rename-protected-symbols=false;-prevent-rename-public-symbols=false;-prevent-rename-internal-symbols=false;
          </additionalCompilerOptions>
        </configuration>
        <dependencies>
			     <dependency>
				     <groupId>org.apache.royale.compiler</groupId>
				     <artifactId>compiler-jx</artifactId>
			   	   <version>${royale.compiler.version}</version>
			     </dependency>
		     </dependencies>
      </plugin>
      <!-- copy module files from Module target folder to Application target folder-->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-resources-plugin</artifactId>
        <version>3.1.0</version>
        <executions>
          <!-- for js-release (copy all to 'modules' folder) -->
          <execution>
            <id>copy-resources-release</id>
            <phase>install</phase>
            <goals>
              <goal>copy-resources</goal>
            </goals>
            <configuration>
              <resources>
                <resource>
                  <directory>${project.basedir}/target/javascript/bin/js-release/</directory>
                </resource>
              </resources>
              <outputDirectory>${project.basedir}/../MainApp/target/javascript/bin/js-release/modules/</outputDirectory>
            </configuration>
          </execution>
          
          <!-- for js-debug (copy all to js-debug but will need a next step later (check **))-->
          <execution>
            <id>copy-resources-debug</id>
            <phase>install</phase>
            <goals>
              <goal>copy-resources</goal>
            </goals>
            <configuration>
              <resources>
                <resource>
                  <directory>${project.basedir}/target/javascript/bin/js-debug/</directory>
                </resource>
              </resources>
              <outputDirectory>${project.basedir}/../MainApp/target/javascript/bin/js-debug/</outputDirectory>
            </configuration>
          </execution>
        </executions>
      </plugin>

      <!-- (**) for js-debug: we need to move two files from 'target/js-debug' to 'target/js-debug/modules' since Application expect to find it there -->
      <plugin>
        <groupId>com.coderplus.maven.plugins</groupId>
        <artifactId>copy-rename-maven-plugin</artifactId>
        <version>1.0</version>
        <executions>
          <execution>
            <id>debug-move-files</id>
            <phase>install</phase>
            <goals>
              <goal>rename</goal>
            </goals>
            <configuration>
              <fileSets>
                <fileSet>
                  <sourceFile>${project.basedir}/../MainApp/target/javascript/bin/js-debug/${project.artifactId}__deps.js</sourceFile>
                  <destinationFile>${project.basedir}/../MainApp/target/javascript/bin/js-debug/modules/${project.artifactId}__deps.js</destinationFile>
                </fileSet>
                <fileSet>
                  <sourceFile>${project.basedir}/../MainApp/target/javascript/bin/js-debug/${project.artifactId}.css</sourceFile>
                  <destinationFile>${project.basedir}/../MainApp/target/javascript/bin/js-debug/modules/${project.artifactId}.css</destinationFile>
                </fileSet>
              </fileSets>
            </configuration>
          </execution>          
        </executions>        
      </plugin>
<!-- 
      <plugin>
        <artifactId>maven-antrun-plugin</artifactId>
        <version>3.0.0</version>
        <executions>
            <execution>               
                    <phase>install</phase>               
                <configuration>
                    <target>                                           
             <copy todir="${project.basedir}/../../FmServer2/src/main/resources/static/js-debug/">
                <fileset dir="${project.basedir}/../MainApp/target/javascript/bin/js-debug/" />
             </copy>
                    </target>
                </configuration>
                <goals>
                    <goal>run</goal>
                </goals>
            </execution>
        </executions>
    </plugin> -->

	</plugins>
  </build>
</project>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd";>
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <artifactId>SpacioFM2</artifactId>
    <groupId>com.spacio.fm2</groupId>
    <version>1.0</version>
  </parent>

  <groupId>com.spacio.fm2</groupId>
  <artifactId>FmClient2</artifactId>
  <packaging>pom</packaging>
  <version>1</version>
  

  <name>FmClient2</name>
  <!-- FIXME change it to the project's website -->
  <url>http://www.example.com</url>

  

<!-- 0.9.8 0.9.9-SNAPSHOT -->
  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>
    <royale.framework.version>0.9.9-SNAPSHOT</royale.framework.version>
	  <royale.compiler.version>0.9.9-SNAPSHOT</royale.compiler.version>
  	<royale.typedefs.version>0.9.9-SNAPSHOT</royale.typedefs.version>
  </properties>

  <dependencies>
    <!-- <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.11</version>
      <scope>test</scope>
    </dependency> -->
	<!-- my client dependencies        
     <dependency>
      <groupId>com.spacio.crm</groupId>
      <artifactId>client_service_lib</artifactId>
      <version>1.0</version>
      <type>swc</type>
      <classifier>js</classifier>                       
    </dependency>
	-->  
	<dependency>
      <groupId>org.apache.royale.framework</groupId>
      <artifactId>Jewel</artifactId>
      <version>${royale.framework.version}</version>
      <type>swc</type>
      <classifier>js</classifier>
    </dependency>
    <dependency>
      <groupId>org.apache.royale.framework</groupId>
      <artifactId>Icons</artifactId>
      <version>${royale.framework.version}</version>
      <type>swc</type>
      <classifier>js</classifier>
    </dependency>
   <!--  <dependency>
      <groupId>org.apache.royale.framework</groupId>
      <artifactId>Jewel-Light-NoFlat-Primary-Red-Theme</artifactId>
      <version>0.9.7</version>
      <type>swc</type>
      <scope>theme</scope>
      <classifier>js</classifier>
    </dependency> -->
    <dependency>
      <groupId>org.apache.royale.framework</groupId>
      <artifactId>JewelTheme</artifactId>
      <version>${royale.framework.version}</version>
      <type>swc</type>
      <scope>theme</scope>
      <classifier>js</classifier>
    </dependency>
    <dependency>
      <groupId>org.apache.royale.framework</groupId>
      <artifactId>Core</artifactId>
      <version>${royale.framework.version}</version>
      <type>swc</type>
      <classifier>js</classifier>
    </dependency>
    <dependency>
      <groupId>org.apache.royale.framework</groupId>
      <artifactId>Basic</artifactId>
      <version>${royale.framework.version}</version>
      <type>swc</type>
      <classifier>js</classifier>
    </dependency>
    <dependency>
      <groupId>org.apache.royale.framework</groupId>
      <artifactId>Language</artifactId>
      <version>${royale.framework.version}</version>
      <type>swc</type>
      <classifier>js</classifier>
    </dependency>
    <dependency>
      <groupId>org.apache.royale.framework</groupId>
      <artifactId>Crux</artifactId>
      <version>${royale.framework.version}</version>
      <type>swc</type>
      <classifier>js</classifier>
    </dependency>
    <dependency>
      <groupId>org.apache.royale.framework</groupId>
      <artifactId>HTML</artifactId>
      <version>${royale.framework.version}</version>
      <type>swc</type>
      <classifier>js</classifier>
    </dependency>
    <dependency>
      <groupId>org.apache.royale.framework</groupId>
      <artifactId>Collections</artifactId>
      <version>${royale.framework.version}</version>
      <type>swc</type>
      <classifier>js</classifier>
    </dependency>
    <dependency>
      <groupId>org.apache.royale.framework</groupId>
      <artifactId>Binding</artifactId>
      <version>${royale.framework.version}</version>
      <type>swc</type>
      <classifier>js</classifier>
    </dependency>
    <!-- <dependency>
      <groupId>org.apache.royale.framework</groupId>
      <artifactId>Graphics</artifactId>
      <version>0.9.7</version>
      <type>swc</type>
      <classifier>js</classifier>
    </dependency> -->
    <dependency>
      <groupId>org.apache.royale.framework</groupId>
      <artifactId>Network</artifactId>
      <version>${royale.framework.version}</version>
      <type>swc</type>
      <classifier>js</classifier>
    </dependency>
    <dependency>
      <groupId>org.apache.royale.framework</groupId>
      <artifactId>Reflection</artifactId>
      <version>${royale.framework.version}</version>
      <type>swc</type>
      <classifier>js</classifier>
    </dependency>
    <!-- only works for 0.9.9-SNAPSHOT and above -->
    <dependency>
      <groupId>org.apache.royale.framework</groupId>
      <artifactId>MXRoyaleBase</artifactId>
      <version>${royale.framework.version}</version>
      <type>swc</type>
      <classifier>js</classifier>
    </dependency>
    <!-- <dependency>
      <groupId>org.apache.royale.framework</groupId>
      <artifactId>MXRoyale</artifactId>
      <version>${royale.framework.version}</version>
      <type>swc</type>
      <classifier>js</classifier>
    </dependency> -->
	<dependency>
          <groupId>com.spacio</groupId>
          <artifactId>spacio_as3</artifactId>
          <version>1.0</version>
          <type>swc</type>
          <classifier>js</classifier>                       
        </dependency>
		<dependency>
          <groupId>com.spacio.fm.estate</groupId>
          <artifactId>fm_estate</artifactId>
          <version>1.0</version>
          <type>swc</type>
          <classifier>js</classifier>                       
        </dependency>
  </dependencies>

  <profiles>
    <profile>
      <id>option-with-swf</id>
      <dependencies>
         <!-- my client dependencies
         <dependency>
          <groupId>com.spacio.crm</groupId>
          <artifactId>client_service_lib</artifactId>
          <version>1.0</version>
          <type>swc</type>
          <classifier>swf</classifier>                       
        </dependency>
		 -->         
        <dependency>
          <groupId>org.apache.royale.framework</groupId>
          <artifactId>Jewel</artifactId>
          <version>${royale.framework.version}</version>
          <type>swc</type>
          <classifier>swf</classifier>
        </dependency>
        <dependency>
          <groupId>org.apache.royale.framework</groupId>
          <artifactId>Icons</artifactId>
          <version>${royale.framework.version}</version>
          <type>swc</type>
          <classifier>swf</classifier>
        </dependency>
		<dependency>
          <groupId>org.apache.royale.framework</groupId>
          <artifactId>Core</artifactId>
          <version>${royale.framework.version}</version>
          <type>swc</type>
          <classifier>swf</classifier>
        </dependency>
        <dependency>
          <groupId>org.apache.royale.framework</groupId>
          <artifactId>Basic</artifactId>
          <version>${royale.framework.version}</version>
          <type>swc</type>
          <classifier>swf</classifier>
        </dependency>
        <dependency>
          <groupId>org.apache.royale.framework</groupId>
          <artifactId>Language</artifactId>
          <version>${royale.framework.version}</version>
          <type>swc</type>
          <classifier>swf</classifier>
        </dependency>
        <dependency>
          <groupId>org.apache.royale.framework</groupId>
          <artifactId>HTML</artifactId>
          <version>${royale.framework.version}</version>
          <type>swc</type>
          <classifier>swf</classifier>
        </dependency>
        <dependency>
          <groupId>org.apache.royale.framework</groupId>
          <artifactId>Collections</artifactId>
          <version>${royale.framework.version}</version>
          <type>swc</type>
          <classifier>swf</classifier>
        </dependency>
        <dependency>
          <groupId>org.apache.royale.framework</groupId>
          <artifactId>Binding</artifactId>
          <version>${royale.framework.version}</version>
          <type>swc</type>
          <classifier>swf</classifier>
        </dependency>
        <dependency>
          <groupId>org.apache.royale.framework</groupId>
          <artifactId>Graphics</artifactId>
          <version>${royale.framework.version}</version>
          <type>swc</type>
          <classifier>swf</classifier>
        </dependency>
        <dependency>
          <groupId>org.apache.royale.framework</groupId>
          <artifactId>Effects</artifactId>
          <version>${royale.framework.version}</version>
          <type>swc</type>
          <classifier>swf</classifier>
        </dependency>
        <dependency>
          <groupId>org.apache.royale.framework</groupId>
          <artifactId>MXRoyale</artifactId>
          <version>${royale.framework.version}</version>
          <type>swc</type>
          <classifier>swf</classifier>
        </dependency>
        <dependency>
          <groupId>org.apache.royale.framework</groupId>
          <artifactId>Text</artifactId>
          <version>${royale.framework.version}</version>
          <type>swc</type>
          <classifier>swf</classifier>
        </dependency>
        <dependency>
          <groupId>org.apache.royale.framework</groupId>
          <artifactId>TLF</artifactId>
          <version>${royale.framework.version}</version>
          <type>swc</type>
          <classifier>swf</classifier>
          </dependency>
          <dependency>
            <groupId>org.apache.royale.framework</groupId>
            <artifactId>SparkRoyale</artifactId>
            <version>${royale.framework.version}</version>
            <type>swc</type>
            <classifier>swf</classifier>
          </dependency>              
        <dependency>
          <groupId>org.apache.royale.framework</groupId>
          <artifactId>Network</artifactId>
          <version>${royale.framework.version}</version>
          <type>swc</type>
          <classifier>swf</classifier>
        </dependency>
        <dependency>
          <groupId>org.apache.royale.framework</groupId>
          <artifactId>Reflection</artifactId>
          <version>${royale.framework.version}</version>
          <type>swc</type>
          <classifier>swf</classifier>
        </dependency>
        <dependency>
          <groupId>org.apache.royale.framework</groupId>
          <artifactId>Crux</artifactId>
          <version>${royale.framework.version}</version>
          <type>swc</type>
          <classifier>swf</classifier>
        </dependency>
        <dependency>
          <groupId>com.spacio</groupId>
          <artifactId>spacio_as3</artifactId>
          <version>1.0</version>
          <type>swc</type>
          <classifier>js</classifier>                       
        </dependency>		
      </dependencies>
    </profile>
  </profiles>

  <!-- 
  <build>
    <pluginManagement>
      <plugins>        
        <plugin>
          <artifactId>maven-clean-plugin</artifactId>
          <version>3.1.0</version>
        </plugin>        
        <plugin>
          <artifactId>maven-resources-plugin</artifactId>
          <version>3.0.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>3.8.0</version>
        </plugin>
        <plugin>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>2.22.1</version>
        </plugin>
        <plugin>
          <artifactId>maven-jar-plugin</artifactId>
          <version>3.0.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-install-plugin</artifactId>
          <version>2.5.2</version>
        </plugin>
        <plugin>
          <artifactId>maven-deploy-plugin</artifactId>
          <version>2.8.2</version>
        </plugin>        
        <plugin>
          <artifactId>maven-site-plugin</artifactId>
          <version>3.7.1</version>
        </plugin>
        <plugin>
          <artifactId>maven-project-info-reports-plugin</artifactId>
          <version>3.0.0</version>
        </plugin>
      </plugins>
    </pluginManagement>
  </build> 
  -->
<modules> 
  <module>MainApp</module>
  <module>Overview</module>  
    <!-- <module>FmPayment</module>    
    <module>Services</module>     
    <module>WorkOrder</module>
    <module>Users</module>
    <module>DemandNotice</module>    
    <module>ResOverview</module>
      
    <module>ResPayment</module>
    <module>ResMessage</module>
    <module>Orders</module>
    <module>Visitors</module>
    <module>Maintenance</module> -->
  </modules>
</project>

Reply via email to