antlr / antlr4

ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files.
http://antlr.org
BSD 3-Clause "New" or "Revised" License
17.03k stars 3.27k forks source link

provide examples for maven plugin parameters #598

Open james-q-arnold opened 10 years ago

james-q-arnold commented 10 years ago

The maven plugin has a help goal (antlr4:help -Ddetail=true), but the resulting list should give the syntax for the parameters when used in a pom.xml file. For example, the antlr4:antlr4 goal describes "arguments" as "A list of additional command line arguments to pass to the ANTLR tool." Would be handy if this description showed the syntax to use for the "list".

This would not necessarily have to be in the maven goal's output (though that would be nice), but at least the website could give details.

Information needed:

I have looked through the maven documentation, but nothing I have tried yet works. I have turned on maven debugging, but that has not yet shown enough to help.

azrdev commented 1 year ago

Docs would definitely be needed; for the specific case of arguments I found the answer at https://stackoverflow.com/questions/18243359/what-is-the-format-for-specifying-a-package-in-the-antlr4-maven-plugin:

<plugin>
  ...
  <artifactId>antlr4-maven-plugin</artifactId>
  <configuration>
    <arguments>
      <argument>-package</argument>
      <argument>my.package.name</argument>
   </arguments>
  </configuration>
  <executions>
  ...