Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Lighthouse 453: Have the play script do a better check as to whether project is actually a play project #324

wants to merge 3 commits into from

2 participants

Ben McCann Peter Hausel
Ben McCann

This is an alternative to pull request 323 (#323). Both are better than the current situation in my personal opinion. This actually checks whether the project is a play project. The current script does not do that and is not a great check since other sbt or even non-sbt projects may have an application.conf file. Also, as described in Lighthouse 453 you get into goofy situations right now where you need to place an empty application.conf, which seems rather silly.

Peter Hausel pk11 was assigned
Peter Hausel pk11 referenced this pull request from a commit
Peter Hausel pk11 [#324 #323] add a check against `project` folder in play scripts
This will allow the play scripts to be used with ad-hoc project layouts where the root PlayProject (and therefore `conf/application.conf`) is missing. Defining a root project is still recommended though.
Peter Hausel pk11 closed this
Thibault Duplessis ornicar referenced this pull request from a commit
Thibault Duplessis ornicar Merge branch 'master' of git:// into m…

* 'master' of git://
  [#324 #323] add a check against `project` folder in play scripts
  Fix for #472
  Ticket #476
James Roper jroper referenced this pull request from a commit
James Roper jroper [#324] Fixed bug in Router.queryString when handling empty strings fr…
…om QueryStringBindable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 3 deletions.
  1. +1 −1  play
  2. +3 −2 play.bat
2  play
@@ -13,7 +13,7 @@ else
-if [ -f conf/application.conf -o -f conf/reference.conf ]; then
+if [ -f project/plugins.sbt ] && grep -q "addSbtPlugin(\"play\"" project/plugins.sbt ; then
if test "$1" = "clean-all"; then
rm -rf target
rm -rf tmp
5 play.bat
@@ -9,8 +9,9 @@ set fp=file:///!p: =%%20!
set buildScript="%~dp0framework\build.bat"
set additionalArgs=%*
-if exist "conf\application.conf" goto existingApplication
-if exist "conf\reference.conf" goto existingApplication
+if not exist "project\plugins.sbt" goto noApplication
+findstr addSbtPlugin(\"play\" project\plugins.sbt > NUL
+if %errorlevel%==0 goto existingApplication
java -Dsbt.ivy.home="%~dp0repository" -Dplay.home="%~dp0framework""%fp%framework/sbt/" -jar "%~dp0framework\sbt\sbt-launch.jar" %*
Something went wrong with that request. Please try again.