I’m creating a Play module for the first time. Would I be correct in saying that neither commands:
play idealize
play eclipsify
can be used to generate IDE settings files for modules meaning that you just have to set things up manually?
Also, if I wanted to write a module that depended on another existing Play module, how would I build the module successfully?
So for example, if my module was called somemodule and I added a dependency on the existing Play PDF module, then my dependencies.yml would look like this:
self: play -> somemodule 0.1
require:
- play
- play -> pdf 0.9
Then I could run play dependencies and start writing some code in the src folder. When I go to build the module:
play build-module
it does not seem to recognize the fact that I am depending on the PDF module and I get a bunch of compilation errors since it cannot see the PDF class files. Is it possible to do something like this?
The solution is to update the
build.xml(that gets generated for you when you create your Play module) to specify an additional fileset in the project’s classpath. So using my example in the OP, the you could add the following to get the build to work:This will add all jars in the lib directory of all modules that get put into your module’s project after resolving its dependencies (using
play deps)