The cup arg: -destdir
does not work.
With or without this option, the generated source files (parser and symbols) always in the top folder (build/generated-src/cup).
For example as below, the expected destination folder is 'build/generated-src/cup/my/pkg' but actually it's still 'build/generated-src/cup'.
cup {
args = ["-destdir", "build/generated-src/cup/my/pkg", "-parser", "my_parser", "-symbols", "my_sym"]
}
The questions are:
How can I get the generated class in the right folder that matching the package name?
Is there a workaround to move the generated files by using a gradle task?