I created a Windows batch file to start my Play Framework application as detailed here: play framework bat windows java process
java %1 -cp "./lib/*;" play.core.server.NettyServer .
This works, but when I try and add a command-line flag to specify a production configuration file I get a 'Not a Play application' error message:
java %1 -Dconfig.file=application-prod.conf -cp "./lib/*;" play.core.server.NettyServer .
My two questions are:
- What does the '%1' and '.' represent to the java launcher?
- How can I pass the '-D' command-line flags to the Play application in a Windows batch file?