A plugin for sbt 0.13.x and 1.0 that generates code based on an jflex specification.
This is a shameless fork-and-adapt of stefri's sbt-antlr plugin.
Depend on the plugin: ./project/plugins.sbt
addSbtPlugin("org.scalanlp" % "sbt-jflex" % "1.0")
Place your Jflex lexer file in src/main/flex/
and they will be
included in your next build. Note, sbt-jflex
generates the source code
only once as long as your lexer file didn't change it does not
re-generate the java source files.
seq(sbtjflex.SbtJFlexPlugin.jflexSettings: _*)
Include the settings from sbtjflex.SbtJFlexPlugin.jflexSettings
in
your project build file. See the SBT wiki page on plugins for
further details.
Please use the issue tracker on github if you find a bug or want to request a specific feature. Note, this plugin is in early alpha, there are still lots of things todo - feel free to fork and send a pull request to improve the codebase.
sbt-jflex
is licensed under the Apache 2.0 License,
see the LICENSE.md
file for further details.
This is a shameless fork-and-adapt of stefri's sbt-antlr plugin.