Re: DataGridExample build with VS Code

2019-11-14 Thread Takeshita Shoichiro
Alex, thanks for your explanation.  As suggested by Carlos, I will ask this
on Github VS Code.

2019年11月15日(金) 14:05 Alex Harui :

> Hi T-San,
>
>
>
> The folder structure for examples/royale/DataGridExample are designed to
> support Maven typical folders.  The Ant and Maven scripts that build the
> example have to copy the assets because the src/main/resources folder is
> not one the folders the publisher module copies automatically.
>
>
>
> So, if you are using VSCode with that folder structure, the compiler will
> not copy the assets.  I do not use VSCode so I don’t know if VSCode can be
> taught to automatically copy those folders or not.
>
>
>
> HTH,
>
> -Alex
>
>
>
> *From: *Takeshita Shoichiro 
> *Reply-To: *"users@royale.apache.org" 
> *Date: *Thursday, November 14, 2019 at 4:36 PM
> *To: *"users@royale.apache.org" 
> *Subject: *Re: DataGridExample build with VS Code
>
>
>
> Alex and Harbs,
>
>
>
> I copied the folder structure from the Apache Royale distribution.
>
>
>
> ¥royale-asjs¥examples¥royale¥DataGridExample
>
>
>
> It contains ¥src¥main¥royale
>
> And ¥src¥main¥resources¥assets.
>
>
>
> Under assets folder, jpg files exist.
>
>
>
> I used the provided asconfig.json to build using  VS code with MXML
> extension.
>
>
>
> The problem is ¥resources¥assets folder is not copied into the output
> folder.  If I move assets folder under ¥src¥royale¥main, assets folder is
> copied into the output folder.
>
>
>
> Thanks.
>
>
>
> 2019年11月15日(金) 6:53 Alex Harui :
>
> IIRC, src/main and src/test are maven folder conventions.
>
>
>
> -Alex
>
>
>
> *From: *Harbs 
> *Reply-To: *"users@royale.apache.org" 
> *Date: *Thursday, November 14, 2019 at 1:51 PM
> *To: *"users@royale.apache.org" 
> *Subject: *Re: DataGridExample build with VS Code
>
>
>
> Why are you using main\royale at all?
>
>
>
> All your folders can reside directly in src.
>
>
>
> Harbs
>
> On Nov 14, 2019, at 4:11 PM, Takeshita Shoichiro 
> wrote:
>
>
>
> Carlos, thanks.  I've already tried it.  Unfortunately, not work.
>
>
>
> If I move assets folder under \royale, it worked. (Images are shown)
>
> However, moving \resources\royale under \royale does not work. (Images are
> not shown)
>
>
>
> \src\main\royale
> |
> |-assets
> |-models
> |-products
> |-DataGridExample.mxml
> |-MyInitialView.mxml
>
>
>
> On Thu, Nov 14, 2019 at 11:00 PM Carlos Rovira 
> wrote:
>
> Hi Takeshita,
>
>
>
> maybe this could be what you are looking for? (I'm not using it so don't
> know if it will work) :
>
>
>
>
> https://github.com/BowlerHatLLC/vscode-as3mxml/wiki/asconfig.json#copysourcepathassets
> 
>
>
>
> HTH
>
>
>
> Carlos
>
>
>
>
>
> El jue., 14 nov. 2019 a las 13:54, Takeshita Shoichiro ()
> escribió:
>
> Carlos and Piotr, thanks.
>
> I understand mvn and moonshine both have the configuration to copy
> \resources\assets folder.
>
> I think the similar configuration is put in asconfig.json.  I tried to
> find the information but with no success.
>
>
> 
> mvn:
> \apache-royale-0.9.7-bin-js\royale-asjs\examples\pom.xml
>
> 
> 
>   org.apache.maven.plugins
>   maven-resources-plugin
>   3.1.0
>   
> 
>   copy-resources-debug
>   validate
>   
> copy-resources
>   
>   
>
> ${compiler.output-dir-debug}
> 
>   
> src/main/resources
> true
>   
> 
>   
> 
>
> 
>
> moonshine:
>
> C:\apache-royale-0.9.7-bin-js\royale-asjs\examples\royale\DataGridExample\DataGridExample.as3proj
>
>   
> 
>   
>
>
>
> On Thu, Nov 14, 2019 at 4:57 AM Piotr Zarzycki 
> wrote:
>
> Just FYI: Moonshine is copying resources to the output if they are pointed
> out in IDE. We have handled that on IDE sight.
>
>
>
> śr., 13 lis 2019 o 20:09 Carlos Rovira 
> napisał(a):
>
> Hi,
>
>
>
> in Maven we have setup this kind of copy. So this is external process not
> considered by the compiler, what seems ok, since copying that files does
> not seems a competence of a compiler. Maybe that should be raised in the
> IDEs issues, in this case in VSCode issues in GitHub so Josh could express
> what he thinks his extension should do about this.
>
>
>
>
>
>
>
> El mar., 12 nov. 2019 a las 13:55, Takeshita Shoichiro ()
> escribió:
>
> I tried to build the sample project using VS Code.
>
>
>
> This one.
>
> 

Re: DataGridExample build with VS Code

2019-11-14 Thread Alex Harui
Hi T-San,

The folder structure for examples/royale/DataGridExample are designed to 
support Maven typical folders.  The Ant and Maven scripts that build the 
example have to copy the assets because the src/main/resources folder is not 
one the folders the publisher module copies automatically.

So, if you are using VSCode with that folder structure, the compiler will not 
copy the assets.  I do not use VSCode so I don’t know if VSCode can be taught 
to automatically copy those folders or not.

HTH,
-Alex

From: Takeshita Shoichiro 
Reply-To: "users@royale.apache.org" 
Date: Thursday, November 14, 2019 at 4:36 PM
To: "users@royale.apache.org" 
Subject: Re: DataGridExample build with VS Code

Alex and Harbs,

I copied the folder structure from the Apache Royale distribution.

¥royale-asjs¥examples¥royale¥DataGridExample

It contains ¥src¥main¥royale
And ¥src¥main¥resources¥assets.

Under assets folder, jpg files exist.

I used the provided asconfig.json to build using  VS code with MXML extension.

The problem is ¥resources¥assets folder is not copied into the output folder.  
If I move assets folder under ¥src¥royale¥main, assets folder is copied into 
the output folder.

Thanks.

2019年11月15日(金) 6:53 Alex Harui mailto:aha...@adobe.com>>:
IIRC, src/main and src/test are maven folder conventions.

-Alex

From: Harbs mailto:harbs.li...@gmail.com>>
Reply-To: "users@royale.apache.org" 
mailto:users@royale.apache.org>>
Date: Thursday, November 14, 2019 at 1:51 PM
To: "users@royale.apache.org" 
mailto:users@royale.apache.org>>
Subject: Re: DataGridExample build with VS Code

Why are you using main\royale at all?

All your folders can reside directly in src.

Harbs
On Nov 14, 2019, at 4:11 PM, Takeshita Shoichiro 
mailto:jl03...@gmail.com>> wrote:

Carlos, thanks.  I've already tried it.  Unfortunately, not work.

If I move assets folder under \royale, it worked. (Images are shown)
However, moving \resources\royale under \royale does not work. (Images are not 
shown)

\src\main\royale
|
|-assets
|-models
|-products
|-DataGridExample.mxml
|-MyInitialView.mxml

On Thu, Nov 14, 2019 at 11:00 PM Carlos Rovira 
mailto:carlosrov...@apache.org>> wrote:
Hi Takeshita,

maybe this could be what you are looking for? (I'm not using it so don't know 
if it will work) :

https://github.com/BowlerHatLLC/vscode-as3mxml/wiki/asconfig.json#copysourcepathassets

HTH

Carlos


El jue., 14 nov. 2019 a las 13:54, Takeshita Shoichiro 
(mailto:jl03...@gmail.com>>) escribió:
Carlos and Piotr, thanks.

I understand mvn and moonshine both have the configuration to copy 
\resources\assets folder.

I think the similar configuration is put in asconfig.json.  I tried to find the 
information but with no success.


mvn:
\apache-royale-0.9.7-bin-js\royale-asjs\examples\pom.xml



  org.apache.maven.plugins
  maven-resources-plugin
  3.1.0
  

  copy-resources-debug
  validate
  
copy-resources
  
  
${compiler.output-dir-debug}

  
src/main/resources
true
  

  

   


moonshine:
  
C:\apache-royale-0.9.7-bin-js\royale-asjs\examples\royale\DataGridExample\DataGridExample.as3proj

  

  

On Thu, Nov 14, 2019 at 4:57 AM Piotr Zarzycki 
mailto:piotrzarzyck...@gmail.com>> wrote:
Just FYI: Moonshine is copying resources to the output if they are pointed out 
in IDE. We have handled that on IDE sight.

śr., 13 lis 2019 o 20:09 Carlos Rovira 
mailto:carlosrov...@apache.org>> napisał(a):
Hi,

in Maven we have setup this kind of copy. So this is external process not 
considered by the compiler, what seems ok, since copying that files does not 
seems a competence of a compiler. Maybe that should be raised in the IDEs 
issues, in this case in VSCode issues in GitHub so Josh could express what he 
thinks his extension should do about this.



El mar., 12 nov. 2019 a las 13:55, Takeshita Shoichiro 
(mailto:jl03...@gmail.com>>) escribió:
I tried to build the sample project using VS Code.

This one.
C:\apache-royale-0.9.7-bin-js\royale-asjs\examples\royale\DataGridExample

I copied asconfig.json and src holder in a new folder; then build.

The problem is that the image folder (resource\assets) is not 

Re: DataGridExample build with VS Code

2019-11-14 Thread Takeshita Shoichiro
Alex and Harbs,

I copied the folder structure from the Apache Royale distribution.

¥royale-asjs¥examples¥royale¥DataGridExample

It contains ¥src¥main¥royale
And ¥src¥main¥resources¥assets.

Under assets folder, jpg files exist.

I used the provided asconfig.json to build using  VS code with MXML
extension.

The problem is ¥resources¥assets folder is not copied into the output
folder.  If I move assets folder under ¥src¥royale¥main, assets folder is
copied into the output folder.

Thanks.

2019年11月15日(金) 6:53 Alex Harui :

> IIRC, src/main and src/test are maven folder conventions.
>
>
>
> -Alex
>
>
>
> *From: *Harbs 
> *Reply-To: *"users@royale.apache.org" 
> *Date: *Thursday, November 14, 2019 at 1:51 PM
> *To: *"users@royale.apache.org" 
> *Subject: *Re: DataGridExample build with VS Code
>
>
>
> Why are you using main\royale at all?
>
>
>
> All your folders can reside directly in src.
>
>
>
> Harbs
>
> On Nov 14, 2019, at 4:11 PM, Takeshita Shoichiro 
> wrote:
>
>
>
> Carlos, thanks.  I've already tried it.  Unfortunately, not work.
>
>
>
> If I move assets folder under \royale, it worked. (Images are shown)
>
> However, moving \resources\royale under \royale does not work. (Images are
> not shown)
>
>
>
> \src\main\royale
> |
> |-assets
> |-models
> |-products
> |-DataGridExample.mxml
> |-MyInitialView.mxml
>
>
>
> On Thu, Nov 14, 2019 at 11:00 PM Carlos Rovira 
> wrote:
>
> Hi Takeshita,
>
>
>
> maybe this could be what you are looking for? (I'm not using it so don't
> know if it will work) :
>
>
>
>
> https://github.com/BowlerHatLLC/vscode-as3mxml/wiki/asconfig.json#copysourcepathassets
> 
>
>
>
> HTH
>
>
>
> Carlos
>
>
>
>
>
> El jue., 14 nov. 2019 a las 13:54, Takeshita Shoichiro ()
> escribió:
>
> Carlos and Piotr, thanks.
>
> I understand mvn and moonshine both have the configuration to copy
> \resources\assets folder.
>
> I think the similar configuration is put in asconfig.json.  I tried to
> find the information but with no success.
>
>
> 
> mvn:
> \apache-royale-0.9.7-bin-js\royale-asjs\examples\pom.xml
>
> 
> 
>   org.apache.maven.plugins
>   maven-resources-plugin
>   3.1.0
>   
> 
>   copy-resources-debug
>   validate
>   
> copy-resources
>   
>   
>
> ${compiler.output-dir-debug}
> 
>   
> src/main/resources
> true
>   
> 
>   
> 
>
> 
>
> moonshine:
>
> C:\apache-royale-0.9.7-bin-js\royale-asjs\examples\royale\DataGridExample\DataGridExample.as3proj
>
>   
> 
>   
>
>
>
> On Thu, Nov 14, 2019 at 4:57 AM Piotr Zarzycki 
> wrote:
>
> Just FYI: Moonshine is copying resources to the output if they are pointed
> out in IDE. We have handled that on IDE sight.
>
>
>
> śr., 13 lis 2019 o 20:09 Carlos Rovira 
> napisał(a):
>
> Hi,
>
>
>
> in Maven we have setup this kind of copy. So this is external process not
> considered by the compiler, what seems ok, since copying that files does
> not seems a competence of a compiler. Maybe that should be raised in the
> IDEs issues, in this case in VSCode issues in GitHub so Josh could express
> what he thinks his extension should do about this.
>
>
>
>
>
>
>
> El mar., 12 nov. 2019 a las 13:55, Takeshita Shoichiro ()
> escribió:
>
> I tried to build the sample project using VS Code.
>
>
>
> This one.
>
> C:\apache-royale-0.9.7-bin-js\royale-asjs\examples\royale\DataGridExample
>
>
>
> I copied asconfig.json and src holder in a new folder; then build.
>
>
>
> The problem is that the image folder (resource\assets) is not copied into
> bin\js-debug folder.
>
>
>
> In case using mvn clean install, the image folder is copied into the
> target folder.
>
>
>
> Is this a bug or am I missing something?
>
>
>
> Shoichiro Takeshita
>
>
>
>
> --
>
> Carlos Rovira
>
> http://about.me/carlosrovira
> 
>
>
>
>
>
>
> --
>
> *Piotr Zarzycki *
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> 

Re: DataGridExample build with VS Code

2019-11-14 Thread Alex Harui
IIRC, src/main and src/test are maven folder conventions.

-Alex

From: Harbs 
Reply-To: "users@royale.apache.org" 
Date: Thursday, November 14, 2019 at 1:51 PM
To: "users@royale.apache.org" 
Subject: Re: DataGridExample build with VS Code

Why are you using main\royale at all?

All your folders can reside directly in src.

Harbs
On Nov 14, 2019, at 4:11 PM, Takeshita Shoichiro 
mailto:jl03...@gmail.com>> wrote:

Carlos, thanks.  I've already tried it.  Unfortunately, not work.

If I move assets folder under \royale, it worked. (Images are shown)
However, moving \resources\royale under \royale does not work. (Images are not 
shown)

\src\main\royale
|
|-assets
|-models
|-products
|-DataGridExample.mxml
|-MyInitialView.mxml

On Thu, Nov 14, 2019 at 11:00 PM Carlos Rovira 
mailto:carlosrov...@apache.org>> wrote:
Hi Takeshita,

maybe this could be what you are looking for? (I'm not using it so don't know 
if it will work) :

https://github.com/BowlerHatLLC/vscode-as3mxml/wiki/asconfig.json#copysourcepathassets

HTH

Carlos


El jue., 14 nov. 2019 a las 13:54, Takeshita Shoichiro 
(mailto:jl03...@gmail.com>>) escribió:
Carlos and Piotr, thanks.

I understand mvn and moonshine both have the configuration to copy 
\resources\assets folder.

I think the similar configuration is put in asconfig.json.  I tried to find the 
information but with no success.


mvn:
\apache-royale-0.9.7-bin-js\royale-asjs\examples\pom.xml



  org.apache.maven.plugins
  maven-resources-plugin
  3.1.0
  

  copy-resources-debug
  validate
  
copy-resources
  
  
${compiler.output-dir-debug}

  
src/main/resources
true
  

  

   


moonshine:
  
C:\apache-royale-0.9.7-bin-js\royale-asjs\examples\royale\DataGridExample\DataGridExample.as3proj

  

  

On Thu, Nov 14, 2019 at 4:57 AM Piotr Zarzycki 
mailto:piotrzarzyck...@gmail.com>> wrote:
Just FYI: Moonshine is copying resources to the output if they are pointed out 
in IDE. We have handled that on IDE sight.

śr., 13 lis 2019 o 20:09 Carlos Rovira 
mailto:carlosrov...@apache.org>> napisał(a):
Hi,

in Maven we have setup this kind of copy. So this is external process not 
considered by the compiler, what seems ok, since copying that files does not 
seems a competence of a compiler. Maybe that should be raised in the IDEs 
issues, in this case in VSCode issues in GitHub so Josh could express what he 
thinks his extension should do about this.



El mar., 12 nov. 2019 a las 13:55, Takeshita Shoichiro 
(mailto:jl03...@gmail.com>>) escribió:
I tried to build the sample project using VS Code.

This one.
C:\apache-royale-0.9.7-bin-js\royale-asjs\examples\royale\DataGridExample

I copied asconfig.json and src holder in a new folder; then build.

The problem is that the image folder (resource\assets) is not copied into 
bin\js-debug folder.

In case using mvn clean install, the image folder is copied into the target 
folder.

Is this a bug or am I missing something?

Shoichiro Takeshita


--
Carlos Rovira
http://about.me/carlosrovira



--
Piotr Zarzycki
Patreon: 
https://www.patreon.com/piotrzarzycki


--
Shoichiro Takeshita
武下 祥一郎


--
Carlos Rovira
http://about.me/carlosrovira



--
Shoichiro Takeshita
武下 祥一郎



Re: DataGridExample build with VS Code

2019-11-14 Thread Harbs
Why are you using main\royale at all?

All your folders can reside directly in src.

Harbs
> On Nov 14, 2019, at 4:11 PM, Takeshita Shoichiro  wrote:
> 
> Carlos, thanks.  I've already tried it.  Unfortunately, not work.
> 
> If I move assets folder under \royale, it worked. (Images are shown)  
> However, moving \resources\royale under \royale does not work. (Images are 
> not shown)
> 
> \src\main\royale
> |
> |-assets
> |-models
> |-products
> |-DataGridExample.mxml
> |-MyInitialView.mxml
> 
> On Thu, Nov 14, 2019 at 11:00 PM Carlos Rovira  > wrote:
> Hi Takeshita,
> 
> maybe this could be what you are looking for? (I'm not using it so don't know 
> if it will work) :
> 
> https://github.com/BowlerHatLLC/vscode-as3mxml/wiki/asconfig.json#copysourcepathassets
>  
> 
> 
> HTH
> 
> Carlos
> 
> 
> El jue., 14 nov. 2019 a las 13:54, Takeshita Shoichiro ( >) escribió:
> Carlos and Piotr, thanks.
> 
> I understand mvn and moonshine both have the configuration to copy 
> \resources\assets folder.
> 
> I think the similar configuration is put in asconfig.json.  I tried to find 
> the information but with no success.
> 
> 
> mvn:
> \apache-royale-0.9.7-bin-js\royale-asjs\examples\pom.xml
> 
> 
> 
>   org.apache.maven.plugins
>   maven-resources-plugin
>   3.1.0
>   
> 
>   copy-resources-debug
>   validate
>   
> copy-resources
>   
>   
> 
> ${compiler.output-dir-debug}
> 
>   
> src/main/resources
> true
>   
> 
>   
> 
>
> 
> 
> moonshine:
>   
> C:\apache-royale-0.9.7-bin-js\royale-asjs\examples\royale\DataGridExample\DataGridExample.as3proj
> 
>   
> 
>   
> 
> On Thu, Nov 14, 2019 at 4:57 AM Piotr Zarzycki  > wrote:
> Just FYI: Moonshine is copying resources to the output if they are pointed 
> out in IDE. We have handled that on IDE sight. 
> 
> śr., 13 lis 2019 o 20:09 Carlos Rovira  > napisał(a):
> Hi,
> 
> in Maven we have setup this kind of copy. So this is external process not 
> considered by the compiler, what seems ok, since copying that files does not 
> seems a competence of a compiler. Maybe that should be raised in the IDEs 
> issues, in this case in VSCode issues in GitHub so Josh could express what he 
> thinks his extension should do about this.
> 
> 
> 
> El mar., 12 nov. 2019 a las 13:55, Takeshita Shoichiro ( >) escribió:
> I tried to build the sample project using VS Code.
> 
> This one.
> C:\apache-royale-0.9.7-bin-js\royale-asjs\examples\royale\DataGridExample
> 
> I copied asconfig.json and src holder in a new folder; then build.
> 
> The problem is that the image folder (resource\assets) is not copied into 
> bin\js-debug folder.
> 
> In case using mvn clean install, the image folder is copied into the target 
> folder.
> 
> Is this a bug or am I missing something?
> 
> Shoichiro Takeshita
> 
> 
> -- 
> Carlos Rovira
> http://about.me/carlosrovira 
> 
> 
> 
> -- 
> Piotr Zarzycki 
> 
> Patreon: https://www.patreon.com/piotrzarzycki 
> 
> 
> -- 
> Shoichiro Takeshita
> 武下 祥一郎
> 
> 
> -- 
> Carlos Rovira
> http://about.me/carlosrovira 
> 
> 
> 
> -- 
> Shoichiro Takeshita
> 武下 祥一郎



Re: DataGridExample build with VS Code

2019-11-14 Thread Carlos Rovira
Hi Takeshita,

as I told you I think you should fill an issue in VSCode GitHub page [1]
and talk with Josh about possible implementations.

[1] https://github.com/BowlerHatLLC/vscode-as3mxml/issues



El jue., 14 nov. 2019 a las 17:33, Alex Harui () escribió:

> The transpiler has a “publisher” module that is hard-coded to copy certain
> folder patterns (src/main/royale/assets, for example).  If you do not use
> those patterns, then you have to use some other tool (an IDE, Maven, Ant,
> batch script) to copy assets.
>
>
>
> HTH,
>
> -Alex
>
>
>
> *From: *Takeshita Shoichiro 
> *Reply-To: *"users@royale.apache.org" 
> *Date: *Thursday, November 14, 2019 at 6:11 AM
> *To: *"users@royale.apache.org" 
> *Subject: *Re: DataGridExample build with VS Code
>
>
>
> Carlos, thanks.  I've already tried it.  Unfortunately, not work.
>
>
>
> If I move assets folder under \royale, it worked. (Images are shown)
>
> However, moving \resources\royale under \royale does not work. (Images are
> not shown)
>
>
>
> \src\main\royale
> |
> |-assets
> |-models
> |-products
> |-DataGridExample.mxml
> |-MyInitialView.mxml
>
>
>
> On Thu, Nov 14, 2019 at 11:00 PM Carlos Rovira 
> wrote:
>
> Hi Takeshita,
>
>
>
> maybe this could be what you are looking for? (I'm not using it so don't
> know if it will work) :
>
>
>
>
> https://github.com/BowlerHatLLC/vscode-as3mxml/wiki/asconfig.json#copysourcepathassets
> 
>
>
>
> HTH
>
>
>
> Carlos
>
>
>
>
>
> El jue., 14 nov. 2019 a las 13:54, Takeshita Shoichiro ()
> escribió:
>
> Carlos and Piotr, thanks.
>
> I understand mvn and moonshine both have the configuration to copy
> \resources\assets folder.
>
> I think the similar configuration is put in asconfig.json.  I tried to
> find the information but with no success.
>
>
> 
> mvn:
> \apache-royale-0.9.7-bin-js\royale-asjs\examples\pom.xml
>
> 
> 
>   org.apache.maven.plugins
>   maven-resources-plugin
>   3.1.0
>   
> 
>   copy-resources-debug
>   validate
>   
> copy-resources
>   
>   
>
> ${compiler.output-dir-debug}
> 
>   
> src/main/resources
> true
>   
> 
>   
> 
>
> 
>
> moonshine:
>
> C:\apache-royale-0.9.7-bin-js\royale-asjs\examples\royale\DataGridExample\DataGridExample.as3proj
>
>   
> 
>   
>
>
>
> On Thu, Nov 14, 2019 at 4:57 AM Piotr Zarzycki 
> wrote:
>
> Just FYI: Moonshine is copying resources to the output if they are pointed
> out in IDE. We have handled that on IDE sight.
>
>
>
> śr., 13 lis 2019 o 20:09 Carlos Rovira 
> napisał(a):
>
> Hi,
>
>
>
> in Maven we have setup this kind of copy. So this is external process not
> considered by the compiler, what seems ok, since copying that files does
> not seems a competence of a compiler. Maybe that should be raised in the
> IDEs issues, in this case in VSCode issues in GitHub so Josh could express
> what he thinks his extension should do about this.
>
>
>
>
>
>
>
> El mar., 12 nov. 2019 a las 13:55, Takeshita Shoichiro ()
> escribió:
>
> I tried to build the sample project using VS Code.
>
>
>
> This one.
>
> C:\apache-royale-0.9.7-bin-js\royale-asjs\examples\royale\DataGridExample
>
>
>
> I copied asconfig.json and src holder in a new folder; then build.
>
>
>
> The problem is that the image folder (resource\assets) is not copied into
> bin\js-debug folder.
>
>
>
> In case using mvn clean install, the image folder is copied into the
> target folder.
>
>
>
> Is this a bug or am I missing something?
>
>
>
> Shoichiro Takeshita
>
>
>
>
> --
>
> Carlos Rovira
>
> http://about.me/carlosrovira
> 
>
>
>
>
>
>
> --
>
> *Piotr Zarzycki *
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> *
>
>
>
>
> --
>
> Shoichiro Takeshita
> 武下 祥一郎
>
>
>
>
> --
>
> 

Re: DataGridExample build with VS Code

2019-11-14 Thread Alex Harui
The transpiler has a “publisher” module that is hard-coded to copy certain 
folder patterns (src/main/royale/assets, for example).  If you do not use those 
patterns, then you have to use some other tool (an IDE, Maven, Ant, batch 
script) to copy assets.

HTH,
-Alex

From: Takeshita Shoichiro 
Reply-To: "users@royale.apache.org" 
Date: Thursday, November 14, 2019 at 6:11 AM
To: "users@royale.apache.org" 
Subject: Re: DataGridExample build with VS Code

Carlos, thanks.  I've already tried it.  Unfortunately, not work.

If I move assets folder under \royale, it worked. (Images are shown)
However, moving \resources\royale under \royale does not work. (Images are not 
shown)

\src\main\royale
|
|-assets
|-models
|-products
|-DataGridExample.mxml
|-MyInitialView.mxml

On Thu, Nov 14, 2019 at 11:00 PM Carlos Rovira 
mailto:carlosrov...@apache.org>> wrote:
Hi Takeshita,

maybe this could be what you are looking for? (I'm not using it so don't know 
if it will work) :

https://github.com/BowlerHatLLC/vscode-as3mxml/wiki/asconfig.json#copysourcepathassets

HTH

Carlos


El jue., 14 nov. 2019 a las 13:54, Takeshita Shoichiro 
(mailto:jl03...@gmail.com>>) escribió:
Carlos and Piotr, thanks.

I understand mvn and moonshine both have the configuration to copy 
\resources\assets folder.

I think the similar configuration is put in asconfig.json.  I tried to find the 
information but with no success.


mvn:
\apache-royale-0.9.7-bin-js\royale-asjs\examples\pom.xml



  org.apache.maven.plugins
  maven-resources-plugin
  3.1.0
  

  copy-resources-debug
  validate
  
copy-resources
  
  
${compiler.output-dir-debug}

  
src/main/resources
true
  

  

   


moonshine:
  
C:\apache-royale-0.9.7-bin-js\royale-asjs\examples\royale\DataGridExample\DataGridExample.as3proj

  

  

On Thu, Nov 14, 2019 at 4:57 AM Piotr Zarzycki 
mailto:piotrzarzyck...@gmail.com>> wrote:
Just FYI: Moonshine is copying resources to the output if they are pointed out 
in IDE. We have handled that on IDE sight.

śr., 13 lis 2019 o 20:09 Carlos Rovira 
mailto:carlosrov...@apache.org>> napisał(a):
Hi,

in Maven we have setup this kind of copy. So this is external process not 
considered by the compiler, what seems ok, since copying that files does not 
seems a competence of a compiler. Maybe that should be raised in the IDEs 
issues, in this case in VSCode issues in GitHub so Josh could express what he 
thinks his extension should do about this.



El mar., 12 nov. 2019 a las 13:55, Takeshita Shoichiro 
(mailto:jl03...@gmail.com>>) escribió:
I tried to build the sample project using VS Code.

This one.
C:\apache-royale-0.9.7-bin-js\royale-asjs\examples\royale\DataGridExample

I copied asconfig.json and src holder in a new folder; then build.

The problem is that the image folder (resource\assets) is not copied into 
bin\js-debug folder.

In case using mvn clean install, the image folder is copied into the target 
folder.

Is this a bug or am I missing something?

Shoichiro Takeshita


--
Carlos Rovira
http://about.me/carlosrovira



--

Piotr Zarzycki

Patreon: 
https://www.patreon.com/piotrzarzycki


--
Shoichiro Takeshita
武下 祥一郎


--
Carlos Rovira
http://about.me/carlosrovira



--
Shoichiro Takeshita
武下 祥一郎


Re: DataGridExample build with VS Code

2019-11-14 Thread Takeshita Shoichiro
Carlos, thanks.  I've already tried it.  Unfortunately, not work.

If I move assets folder under \royale, it worked. (Images are shown)
However, moving \resources\royale under \royale does not work. (Images are
not shown)

\src\main\royale
|
|-assets
|-models
|-products
|-DataGridExample.mxml
|-MyInitialView.mxml

On Thu, Nov 14, 2019 at 11:00 PM Carlos Rovira 
wrote:

> Hi Takeshita,
>
> maybe this could be what you are looking for? (I'm not using it so don't
> know if it will work) :
>
>
> https://github.com/BowlerHatLLC/vscode-as3mxml/wiki/asconfig.json#copysourcepathassets
>
> HTH
>
> Carlos
>
>
> El jue., 14 nov. 2019 a las 13:54, Takeshita Shoichiro ()
> escribió:
>
>> Carlos and Piotr, thanks.
>>
>> I understand mvn and moonshine both have the configuration to copy
>> \resources\assets folder.
>>
>> I think the similar configuration is put in asconfig.json.  I tried to
>> find the information but with no success.
>>
>>
>> 
>> mvn:
>> \apache-royale-0.9.7-bin-js\royale-asjs\examples\pom.xml
>>
>> 
>> 
>>   org.apache.maven.plugins
>>   maven-resources-plugin
>>   3.1.0
>>   
>> 
>>   copy-resources-debug
>>   validate
>>   
>> copy-resources
>>   
>>   
>>
>> ${compiler.output-dir-debug}
>> 
>>   
>> src/main/resources
>> true
>>   
>> 
>>   
>> 
>>
>> 
>>
>> moonshine:
>>
>> C:\apache-royale-0.9.7-bin-js\royale-asjs\examples\royale\DataGridExample\DataGridExample.as3proj
>>
>>   
>> 
>>   
>>
>> On Thu, Nov 14, 2019 at 4:57 AM Piotr Zarzycki 
>> wrote:
>>
>>> Just FYI: Moonshine is copying resources to the output if they are
>>> pointed out in IDE. We have handled that on IDE sight.
>>>
>>> śr., 13 lis 2019 o 20:09 Carlos Rovira 
>>> napisał(a):
>>>
 Hi,

 in Maven we have setup this kind of copy. So this is external process
 not considered by the compiler, what seems ok, since copying that files
 does not seems a competence of a compiler. Maybe that should be raised in
 the IDEs issues, in this case in VSCode issues in GitHub so Josh could
 express what he thinks his extension should do about this.



 El mar., 12 nov. 2019 a las 13:55, Takeshita Shoichiro (<
 jl03...@gmail.com>) escribió:

> I tried to build the sample project using VS Code.
>
> This one.
>
> C:\apache-royale-0.9.7-bin-js\royale-asjs\examples\royale\DataGridExample
>
> I copied asconfig.json and src holder in a new folder; then build.
>
> The problem is that the image folder (resource\assets) is not copied
> into bin\js-debug folder.
>
> In case using mvn clean install, the image folder is copied into the
> target folder.
>
> Is this a bug or am I missing something?
>
> Shoichiro Takeshita
>


 --
 Carlos Rovira
 http://about.me/carlosrovira


>>>
>>> --
>>>
>>> Piotr Zarzycki
>>>
>>> Patreon: *https://www.patreon.com/piotrzarzycki
>>> *
>>>
>>
>>
>> --
>> Shoichiro Takeshita
>> 武下 祥一郎
>>
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>
>

-- 
Shoichiro Takeshita
武下 祥一郎


Re: Rename of Jewel "Slider" to "HSlider"

2019-11-14 Thread Carlos Rovira
Hi Piotr,

as Greg introduced VSlider a refactor was needed. When I started "Slider" I
think in a bead or property to get H or V orientations, but implementation
reality in JS to make it work in most of the browsers makes it difficult to
abstract implement. Since other sets has already HSlider/VSlider, this
seems the most logic way to go :)

Another thing I consider was to maintain Slider name as an Alias through
library catalog, but since we are under 1.0, I think is better to force the
are name,

great you like it! :)

Carlos



El jue., 14 nov. 2019 a las 7:11, Piotr Zarzycki ()
escribió:

> Hi Carlos,
>
> Good change in my opinion. I was thinking about the same some time ago ;)
>
> Thanks,
> Piotr
>
> On Thu, Nov 14, 2019, 12:13 AM Carlos Rovira 
> wrote:
>
>> Hi,
>>
>> for anyone using Jewel Slider, just notice that I rename this component
>> to HSlider since we now have a VSlider too, in order to have consistency in
>> names.
>>
>> Sorry for any inconvenience, but seems a pretty simple refactor in your
>> code.
>>
>> Thanks
>>
>> --
>> Carlos Rovira
>> http://about.me/carlosrovira
>>
>>

-- 
Carlos Rovira
http://about.me/carlosrovira