Permalink
Browse files

Update play.bat to check if plugins.sbt for play project validity

  • Loading branch information...
1 parent 98aff0f commit 2959060f6ec7f911025fab0e3c2754e2f76772cb @benmccann benmccann committed May 18, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 play.bat
View
@@ -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
:noApplication
java -Dsbt.ivy.home="%~dp0repository" -Dplay.home="%~dp0framework" -Dsbt.boot.properties="%fp%framework/sbt/play.boot.properties" -jar "%~dp0framework\sbt\sbt-launch.jar" %*

0 comments on commit 2959060

Please sign in to comment.