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 (<[email protected]>) 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 <[email protected]>
> *Reply-To: *"[email protected]" <[email protected]>
> *Date: *Thursday, November 14, 2019 at 6:11 AM
> *To: *"[email protected]" <[email protected]>
> *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 <[email protected]>
> 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
> <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FBowlerHatLLC%2Fvscode-as3mxml%2Fwiki%2Fasconfig.json%23copysourcepathassets&data=02%7C01%7Caharui%40adobe.com%7C154882027f014dc0716508d7690c8dd6%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637093375013476447&sdata=zF5%2FOpQ3k4Bf1xgF3%2B%2FiEKZMQhfcHcUuSFFqhd4pFEM%3D&reserved=0>
>
>
>
> HTH
>
>
>
> Carlos
>
>
>
>
>
> El jue., 14 nov. 2019 a las 13:54, Takeshita Shoichiro (<[email protected]>)
> 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
>
>         <!-- Copy the resources to the compiler output directory -->
>         <plugin>
>           <groupId>org.apache.maven.plugins</groupId>
>           <artifactId>maven-resources-plugin</artifactId>
>           <version>3.1.0</version>
>           <executions>
>             <execution>
>               <id>copy-resources-debug</id>
>               <phase>validate</phase>
>               <goals>
>                 <goal>copy-resources</goal>
>               </goals>
>               <configuration>
>
> <outputDirectory>${compiler.output-dir-debug}</outputDirectory>
>                 <resources>
>                   <resource>
>                     <directory>src/main/resources</directory>
>                     <filtering>true</filtering>
>                   </resource>
>                 </resources>
>               </configuration>
>             </execution>
>            </executions>
>         </plugin>
>
> moonshine:
>
> C:\apache-royale-0.9.7-bin-js\royale-asjs\examples\royale\DataGridExample\DataGridExample.as3proj
>
>   <moonshineResourcePaths>
>     <class path="src/main/resources/assets"/>
>   </moonshineResourcePaths>
>
>
>
> On Thu, Nov 14, 2019 at 4:57 AM Piotr Zarzycki <[email protected]>
> 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 <[email protected]>
> 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 (<[email protected]>)
> 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
> <https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7C154882027f014dc0716508d7690c8dd6%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637093375013486446&sdata=YX1PnYzFz%2FFRr8nzDoW1NOfBE45konyEnhD2CEu1eoo%3D&reserved=0>
>
>
>
>
>
>
> --
>
> *Piotr Zarzycki *
>
> Patreon: *https://www.patreon.com/piotrzarzycki
> <https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com%7C154882027f014dc0716508d7690c8dd6%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637093375013486446&sdata=%2FDizaTeNyMDIvY7SDum7qKfFgbYgF%2F9QTMK4PTQW2l8%3D&reserved=0>*
>
>
>
>
> --
>
> Shoichiro Takeshita
> 武下 祥一郎
>
>
>
>
> --
>
> Carlos Rovira
>
> http://about.me/carlosrovira
> <https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7C154882027f014dc0716508d7690c8dd6%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637093375013496442&sdata=tzVNif0czuHjnttkaiUytLlt9w%2FiNmBR%2BsgyxJkwyZc%3D&reserved=0>
>
>
>
>
>
>
> --
>
> Shoichiro Takeshita
> 武下 祥一郎
>


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

Reply via email to