Re: DataGridExample build with VS Code

2019-11-15 Thread Takeshita Shoichiro
Hi, I opened an issue for this.  Thanks.

https://github.com/BowlerHatLLC/vscode-as3mxml/issues/427

On Fri, Nov 15, 2019 at 5:39 PM Carlos Rovira 
wrote:

> Hi,
>
> I suppose VSCode fill have some way to copy a folder, maybe as a task that
> could be launched as pre step of a build or something like that. Or maybe a
> VSCode plugin exists for that, don't know. That could be solutions if
> VSCode AS3 can't do it itself, or Josh decide is not a task to be
> implemented there.
>
> just my 2...
>
>
>
> El vie., 15 nov. 2019 a las 6:09, Takeshita Shoichiro ()
> escribió:
>
>> 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 (<
>>> 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
>>>   
>>> 
>>>   

Re: DataGridExample build with VS Code

2019-11-15 Thread Carlos Rovira
Hi,

I suppose VSCode fill have some way to copy a folder, maybe as a task that
could be launched as pre step of a build or something like that. Or maybe a
VSCode plugin exists for that, don't know. That could be solutions if
VSCode AS3 can't do it itself, or Josh decide is not a task to be
implemented there.

just my 2...



El vie., 15 nov. 2019 a las 6:09, Takeshita Shoichiro ()
escribió:

> 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 (<
>> 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 
>> wrote:
>>
>> Just FYI: Moonshine is copying resources to the output if they are
>> pointed out in IDE. We have handled