ihji / sbt-antlr4

Antlr4 plugin for sbt 1.1+ and 0.13.x
57 stars 35 forks source link

Use managed source directories to be inline with other sbt code generators. #1

Closed dispalt closed 10 years ago

dispalt commented 10 years ago

Here is how sbt-avro does it, https://github.com/cavorite/sbt-avro/blob/master/src/main/scala/sbtavro/SbtAvro.scala#L67

It interacts better with the sbt-idea plugin when you structure it like this too. I would also recommend changing / "java" javaSource to something more like https://github.com/cavorite/sbt-avro/blob/master/src/main/scala/sbtavro/SbtAvro.scala#L57

Thoughts?

jooyunghan commented 10 years ago

https://github.com/stefri/sbt-antlr/commit/f0d640d86d89e9d83043f666ab2c8c641a86334c#diff-221854f4e2a0605fe4ecdb377d924be7

'sbtantlr' resolved this issue by using just 'javaSource <<= sourceManaged in Compile' instead of making sub directories for managed sources.

ihji commented 10 years ago

@ddispaltro thanks for your commit.