create-project causes exception on Windows.
sudoyu opened this issue · 2 comments
sudoyu commented
> gaiden create-project ninjagaiden
Exception in thread "main" java.lang.UnsupportedOperationException
at java.nio.file.Files.setPosixFilePermissions(Files.java:1989)
at gaiden.command.CreateProjectCommand$_execute_closure1.doCall(CreateProjectCommand.groovy:58)
and ninjagaiden
folder has these files.
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 2014/09/13 23:55 wrapper
-a--- 2014/09/13 23:49 745 config.groovy
-a--- 2014/09/13 23:49 5019 gaidenw
-a--- 2014/09/13 23:49 2371 gaidenw.bat
-a--- 2014/09/13 23:49 13 pages.groovy
-a--- 2014/09/13 23:49 17 README.md
please handle UnsupportedOperationException for Windows!
note: http://waman.hatenablog.com/entry/20120525/1337900102#permission
note: my windows environment depends on posh-gvm.
sudoyu commented
and this issue happens on 0.4.x branch.
sudoyu commented
wrapper
command causes same Exception.
> gaiden wrapper
Exception in thread "main" java.lang.UnsupportedOperationException
at java.nio.file.Files.setPosixFilePermissions(Files.java:1989)
at gaiden.command.WrapperCommand$_execute_closure1.doCall(WrapperCommand.groovy:45)
results:
> ls wrapper
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 2014/09/04 13:07 10728 gaiden-wrapper.jar
-a--- 2014/09/04 13:07 103 gaiden-wrapper.properties