DataGridExample build with VS Code

classic Classic list List threaded Threaded
18 messages Options
Reply | Threaded
Open this post in threaded view
|

DataGridExample build with VS Code

T-san
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
Reply | Threaded
Open this post in threaded view
|

Re: DataGridExample build with VS Code

Carlos Rovira-2
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 (<[hidden email]>) 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


--
Reply | Threaded
Open this post in threaded view
|

Re: DataGridExample build with VS Code

Piotr Zarzycki
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 <[hidden email]> 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 (<[hidden email]>) 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


--


--

Piotr Zarzycki 

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

Reply | Threaded
Open this post in threaded view
|

Re: DataGridExample build with VS Code

T-san
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 <[hidden email]> 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 <[hidden email]> 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 (<[hidden email]>) 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


--


--

Piotr Zarzycki 

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



--
Shoichiro Takeshita
武下 祥一郎
Reply | Threaded
Open this post in threaded view
|

Re: DataGridExample build with VS Code

Carlos Rovira-2
Hi Takeshita,

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


HTH

Carlos


El jue., 14 nov. 2019 a las 13:54, Takeshita Shoichiro (<[hidden email]>) 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 <[hidden email]> 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 <[hidden email]> 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 (<[hidden email]>) 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


--


--

Piotr Zarzycki 

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



--
Shoichiro Takeshita
武下 祥一郎


--
Reply | Threaded
Open this post in threaded view
|

Re: DataGridExample build with VS Code

T-san
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 <[hidden email]> 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) :


HTH

Carlos


El jue., 14 nov. 2019 a las 13:54, Takeshita Shoichiro (<[hidden email]>) 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 <[hidden email]> 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 <[hidden email]> 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 (<[hidden email]>) 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


--


--

Piotr Zarzycki 

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



--
Shoichiro Takeshita
武下 祥一郎


--


--
Shoichiro Takeshita
武下 祥一郎
Reply | Threaded
Open this post in threaded view
|

Re: DataGridExample build with VS Code

Alex Harui-2

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 <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Thursday, November 14, 2019 at 6:11 AM
To: "[hidden email]" <[hidden email]>
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 <[hidden email]> 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) :

 

 

HTH

 

Carlos

 

 

El jue., 14 nov. 2019 a las 13:54, Takeshita Shoichiro (<[hidden email]>) 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 <[hidden email]> 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 <[hidden email]> 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 (<[hidden email]>) 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

 


 

--

Piotr Zarzycki 

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


 

--

Shoichiro Takeshita
武下 祥一郎


 

--

Carlos Rovira

 


 

--

Shoichiro Takeshita
武下 祥一郎

Reply | Threaded
Open this post in threaded view
|

Re: DataGridExample build with VS Code

Carlos Rovira-2
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.




El jue., 14 nov. 2019 a las 17:33, Alex Harui (<[hidden email]>) 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 <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Thursday, November 14, 2019 at 6:11 AM
To: "[hidden email]" <[hidden email]>
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 <[hidden email]> 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) :

 

 

HTH

 

Carlos

 

 

El jue., 14 nov. 2019 a las 13:54, Takeshita Shoichiro (<[hidden email]>) 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 <[hidden email]> 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 <[hidden email]> 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 (<[hidden email]>) 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

 


 

--

Piotr Zarzycki 

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


 

--

Shoichiro Takeshita
武下 祥一郎


 

--

Carlos Rovira

 


 

--

Shoichiro Takeshita
武下 祥一郎



--
Reply | Threaded
Open this post in threaded view
|

Re: DataGridExample build with VS Code

Harbs
In reply to this post by T-san
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 <[hidden email]> 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 <[hidden email]> 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) :


HTH

Carlos


El jue., 14 nov. 2019 a las 13:54, Takeshita Shoichiro (<[hidden email]>) 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 <[hidden email]> 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 <[hidden email]> 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 (<[hidden email]>) 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


--


--

Piotr Zarzycki 

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



--
Shoichiro Takeshita
武下 祥一郎


--


--
Shoichiro Takeshita
武下 祥一郎

Reply | Threaded
Open this post in threaded view
|

Re: DataGridExample build with VS Code

Alex Harui-2

IIRC, src/main and src/test are maven folder conventions.

 

-Alex

 

From: Harbs <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Thursday, November 14, 2019 at 1:51 PM
To: "[hidden email]" <[hidden email]>
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 <[hidden email]> 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 <[hidden email]> 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) :

 

 

HTH

 

Carlos

 

 

El jue., 14 nov. 2019 a las 13:54, Takeshita Shoichiro (<[hidden email]>) 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 <[hidden email]> 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 <[hidden email]> 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 (<[hidden email]>) 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

 


 

--

Piotr Zarzycki 

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


 

--

Shoichiro Takeshita
武下 祥一郎


 

--

Carlos Rovira

 


 

--

Shoichiro Takeshita
武下 祥一郎

 

Reply | Threaded
Open this post in threaded view
|

Re: DataGridExample build with VS Code

T-san
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 <[hidden email]>:

IIRC, src/main and src/test are maven folder conventions.

 

-Alex

 

From: Harbs <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Thursday, November 14, 2019 at 1:51 PM
To: "[hidden email]" <[hidden email]>
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 <[hidden email]> 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 <[hidden email]> 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) :

 

 

HTH

 

Carlos

 

 

El jue., 14 nov. 2019 a las 13:54, Takeshita Shoichiro (<[hidden email]>) 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 <[hidden email]> 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 <[hidden email]> 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 (<[hidden email]>) 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

 


 

--

Piotr Zarzycki 

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


 

--

Shoichiro Takeshita
武下 祥一郎


 

--

Carlos Rovira

 


 

--

Shoichiro Takeshita
武下 祥一郎

 

--
Shoichiro Takeshita
武下 祥一郎
Reply | Threaded
Open this post in threaded view
|

Re: DataGridExample build with VS Code

Alex Harui-2

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 <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Thursday, November 14, 2019 at 4:36 PM
To: "[hidden email]" <[hidden email]>
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.

 

20191115() 6:53 Alex Harui <[hidden email]>:

IIRC, src/main and src/test are maven folder conventions.

 

-Alex

 

From: Harbs <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Thursday, November 14, 2019 at 1:51 PM
To: "[hidden email]" <[hidden email]>
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 <[hidden email]> 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 <[hidden email]> 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) :

 

 

HTH

 

Carlos

 

 

El jue., 14 nov. 2019 a las 13:54, Takeshita Shoichiro (<[hidden email]>) 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 <[hidden email]> 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 <[hidden email]> 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 (<[hidden email]>) 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

 


 

--

Piotr Zarzycki 

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


 

--

Shoichiro Takeshita
武下 祥一郎


 

--

Carlos Rovira

 


 

--

Shoichiro Takeshita
武下 祥一郎

 

--

Shoichiro Takeshita
武下 祥一郎

Reply | Threaded
Open this post in threaded view
|

Re: DataGridExample build with VS Code

T-san
Alex, thanks for your explanation.  As suggested by Carlos, I will ask this on Github VS Code.

2019年11月15日(金) 14:05 Alex Harui <[hidden email]>:

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 <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Thursday, November 14, 2019 at 4:36 PM
To: "[hidden email]" <[hidden email]>
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.

 

20191115() 6:53 Alex Harui <[hidden email]>:

IIRC, src/main and src/test are maven folder conventions.

 

-Alex

 

From: Harbs <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Thursday, November 14, 2019 at 1:51 PM
To: "[hidden email]" <[hidden email]>
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 <[hidden email]> 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 <[hidden email]> 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) :

 

 

HTH

 

Carlos

 

 

El jue., 14 nov. 2019 a las 13:54, Takeshita Shoichiro (<[hidden email]>) 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 <[hidden email]> 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 <[hidden email]> 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 (<[hidden email]>) 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

 


 

--

Piotr Zarzycki 

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


 

--

Shoichiro Takeshita
武下 祥一郎


 

--

Carlos Rovira

 


 

--

Shoichiro Takeshita
武下 祥一郎

 

--

Shoichiro Takeshita
武下 祥一郎

--
Shoichiro Takeshita
武下 祥一郎
Reply | Threaded
Open this post in threaded view
|

Re: DataGridExample build with VS Code

Carlos Rovira-2
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&MXML 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 (<[hidden email]>) 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 <[hidden email]>:

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 <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Thursday, November 14, 2019 at 4:36 PM
To: "[hidden email]" <[hidden email]>
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.

 

20191115() 6:53 Alex Harui <[hidden email]>:

IIRC, src/main and src/test are maven folder conventions.

 

-Alex

 

From: Harbs <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Thursday, November 14, 2019 at 1:51 PM
To: "[hidden email]" <[hidden email]>
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 <[hidden email]> 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 <[hidden email]> 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) :

 

 

HTH

 

Carlos

 

 

El jue., 14 nov. 2019 a las 13:54, Takeshita Shoichiro (<[hidden email]>) 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 <[hidden email]> 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 <[hidden email]> 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 (<[hidden email]>) 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

 


 

--

Piotr Zarzycki 

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


 

--

Shoichiro Takeshita
武下 祥一郎


 

--

Carlos Rovira

 


 

--

Shoichiro Takeshita
武下 祥一郎

 

--

Shoichiro Takeshita
武下 祥一郎

--
Shoichiro Takeshita
武下 祥一郎


--
Reply | Threaded
Open this post in threaded view
|

Re: DataGridExample build with VS Code

T-san
Hi, I opened an issue for this.  Thanks.


On Fri, Nov 15, 2019 at 5:39 PM Carlos Rovira <[hidden email]> 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&MXML 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 (<[hidden email]>) 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 <[hidden email]>:

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 <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Thursday, November 14, 2019 at 4:36 PM
To: "[hidden email]" <[hidden email]>
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.

 

20191115() 6:53 Alex Harui <[hidden email]>:

IIRC, src/main and src/test are maven folder conventions.

 

-Alex

 

From: Harbs <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Thursday, November 14, 2019 at 1:51 PM
To: "[hidden email]" <[hidden email]>
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 <[hidden email]> 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 <[hidden email]> 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) :

 

 

HTH

 

Carlos

 

 

El jue., 14 nov. 2019 a las 13:54, Takeshita Shoichiro (<[hidden email]>) 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 <[hidden email]> 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 <[hidden email]> 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 (<[hidden email]>) 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

 


 

--

Piotr Zarzycki 

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


 

--

Shoichiro Takeshita
武下 祥一郎


 

--

Carlos Rovira

 


 

--

Shoichiro Takeshita
武下 祥一郎

 

--

Shoichiro Takeshita
武下 祥一郎

--
Shoichiro Takeshita
武下 祥一郎


--


--
Shoichiro Takeshita
武下 祥一郎
Reply | Threaded
Open this post in threaded view
|

Re: DataGridExample build with VS Code

T-san
Hi, the problem is solved.  In addition to copySourcePathAssets, source-path is required to point the image folder.

Corrected asconfig.json:

{
    "config""royale",
    "compilerOptions": {
        "debug"true,
        "targets": ["JSRoyale"],
        "source-map"true,
        "source-path": [
            "src/main/royale",
            "src/main/resources"
        ]
    }, 
    "additionalOptions""-remove-circulars -js-output-optimization=skipAsCoercions",
    "copySourcePathAssets"true,
    "files":
    [
        "src/main/royale/DataGridExample.mxml"
    ]
}

On Sat, Nov 16, 2019 at 1:25 PM Takeshita Shoichiro <[hidden email]> wrote:
Hi, I opened an issue for this.  Thanks.


On Fri, Nov 15, 2019 at 5:39 PM Carlos Rovira <[hidden email]> 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&MXML 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 (<[hidden email]>) 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 <[hidden email]>:

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 <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Thursday, November 14, 2019 at 4:36 PM
To: "[hidden email]" <[hidden email]>
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.

 

20191115() 6:53 Alex Harui <[hidden email]>:

IIRC, src/main and src/test are maven folder conventions.

 

-Alex

 

From: Harbs <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Thursday, November 14, 2019 at 1:51 PM
To: "[hidden email]" <[hidden email]>
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 <[hidden email]> 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 <[hidden email]> 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) :

 

 

HTH

 

Carlos

 

 

El jue., 14 nov. 2019 a las 13:54, Takeshita Shoichiro (<[hidden email]>) 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 <[hidden email]> 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 <[hidden email]> 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 (<[hidden email]>) 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

 


 

--

Piotr Zarzycki 

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


 

--

Shoichiro Takeshita
武下 祥一郎


 

--

Carlos Rovira

 


 

--

Shoichiro Takeshita
武下 祥一郎

 

--

Shoichiro Takeshita
武下 祥一郎

--
Shoichiro Takeshita
武下 祥一郎


--


--
Shoichiro Takeshita
武下 祥一郎


--
Shoichiro Takeshita
武下 祥一郎
Reply | Threaded
Open this post in threaded view
|

Re: DataGridExample build with VS Code

Carlos Rovira-2
Hi Takeshita, 
many thanks for reporting.
Can you submit this change as a PR? I can merge it
thanks

El mar., 19 nov. 2019 a las 22:45, Takeshita Shoichiro (<[hidden email]>) escribió:
Hi, the problem is solved.  In addition to copySourcePathAssets, source-path is required to point the image folder.

Corrected asconfig.json:

{
    "config""royale",
    "compilerOptions": {
        "debug"true,
        "targets": ["JSRoyale"],
        "source-map"true,
        "source-path": [
            "src/main/royale",
            "src/main/resources"
        ]
    }, 
    "additionalOptions""-remove-circulars -js-output-optimization=skipAsCoercions",
    "copySourcePathAssets"true,
    "files":
    [
        "src/main/royale/DataGridExample.mxml"
    ]
}

On Sat, Nov 16, 2019 at 1:25 PM Takeshita Shoichiro <[hidden email]> wrote:
Hi, I opened an issue for this.  Thanks.


On Fri, Nov 15, 2019 at 5:39 PM Carlos Rovira <[hidden email]> 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&MXML 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 (<[hidden email]>) 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 <[hidden email]>:

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 <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Thursday, November 14, 2019 at 4:36 PM
To: "[hidden email]" <[hidden email]>
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.

 

20191115() 6:53 Alex Harui <[hidden email]>:

IIRC, src/main and src/test are maven folder conventions.

 

-Alex

 

From: Harbs <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Thursday, November 14, 2019 at 1:51 PM
To: "[hidden email]" <[hidden email]>
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 <[hidden email]> 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 <[hidden email]> 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) :

 

 

HTH

 

Carlos

 

 

El jue., 14 nov. 2019 a las 13:54, Takeshita Shoichiro (<[hidden email]>) 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 <[hidden email]> 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 <[hidden email]> 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 (<[hidden email]>) 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

 


 

--

Piotr Zarzycki 

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


 

--

Shoichiro Takeshita
武下 祥一郎


 

--

Carlos Rovira

 


 

--

Shoichiro Takeshita
武下 祥一郎

 

--

Shoichiro Takeshita
武下 祥一郎

--
Shoichiro Takeshita
武下 祥一郎


--


--
Shoichiro Takeshita
武下 祥一郎


--
Shoichiro Takeshita
武下 祥一郎


--
Reply | Threaded
Open this post in threaded view
|

Re: DataGridExample build with VS Code

T-san
Carlos, I will do it.  Thanks.

2019年11月20日(水) 18:48 Carlos Rovira <[hidden email]>:
Hi Takeshita, 
many thanks for reporting.
Can you submit this change as a PR? I can merge it
thanks

El mar., 19 nov. 2019 a las 22:45, Takeshita Shoichiro (<[hidden email]>) escribió:
Hi, the problem is solved.  In addition to copySourcePathAssets, source-path is required to point the image folder.

Corrected asconfig.json:

{
    "config""royale",
    "compilerOptions": {
        "debug"true,
        "targets": ["JSRoyale"],
        "source-map"true,
        "source-path": [
            "src/main/royale",
            "src/main/resources"
        ]
    }, 
    "additionalOptions""-remove-circulars -js-output-optimization=skipAsCoercions",
    "copySourcePathAssets"true,
    "files":
    [
        "src/main/royale/DataGridExample.mxml"
    ]
}

On Sat, Nov 16, 2019 at 1:25 PM Takeshita Shoichiro <[hidden email]> wrote:
Hi, I opened an issue for this.  Thanks.


On Fri, Nov 15, 2019 at 5:39 PM Carlos Rovira <[hidden email]> 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&MXML 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 (<[hidden email]>) 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 <[hidden email]>:

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 <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Thursday, November 14, 2019 at 4:36 PM
To: "[hidden email]" <[hidden email]>
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.

 

20191115() 6:53 Alex Harui <[hidden email]>:

IIRC, src/main and src/test are maven folder conventions.

 

-Alex

 

From: Harbs <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Thursday, November 14, 2019 at 1:51 PM
To: "[hidden email]" <[hidden email]>
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 <[hidden email]> 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 <[hidden email]> 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) :

 

 

HTH

 

Carlos

 

 

El jue., 14 nov. 2019 a las 13:54, Takeshita Shoichiro (<[hidden email]>) 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 <[hidden email]> 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 <[hidden email]> 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 (<[hidden email]>) 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

 


 

--

Piotr Zarzycki 

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


 

--

Shoichiro Takeshita
武下 祥一郎


 

--

Carlos Rovira

 


 

--

Shoichiro Takeshita
武下 祥一郎

 

--

Shoichiro Takeshita
武下 祥一郎

--
Shoichiro Takeshita
武下 祥一郎


--


--
Shoichiro Takeshita
武下 祥一郎


--
Shoichiro Takeshita
武下 祥一郎


--
--
Shoichiro Takeshita
武下 祥一郎