Skip to content

Commit

Permalink
workaround non-reproducible antlr3 output
Browse files Browse the repository at this point in the history
Signed-off-by: Hervé Boutemy <[email protected]>
  • Loading branch information
hboutemy committed Oct 9, 2022
1 parent 1196ebb commit 270f13b
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions tool/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,38 @@
</execution>
</executions>
</plugin>
<plugin><!-- workaround for https://github.com/antlr/antlr3/pull/209 -->
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<version>1.5.3</version>
<executions>
<execution>
<id>fix-antlr3-RB</id>
<phase>process-sources</phase>
<goals>
<goal>replace</goal>
</goals>
</execution>
</executions>
<configuration>
<basedir>${project.build.directory}/generated-sources/antlr3/org/antlr/v4</basedir>
<includes>
<include>parse/*.java</include>
<include>codegen/*.java</include>
</includes>
<replacements>
<replacement>
<token>(// .ANTLR .+) ....-..-.. ..:..:..</token>
<value>$1</value>
</replacement>
<replacement>
<token>(// elements: ).*</token>
<value>$1</value>
</replacement>
</replacements>
<regex>true</regex>
</configuration>
</plugin>
<plugin>
<groupId>com.webguys</groupId>
<artifactId>string-template-maven-plugin</artifactId>
Expand Down

0 comments on commit 270f13b

Please sign in to comment.