Skip to content

Commit 2c0ef55

Browse files
committed
remove tool-codegen
tool-codegen is now part of tool
1 parent 3ae7aba commit 2c0ef55

File tree

6 files changed

+42
-57689
lines changed

6 files changed

+42
-57689
lines changed

pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@
7878

7979
<modules>
8080
<module>runtime/Java</module>
81-
<module>tool-codegen</module>
8281
<module>tool</module>
8382
<module>antlr4-maven-plugin</module>
8483
<module>tool-testsuite</module>

tool-codegen/pom.xml

Lines changed: 0 additions & 72 deletions
This file was deleted.

tool/pom.xml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@
4242
<artifactId>javax.json</artifactId>
4343
<version>1.0.4</version>
4444
</dependency>
45+
<dependency>
46+
<groupId>com.ibm.icu</groupId>
47+
<artifactId>icu4j</artifactId>
48+
<version>58.2</version>
49+
</dependency>
4550
</dependencies>
4651

4752
<build>
@@ -165,6 +170,43 @@
165170
</execution>
166171
</executions>
167172
</plugin>
173+
<plugin>
174+
<groupId>com.webguys</groupId>
175+
<artifactId>string-template-maven-plugin</artifactId>
176+
<version>1.1</version>
177+
<!-- this nonsense is for some reason needed to make this plugin
178+
work with maven 3 -->
179+
<dependencies>
180+
<dependency>
181+
<groupId>org.twdata.maven</groupId>
182+
<artifactId>mojo-executor</artifactId>
183+
<version>2.1.0</version>
184+
</dependency>
185+
</dependencies>
186+
<configuration>
187+
<templates>
188+
<template>
189+
<directory>${basedir}/resources/org/antlr/v4/tool/templates</directory>
190+
<name>unicodedata</name>
191+
<target>${basedir}/target/generated-sources/tool/src/org/antlr/v4/unicode/UnicodeData.java</target>
192+
<controller>
193+
<className>org.antlr.v4.unicode.UnicodeDataTemplateController</className>
194+
<sourceVersion>1.7</sourceVersion>
195+
<targetVersion>1.7</targetVersion>
196+
<method>getProperties</method>
197+
</controller>
198+
</template>
199+
</templates>
200+
</configuration>
201+
<executions>
202+
<execution>
203+
<phase>generate-sources</phase>
204+
<goals>
205+
<goal>render</goal>
206+
</goals>
207+
</execution>
208+
</executions>
209+
</plugin>
168210
</plugins>
169211
</build>
170212
</project>

tool-codegen/src/main/string-template/unicodedata.st renamed to tool/resources/org/antlr/v4/tool/templates/unicodedata.st

File renamed without changes.

0 commit comments

Comments
 (0)