NX01: Cleanup kode gen a little bit of byte rot

This commit is contained in:
Willem Cazander 2026-01-23 11:11:15 +01:00
parent babb2cf188
commit 4af51ad9ae
6 changed files with 191 additions and 136 deletions

View file

@ -39,47 +39,30 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>nx01-generate-nether</id>
<goals>
<goal>run</goal>
</goals>
<phase>process-resources</phase>
<configuration>
<target>
<java classname="love.distributedrebirth.nx01.kode.generator.KodeGen" fork="true"
failonerror="true">
<!-- using test CP so local module gets resolved correctly -->
<classpath refid="maven.test.classpath" />
<arg line="tones" />
<arg line="generate" />
</java>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>nx01-jpp-klass-nether-generate</id>
<activation>
<file>
<!-- NOTE: this only works when clean is run seperate of compile -->
<missing>target/generated-sources.hash</missing>
</file>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>nx01-generate-nether</id>
<goals>
<goal>run</goal>
</goals>
<phase>process-resources</phase>
<configuration>
<target>
<echo>NX01: Generating nether tones</echo>
<java classname="love.distributedrebirth.nx01.kode.generator.GenerateNetherTone" fork="true"
failonerror="true">
<!-- using test CP so local module gets resolved correctly -->
<classpath refid="maven.test.classpath" />
<arg line="generate" />
<arg line="based" />
</java>
<echo>NX01: Done nether</echo>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>