jprante / gradle-plugin-jflex

A JFlex plugin for Gradle
Apache License 2.0
8 stars 6 forks source link

Set up package fro the output #16

Closed vojkny closed 3 years ago

vojkny commented 3 years ago

With legacy maven jflex plugin I was able to generate the output sources to a corresponding package:

/src/generated-sources/my/package/is/in/path/Lexer.java

However with the gradle plugin, it generates the file directly in the base path:

/src/generated-sources/Lexer.java

Only configuration option is

     java {
       srcDir "$buildDir/my-generated-sources/jflex"
     }

But I guess that is not meant to set up the package root. Am I understanding something wrongly?