Re: Will there be support for the MinGW/MSYS/msysgit bash shell environment on Windows?

1,565 views
Skip to first unread message

huynhjl

unread,
Jun 15, 2012, 11:55:42 PM6/15/12
to play-framework
I've had some success with overriding the dirname command and
prefixing the sbt.boot.properties with file:///

See https://gist.github.com/2939832 for the complete diffs between
play 2.0.

-- Jean-Laurent

On Jun 15, 4:44 am, Paul Vorbach <p...@vorb.de> wrote:
> I am a Windows user. And I also use Git for version control. That’s why I
> am familiar with using the Git shell on Windows.
>
> Unfortunately, Play cannot be run from a Git shell, saying something like:
>
> Error during sbt execution: Could not find configuration file
>
> > 'C:/Dev/Programs/P
> > lay/framework/sbt/play.boot.properties'.  Searched:
> >         file:/c:/Dev/Programs/
> >         file:/C:/Users/Paul/
> >         file:/C:/Dev/Programs/Play/framework/sbt/
>
> Is there someone who found a solution to this problem, yet? Or will there
> be support for the Git shell in a future release?

huynhjl

unread,
Jun 15, 2012, 3:23:53 PM6/15/12
to play-framework
This worked for me:

diff -r play-2.0-orig/framework/build play-2.0-cygwin/framework/build
11c11
< java ${DEBUG_PARAM} -Xms512M -Xmx1536M -Xss1M -XX:
+CMSClassUnloadingEnabled -XX:MaxPermSize=384M -Dfile.encoding=UTF8 -
Dplay.version="${PLAY_VERSION}" -Dsbt.ivy.home=`dirname $0`/../
repository -Dplay.home=`dirname $0` -Dsbt.boot.properties=`dirname $0`/
sbt/sbt.boot.properties -jar `dirname $0`/sbt/sbt-launch.jar "$@"
\ No newline at end of file
---
> java ${DEBUG_PARAM} -Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=384M -Dfile.encoding=UTF8 -Dplay.version="${PLAY_VERSION}" -Dsbt.ivy.home=`dirname $0`/../repository -Dplay.home=`dirname $0` -Dsbt.boot.properties=$BOOTPROP`dirname $0`/sbt/sbt.boot.properties -jar `dirname $0`/sbt/sbt-launch.jar "$@"
diff -r play-2.0-orig/play play-2.0-cygwin/play
2a3,15
> case `uname` in
> CYGWIN*)
> function dirname {
> cygpath -m `command dirname $@`
> }
> typeset -fx dirname
> export BOOTPROP="file:///"
> ;;
> *)
> export BOOTPROP=""
> ;;
> esac
>
57c70
< java -Dsbt.ivy.home=$dir/repository -Dplay.home=$dir/framework -
Dsbt.boot.properties=$dir/framework/sbt/play.boot.properties -jar $dir/
framework/sbt/sbt-launch.jar "$@"
---
> java -Dsbt.ivy.home=$dir/repository -Dplay.home=$dir/framework -Dsbt.boot.properties=$BOOTPROP$dir/framework/sbt/play.boot.properties -jar $dir/framework/sbt/sbt-launch.jar "$@"

--Jean-Laurent

Paul Vorbach

unread,
Jun 19, 2012, 3:19:37 AM6/19/12
to play-fr...@googlegroups.com
Thank you very much. This helped me a lot.


Am Freitag, 15. Juni 2012 13:44:56 UTC+2 schrieb Paul Vorbach:
I am a Windows user. And I also use Git for version control. That’s why I am familiar with using the Git shell on Windows.

Unfortunately, Play cannot be run from a Git shell, saying something like:

Error during sbt execution: Could not find configuration file 'C:/Dev/Programs/P
lay/framework/sbt/play.boot.properties'.  Searched:
        file:/c:/Dev/Programs/
        file:/C:/Users/Paul/
        file:/C:/Dev/Programs/Play/framework/sbt/

Is there someone who found a solution to this problem, yet? Or will there be support for the Git shell in a future release?

Pedro Flores

unread,
Aug 16, 2013, 2:52:46 PM8/16/13
to play-fr...@googlegroups.com
Thanks a lot for this!!! saved my day.

El sábado, 13 de octubre de 2012 11:53:54 UTC-3, Jason Hu escribió:
This work for me.
=========================
1. download the patch file from https://gist.github.com/2939832, unzip play_cgywin.patch
2. start mingw32
3. cd /path/to/play_2.0.4
4. patch -p1 < /path/to/play_cgywin.patch
5. #build patch will get a error, but play can patch ok.
6  play help #will show help
=========================

Руслан Стельмаченко

unread,
Sep 4, 2013, 10:33:03 AM9/4/13
to play-fr...@googlegroups.com
Updated for play-2.1.3.
https://gist.github.com/xak2000/6437577


суббота, 13 октября 2012 г., 17:53:54 UTC+3 пользователь Jason Hu написал:

Christophe Marchal

unread,
Sep 23, 2013, 10:15:12 PM9/23/13
to play-fr...@googlegroups.com
Using cygwin, I had play 2.1.x working fine until downloading the version 2.2.0

Christophe Marchal

unread,
Sep 23, 2013, 10:44:04 PM9/23/13
to play-fr...@googlegroups.com
Adding more details. Using play.bat was working until 2.2.0. Now I get the following error

Error during sbt execution: Could not find configuration file 'file:///C:/Users/Avell%20G1511/Documents/bin/play/framework/sbt/play.boot.properties'.  Searched:
        file:/C:/Users/Avell%20G1511/Documents//src/project/
        file:/C:/Users/Avell%20G1511/
        file:/C:/Users/Avell%20G1511/Documents/bin/play/framework/sbt/

If you have any idea of what is going wrong, I will be thankfull
Reply all
Reply to author
Forward
0 new messages