Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[#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.
  • Loading branch information...
commit f8e95ce894ccd2a7d1e5c88b2f570cda16212067 1 parent 1de63d1
@pk11 pk11 authored
Showing with 2 additions and 1 deletion.
  1. +1 −1  play
  2. +1 −0  play.bat
View
2  play
@@ -13,7 +13,7 @@ else
JAVA=$JAVA_HOME/bin/java
fi
-if [ -f conf/application.conf -o -f conf/reference.conf ]; then
+if [ -f conf/application.conf -o -f conf/reference.conf ] || [ -d project ]; then
if test "$1" = "clean-all"; then
rm -rf target
rm -rf tmp
View
1  play.bat
@@ -11,6 +11,7 @@ set additionalArgs=%*
if exist "conf\application.conf" goto existingApplication
if exist "conf\reference.conf" goto existingApplication
+if exist "project" goto existingApplication
:noApplication
java -Dsbt.ivy.home="%~dp0repository" -Dplay.home="%~dp0framework" -Dsbt.boot.properties="%fp%framework/sbt/play.boot.properties" -jar "%~dp0framework\sbt\sbt-launch.jar" %*
Please sign in to comment.
Something went wrong with that request. Please try again.