javacc / javaccPlugin

A JavaCC plugin for Gradle
MIT License
33 stars 16 forks source link

Support passing arguments to JavaCC #11

Closed johnmartel closed 10 years ago

johnmartel commented 10 years ago

Again, pull request #7 showed that the passing of optional arguments to JavaCC was not supported.

johnmartel commented 10 years ago

Fixed

One can now provide optional arguments to JavaCC in the form of a map in the configuration block of the compileJavacc task:

compileJavacc {
    javaccArguments = [grammar_encoding : 'UTF-8', static: 'false']
}