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

File attributes not set correctly? #17

Open
bertfrees opened this issue Jul 29, 2013 · 0 comments
Open

File attributes not set correctly? #17

bertfrees opened this issue Jul 29, 2013 · 0 comments

Comments

@bertfrees
Copy link

I would like to set the mode on some files, but it seems to me like this feature isn't implemented yet. Am I right?

Changing this in the code did the trick for me (but I'm sure it's not the the way you intended):

In org.codehaus.mojo.unix.core.FsFileCollector.CopyFileIoEffect, on line 159, I added:

File toFile = root.resolve(adjustedTo.path).file;
Option<UnixFileMode> mode = adjustedTo.attributes.mode;
if (mode.isSome()) {
    UnixUtil.chmod(toFile, mode.some().toOctalString());

Also, when is a recent version going to be available in a public repository?

Thanks for this great plugin!
Bert

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