Search code examples
javaplayframeworkthriftplayframework-1.x

How does one add another source directory to a Play 1.2.x project?


I am using the play framework (v1.2.3). As part of my code, I have various generated source files. These files are generated by thrift, so I do not want them included in my source control. As such, I want to exclude all of the generated files. But, currently, I am building them all under the main app/ directory. So there is no way to add an ignore clause to avoid committing any of the files into git.

This would not be a problem if I could simply generate the thrift source files into a different directory structure (e.g. gen/). Is there a way to configure Play to compile files from the app/ folder and from another separate, unrelated folder altogether?


Solution

  • I believe your best option is to provide those files as a module and use it from the main application. That way you'll have them in a separated area.

    Check this question about how to add local modules to your project.