Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnsupportedOperationException on Windows #69

Open
vsfalexanderpilch opened this issue Jun 28, 2018 · 0 comments
Open

UnsupportedOperationException on Windows #69

vsfalexanderpilch opened this issue Jun 28, 2018 · 0 comments

Comments

@vsfalexanderpilch
Copy link

vsfalexanderpilch commented Jun 28, 2018

The build of version 1.2.1 is failing with the following error:

checkCopyScript(io.fabric8.runsh.RunShLoaderTest) Time elapsed: 0.219 sec <<< ERROR!
java.lang.UnsupportedOperationException: null
at sun.nio.fs.WindowsFileSystemProvider.readAttributes(WindowsFileSystemProvider.java:192)
at java.nio.file.Files.readAttributes(Files.java:1737)
at java.nio.file.Files.getPosixFilePermissions(Files.java:2004)
at io.fabric8.runsh.RunShLoader.copyRunScript(RunShLoader.java:122)
at io.fabric8.runsh.RunShLoaderTest.checkCopyScript(RunShLoaderTest.java:37)

PosixFileAttributes aren't supported on windows. https://stackoverflow.com/questions/23151837/get-file-owner-metadata-information-with-java/42815355 is listing some alternatives.

I found this by accident, as the docker-maven-plugin didn't create the docker-extra folder with the script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant