如何在 Maven 配置中设置 ANTLR3 扩展选项 -Xmaxinlinedfastates?

How to set ANTLR3 extended option -Xmaxinlinedfastates in maven configuration?

是否可以在 table 使用之前设置最大 DFA 状态,而不是像 antlr.Tool 命令行中的扩展选项 -Xmaxinlinedfastates 那样在插件 maven antlr3 的配置中内联?

我在 ant 脚本中找到它,但在 maven 中找不到。

如果是,怎么办?

谢谢。

感谢 Jiri Tousek。

我在 maven antlr3 插件中找到了一个替代方法,我称之为 gap。使用 maven antrun 插件让我解决了这个问题。

这是我在 pom.xml 中所做的声明,对我有用:

        <plugin>
            <artifactId>maven-antrun-plugin</artifactId>
            <version>1.8</version>
            <executions>
                <execution>
                    <phase>generate-sources</phase>
                    <configuration>
                        <target>

                            <!-- Place any Ant task here. You can add anything you can add between 
                                <target> and </target> in a build.xml. -->

                            <java classname="org.antlr.Tool" fork="true"
                                failonerror="true">
                                <arg value="-verbose" />
                                <arg value="-Xmaxinlinedfastates"/>
                                <arg value="10"/>  <!-- Value for the exended option -Xmaxinlinedfastates -->
                                <arg path="./src/main/antlr3/*.g" />  
                            </java>
                        </target>
                    </configuration>
                    <goals>
                        <goal>run</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>