You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2020/10/27 13:26:36 UTC

[plc4x] branch feature/plc4go updated: - Made the master pom copy the schemas of the testsuites to the site (So they are fetchable by IDEs and other tools)

This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch feature/plc4go
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/feature/plc4go by this push:
     new 0ecbe37  - Made the master pom copy the schemas of the testsuites to the site (So they are fetchable by IDEs and other tools)
0ecbe37 is described below

commit 0ecbe37c6f2c27a510cb747e52761373f04ba4e3
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Tue Oct 27 14:26:21 2020 +0100

    - Made the master pom copy the schemas of the testsuites to the site (So they are fetchable by IDEs and other tools)
---
 pom.xml | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/pom.xml b/pom.xml
index 3421a8d..a83d4fe 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1030,6 +1030,29 @@
               </resources>
             </configuration>
           </execution>
+          <!--
+            Copy the schemas that might be distributed throughout the codebase to a central "schemas"
+            directory so IDEs can automatically pull them in.
+          -->
+          <execution>
+            <id>copy-schemas</id>
+            <!-- Only execute this for the parent module -->
+            <inherited>false</inherited>
+            <phase>pre-site</phase>
+            <goals>
+              <goal>copy-resources</goal>
+            </goals>
+            <configuration>
+              <outputDirectory>${project.build.directory}/site</outputDirectory>
+              <resources>
+                <!-- Copy the tesources for the testsuites -->
+                <resource>
+                  <directory>${project.basedir}/plc4j/utils/test-utils/src/main/resources/schemas</directory>
+                  <targetPath>${project.build.directory}/site/schemas</targetPath>
+                </resource>
+              </resources>
+            </configuration>
+          </execution>
         </executions>
       </plugin>