Play 2.x.xでdistしたzipのパスがおかしくなる



Dist on Windows packages files in conf folder incorrectly

File names under conf directory in the result .zip file start with '\'. As a result application fails to start.

Steps to reproduce: on dev machine (Windows 7) in play console run 'dist'
Copy zip file to target server (Linux). Run 'unzip', cd 'xxx/bin', ./xxx. Nothing happens and the application fails to start.

That's how conf directory looks like:
[root@RH-ENGINE-QA]# ll conf
-rwxr-xr-x 1 root root 1926 Nov 21 15:52 \application.conf
-rwxr-xr-x 1 root root 919 Dec 10 16:05 \ehcache.xml
-rwxr-xr-x 1 root root 305 Dec 15 11:50 \servers.xml
-rwxr-xr-x 1 root root 827 Dec 15 12:05 \trade-monitor-context.xml

After renaming files to be without leading '\', the startup succeeds.

Play version 2.2.1


failed in windows 8

It's due to a bug in a plugin of Play:
playframework/playframework#2184 (comment)
There is an easy workaround: Each time before publish a release, unzip and zip the release on a Linux/Unix system. :)