Skip to content

Commit 269cb97

Browse files
committed
cleanup antlr generated files and make sure antlr always run (up-to-date) on build
1 parent 54536da commit 269cb97

File tree

3 files changed

+23
-18
lines changed

3 files changed

+23
-18
lines changed

modules/jooby-apitool/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
src/main/java/org/jooby/internal/apitool/javadoc/*.java
22
*.tokens
3+
*.interp

modules/jooby-apitool/pom.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,27 @@
4646
</executions>
4747
</plugin>
4848

49+
<plugin>
50+
<groupId>org.apache.maven.plugins</groupId>
51+
<artifactId>maven-antrun-plugin</artifactId>
52+
<version>1.8</version>
53+
<executions>
54+
<execution>
55+
<phase>process-sources</phase>
56+
<configuration>
57+
<target>
58+
<delete>
59+
<fileset dir="${basedir}" includes="**/*.tokens"/>
60+
</delete>
61+
</target>
62+
</configuration>
63+
<goals>
64+
<goal>run</goal>
65+
</goals>
66+
</execution>
67+
</executions>
68+
</plugin>
69+
4970
<plugin>
5071
<groupId>org.antlr</groupId>
5172
<artifactId>antlr4-maven-plugin</artifactId>
@@ -57,6 +78,7 @@
5778
</configuration>
5879
<executions>
5980
<execution>
81+
<phase>process-sources</phase>
6082
<goals>
6183
<goal>antlr4</goal>
6284
</goals>

modules/jooby-apitool/src/main/antlr4/org/jooby/internal/apitool/javadoc/JavadocLexer.tokens

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

0 commit comments

Comments
 (0)