Added x4o language tasks

This commit is contained in:
Willem Cazander 2022-10-14 03:18:00 +02:00
parent 48d1bc7f48
commit f767e9a746
8 changed files with 352 additions and 65 deletions

View file

@ -47,10 +47,13 @@ Now we can delete all data from the blockchain.
Requirements; Requirements;
* 8GB of free memory
* Setup [Hyperdrive](https://github.com/hyperspace-org/hyperdrive-service) * Setup [Hyperdrive](https://github.com/hyperspace-org/hyperdrive-service)
* Use an AdoptOpenJDK(11++) to run the demo. * Use an AdoptOpenJDK(11++) to run the demo.
* Run "mvn -P lib-install initialize" once to copy local lib to local m2 repro. * Run "mvn -P lib-install initialize" once to copy local lib to local m2 repro.
Run "mvn -P x4o-tasks compile" once to generate all xml xsd and eld docs.(into target/x4o-*)
### Project Launch Release ### Project Launch Release
When hyperdrive is running just start the jar file with; When hyperdrive is running just start the jar file with;

View file

@ -39,18 +39,7 @@
${tos4.packages}, ${tos4.packages},
${vrgem4.packages}, ${vrgem4.packages},
${unitxc.packages}, ${unitxc.packages},
org.apache.commons.lang3, ${lang3.packages}
org.apache.commons.lang3.builder,
org.apache.commons.lang3.concurrent,
org.apache.commons.lang3.event,
org.apache.commons.lang3.exception,
org.apache.commons.lang3.math,
org.apache.commons.lang3.mutable,
org.apache.commons.lang3.reflect,
org.apache.commons.lang3.text,
org.apache.commons.lang3.text.translate,
org.apache.commons.lang3.time,
org.apache.commons.lang3.tuple
</Import-Package> </Import-Package>
<Bundle-Vendor>distributedrebirth.love</Bundle-Vendor> <Bundle-Vendor>distributedrebirth.love</Bundle-Vendor>
</instructions> </instructions>

View file

@ -28,8 +28,9 @@
schemaResource="unicode4d-atlas-root-1.0.xsd" schemaPrefix="r" schemaResource="unicode4d-atlas-root-1.0.xsd" schemaPrefix="r"
description="Namespace to have single root." description="Namespace to have single root."
name="UnicodePlane Root Namespace" languageRoot="true" id="r"> name="UnicodePlane Root Namespace" languageRoot="true" id="r">
<eld:element tag="a" <eld:element tag="a" objectClass="love.distributedrebirth.unicode4d.atlas.FontAtlas">
objectClass="love.distributedrebirth.unicode4d.atlas.FontAtlas"/> <eld:description>The font atlas to store all fonts.</eld:description>
</eld:element>
</eld:namespace> </eld:namespace>
<eld:namespace <eld:namespace
@ -38,9 +39,11 @@
schemaResource="unicode4d-atlas-lang-1.0.xsd" schemaPrefix="l" schemaResource="unicode4d-atlas-lang-1.0.xsd" schemaPrefix="l"
description="Namespace to store glyphs." description="Namespace to store glyphs."
name="UnicodePlane Language Namespace" id="l"> name="UnicodePlane Language Namespace" id="l">
<eld:element tag="s" <eld:element tag="s" objectClass="love.distributedrebirth.unicode4d.atlas.FontAtlasStore">
objectClass="love.distributedrebirth.unicode4d.atlas.FontAtlasStore" /> <eld:description>The font atlas to store all characters in.</eld:description>
<eld:element tag="g" </eld:element>
objectClass="love.distributedrebirth.unicode4d.atlas.FontAtlasStoreGlyph" /> <eld:element tag="g" objectClass="love.distributedrebirth.unicode4d.atlas.FontAtlasStoreGlyph">
<eld:description>The unicode4D character data.</eld:description>
</eld:element>
</eld:namespace> </eld:namespace>
</root:module> </root:module>

View file

@ -20,7 +20,6 @@
<dependency> <dependency>
<groupId>org.apache.tomcat</groupId> <groupId>org.apache.tomcat</groupId>
<artifactId>jasper-el</artifactId> <artifactId>jasper-el</artifactId>
<version>6.0.20</version>
</dependency> </dependency>
</dependencies> </dependencies>
<build> <build>
@ -28,7 +27,6 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId> <artifactId>maven-dependency-plugin</artifactId>
<version>3.3.0</version>
<executions> <executions>
<execution> <execution>
<id>copy-dependencies</id> <id>copy-dependencies</id>
@ -42,34 +40,4 @@
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
<profiles>
<profile>
<id>lib-install</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
<executions>
<execution>
<id>deploy-local-x4o</id>
<phase>initialize</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<groupId>org.x4o</groupId>
<artifactId>x4o-driver</artifactId>
<version>0.8.7-SNAPSHOT2</version>
<packaging>jar</packaging>
<file>${project.basedir}/../local-lib/x4o-driver-0.8.7-SNAPSHOT2.jar</file>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project> </project>

297
gdxapp4d-lib-x4o/pom.xml Normal file
View file

@ -0,0 +1,297 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>love.distributedrebirth.gdxapp4d</groupId>
<artifactId>gdxapp4d</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>gdxapp4d-lib-x4o</artifactId>
<packaging>pom</packaging>
<profiles>
<profile>
<id>lib-install</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
<executions>
<execution>
<id>deploy-local-x4o-driver</id>
<phase>initialize</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<groupId>org.x4o</groupId>
<artifactId>x4o-driver</artifactId>
<version>0.8.7-SNAPSHOT2</version>
<packaging>jar</packaging>
<file>${project.basedir}/../local-lib/x4o-driver-0.8.7-SNAPSHOT2.jar</file>
</configuration>
</execution>
<execution>
<id>deploy-local-x4o-eld-doc</id>
<phase>initialize</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<groupId>org.x4o</groupId>
<artifactId>x4o-eld-doc</artifactId>
<version>0.8.7-SNAPSHOT2</version>
<packaging>jar</packaging>
<file>${project.basedir}/../local-lib/x4o-eld-doc-0.8.7-SNAPSHOT2.jar</file>
</configuration>
</execution>
<execution>
<id>deploy-local-x4o-html</id>
<phase>initialize</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<groupId>org.x4o</groupId>
<artifactId>x4o-html</artifactId>
<version>0.8.7-SNAPSHOT2</version>
<packaging>jar</packaging>
<file>${project.basedir}/../local-lib/x4o-html-0.8.7-SNAPSHOT2.jar</file>
</configuration>
</execution>
<execution>
<id>deploy-local-x4o-meta</id>
<phase>initialize</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<groupId>org.x4o</groupId>
<artifactId>x4o-meta</artifactId>
<version>0.8.7-SNAPSHOT2</version>
<packaging>jar</packaging>
<file>${project.basedir}/../local-lib/x4o-meta-0.8.7-SNAPSHOT2.jar</file>
</configuration>
</execution>
<execution>
<id>deploy-local-x4o-tool-ant-plugin</id>
<phase>initialize</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<groupId>org.x4o.tool</groupId>
<artifactId>x4o-tool-ant-plugin</artifactId>
<version>0.8.7-SNAPSHOT2</version>
<packaging>jar</packaging>
<file>${project.basedir}/../local-lib/x4o-tool-ant-plugin-0.8.7-SNAPSHOT2.jar</file>
</configuration>
</execution>
<execution>
<id>deploy-local-x4o-tool-maven-plugin</id>
<phase>initialize</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<groupId>org.x4o.tool</groupId>
<artifactId>x4o-tool-maven-plugin</artifactId>
<version>0.8.7-SNAPSHOT2</version>
<packaging>jar</packaging>
<file>${project.basedir}/../local-lib/x4o-tool-maven-plugin-0.8.7-SNAPSHOT2.jar</file>
</configuration>
</execution>
<execution>
<id>deploy-local-x4o-driver-sources</id>
<phase>initialize</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<groupId>org.x4o</groupId>
<artifactId>x4o-driver</artifactId>
<version>0.8.7-SNAPSHOT2</version>
<packaging>jar</packaging>
<classifier>sources</classifier>
<file>${project.basedir}/../local-lib/x4o-driver-0.8.7-SNAPSHOT2-sources.jar</file>
</configuration>
</execution>
<execution>
<id>deploy-local-x4o-eld-doc-sources</id>
<phase>initialize</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<groupId>org.x4o</groupId>
<artifactId>x4o-eld-doc</artifactId>
<version>0.8.7-SNAPSHOT2</version>
<packaging>jar</packaging>
<classifier>sources</classifier>
<file>${project.basedir}/../local-lib/x4o-eld-doc-0.8.7-SNAPSHOT2-sources.jar</file>
</configuration>
</execution>
<execution>
<id>deploy-local-x4o-html-sources</id>
<phase>initialize</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<groupId>org.x4o</groupId>
<artifactId>x4o-html</artifactId>
<version>0.8.7-SNAPSHOT2</version>
<packaging>jar</packaging>
<classifier>sources</classifier>
<file>${project.basedir}/../local-lib/x4o-html-0.8.7-SNAPSHOT2-sources.jar</file>
</configuration>
</execution>
<execution>
<id>deploy-local-x4o-meta-sources</id>
<phase>initialize</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<groupId>org.x4o</groupId>
<artifactId>x4o-meta</artifactId>
<version>0.8.7-SNAPSHOT2</version>
<packaging>jar</packaging>
<classifier>sources</classifier>
<file>${project.basedir}/../local-lib/x4o-meta-0.8.7-SNAPSHOT2-sources.jar</file>
</configuration>
</execution>
<execution>
<id>deploy-local-x4o-tool-ant-plugin-sources</id>
<phase>initialize</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<groupId>org.x4o.tool</groupId>
<artifactId>x4o-tool-ant-plugin</artifactId>
<version>0.8.7-SNAPSHOT2</version>
<packaging>jar</packaging>
<classifier>sources</classifier>
<file>${project.basedir}/../local-lib/x4o-tool-ant-plugin-0.8.7-SNAPSHOT2-sources.jar</file>
</configuration>
</execution>
<execution>
<id>deploy-local-x4o-tool-maven-plugin-sources</id>
<phase>initialize</phase>
<goals>
<goal>install-file</goal>
</goals>
<configuration>
<groupId>org.x4o.tool</groupId>
<artifactId>x4o-tool-maven-plugin</artifactId>
<version>0.8.7-SNAPSHOT2</version>
<packaging>jar</packaging>
<classifier>sources</classifier>
<file>${project.basedir}/../local-lib/x4o-tool-maven-plugin-0.8.7-SNAPSHOT2-sources.jar</file>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>x4o-tasks</id>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>compile</phase>
<configuration>
<target>
<taskdef name="x4oTask" classname="org.x4o.tool.ant.plugin.X4OTask" classpathref="maven.runtime.classpath">
</taskdef>
<mkdir dir="target/x4o-eld"/>
<mkdir dir="target/x4o-xsd"/>
<x4oTask languageName="warp-ship" taskId="eld-doc">
<x4oTaskProperty key="http://x4o.org/properties/eld-doc/output/path" value="target/x4o-eld/warp-ship"/>
</x4oTask>
<x4oTask languageName="warp-ship" taskId="eld-xsd">
<x4oTaskProperty key="http://x4o.org/properties/eld-xsd/output/path" value="target/x4o-xsd/warp-ship"/>
</x4oTask>
<x4oTask languageName="warp-hash" taskId="eld-doc">
<x4oTaskProperty key="http://x4o.org/properties/eld-doc/output/path" value="target/x4o-eld/warp-hash"/>
</x4oTask>
<x4oTask languageName="warp-hash" taskId="eld-xsd">
<x4oTaskProperty key="http://x4o.org/properties/eld-xsd/output/path" value="target/x4o-xsd/warp-hash"/>
</x4oTask>
<x4oTask languageName="warp-sea" taskId="eld-doc">
<x4oTaskProperty key="http://x4o.org/properties/eld-doc/output/path" value="target/x4o-eld/warp-sea"/>
</x4oTask>
<x4oTask languageName="warp-sea" taskId="eld-xsd">
<x4oTaskProperty key="http://x4o.org/properties/eld-xsd/output/path" value="target/x4o-xsd/warp-sea"/>
</x4oTask>
<x4oTask languageName="warp-core" taskId="eld-doc">
<x4oTaskProperty key="http://x4o.org/properties/eld-doc/output/path" value="target/x4o-eld/warp-core"/>
</x4oTask>
<x4oTask languageName="warp-core" taskId="eld-xsd">
<x4oTaskProperty key="http://x4o.org/properties/eld-xsd/output/path" value="target/x4o-xsd/warp-core"/>
</x4oTask>
<x4oTask languageName="unicode4d-atlas" taskId="eld-doc">
<x4oTaskProperty key="http://x4o.org/properties/eld-doc/output/path" value="target/x4o-eld/unicode4d-atlas"/>
</x4oTask>
<x4oTask languageName="unicode4d-atlas" taskId="eld-xsd">
<x4oTaskProperty key="http://x4o.org/properties/eld-xsd/output/path" value="target/x4o-xsd/unicode4d-atlas"/>
</x4oTask>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>love.distributedrebirth.gdxapp4d</groupId>
<artifactId>gdxapp4d-lib-warpme</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>love.distributedrebirth.gdxapp4d</groupId>
<artifactId>gdxapp4d-lib-unicodezd</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>jasper-el</artifactId>
<version>6.0.20</version>
</dependency>
<dependency>
<groupId>org.x4o</groupId>
<artifactId>x4o-driver</artifactId>
<version>0.8.7-SNAPSHOT2</version>
</dependency>
<dependency>
<groupId>org.x4o</groupId>
<artifactId>x4o-eld-doc</artifactId>
<version>0.8.7-SNAPSHOT2</version>
</dependency>
<dependency>
<groupId>org.x4o</groupId>
<artifactId>x4o-html</artifactId>
<version>0.8.7-SNAPSHOT2</version>
</dependency>
<dependency>
<groupId>org.x4o.tool</groupId>
<artifactId>x4o-tool-ant-plugin</artifactId>
<version>0.8.7-SNAPSHOT2</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

View file

@ -48,17 +48,14 @@
<dependency> <dependency>
<groupId>org.osgi</groupId> <groupId>org.osgi</groupId>
<artifactId>org.osgi.service.component.annotations</artifactId> <artifactId>org.osgi.service.component.annotations</artifactId>
<version>1.4.0</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.badlogicgames.gdx</groupId> <groupId>com.badlogicgames.gdx</groupId>
<artifactId>gdx-freetype</artifactId> <artifactId>gdx-freetype</artifactId>
<version>1.10.0</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.badlogicgames.gdx</groupId> <groupId>com.badlogicgames.gdx</groupId>
<artifactId>gdx-freetype-platform</artifactId> <artifactId>gdx-freetype-platform</artifactId>
<version>1.10.0</version>
<classifier>natives-desktop</classifier> <classifier>natives-desktop</classifier>
</dependency> </dependency>
</dependencies> </dependencies>

View file

@ -38,18 +38,7 @@
org.slf4j.event, org.slf4j.event,
org.slf4j.helpers, org.slf4j.helpers,
org.slf4j.spi, org.slf4j.spi,
org.apache.commons.lang3, ${lang3.packages},
org.apache.commons.lang3.builder,
org.apache.commons.lang3.concurrent,
org.apache.commons.lang3.event,
org.apache.commons.lang3.exception,
org.apache.commons.lang3.math,
org.apache.commons.lang3.mutable,
org.apache.commons.lang3.reflect,
org.apache.commons.lang3.text,
org.apache.commons.lang3.text.translate,
org.apache.commons.lang3.time,
org.apache.commons.lang3.tuple
</Import-Package> </Import-Package>
<Export-Package> <Export-Package>
${unitxc.packages} ${unitxc.packages}

41
pom.xml
View file

@ -35,6 +35,7 @@
<module>gdxapp4d-chain-mod-unitxc</module> <module>gdxapp4d-chain-mod-unitxc</module>
<module>gdxapp4d-chain-mod-vrgem4</module> <module>gdxapp4d-chain-mod-vrgem4</module>
<module>gdxapp4d-chain-mod-vrsys5</module> <module>gdxapp4d-chain-mod-vrsys5</module>
<module>gdxapp4d-lib-x4o</module>
</modules> </modules>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@ -158,6 +159,20 @@
net.forwardfire.unitxc.module.derived, net.forwardfire.unitxc.module.derived,
net.forwardfire.unitxc.named net.forwardfire.unitxc.named
</unitxc.packages> </unitxc.packages>
<lang3.packages>
org.apache.commons.lang3,
org.apache.commons.lang3.builder,
org.apache.commons.lang3.concurrent,
org.apache.commons.lang3.event,
org.apache.commons.lang3.exception,
org.apache.commons.lang3.math,
org.apache.commons.lang3.mutable,
org.apache.commons.lang3.reflect,
org.apache.commons.lang3.text,
org.apache.commons.lang3.text.translate,
org.apache.commons.lang3.time,
org.apache.commons.lang3.tuple
</lang3.packages>
</properties> </properties>
<dependencyManagement> <dependencyManagement>
<dependencies> <dependencies>
@ -186,6 +201,11 @@
<artifactId>x4o-driver</artifactId> <artifactId>x4o-driver</artifactId>
<version>0.8.7-SNAPSHOT2</version> <version>0.8.7-SNAPSHOT2</version>
</dependency> </dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>jasper-el</artifactId>
<version>6.0.20</version>
</dependency>
<dependency> <dependency>
<groupId>io.github.spair</groupId> <groupId>io.github.spair</groupId>
<artifactId>imgui-java-binding</artifactId> <artifactId>imgui-java-binding</artifactId>
@ -241,6 +261,22 @@
<artifactId>org.apache.felix.framework</artifactId> <artifactId>org.apache.felix.framework</artifactId>
<version>7.0.3</version> <version>7.0.3</version>
</dependency> </dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.service.component.annotations</artifactId>
<version>1.4.0</version>
</dependency>
<dependency>
<groupId>com.badlogicgames.gdx</groupId>
<artifactId>gdx-freetype</artifactId>
<version>1.10.0</version>
</dependency>
<dependency>
<groupId>com.badlogicgames.gdx</groupId>
<artifactId>gdx-freetype-platform</artifactId>
<version>1.10.0</version>
<classifier>natives-desktop</classifier>
</dependency>
</dependencies> </dependencies>
</dependencyManagement> </dependencyManagement>
<dependencies> <dependencies>
@ -279,6 +315,11 @@
<artifactId>maven-bundle-plugin</artifactId> <artifactId>maven-bundle-plugin</artifactId>
<version>5.1.4</version> <version>5.1.4</version>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.3.0</version>
</plugin>
</plugins> </plugins>
</pluginManagement> </pluginManagement>
</build> </build>