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

#130 DirectoryArchiver: create parent directories for symlinks #131

Closed
wants to merge 4 commits into from

Conversation

jameshans
Copy link
Contributor

No description provided.

@plamentotev
Copy link
Member

Hi, thanks for the contribution and sorry for the a bit late reply. Looks good to me. If you have time it would be great if you can add test case as well.

DirectoryArchiver archiver = new DirectoryArchiver();
archiver.addSymlink( SYMLINK_FILE.getPath(), CURRENT_DIR.getPath() );
archiver.setDestFile( CURRENT_DIR );
archiver.execute();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for the tests. But there is already existing tests for symlinks for dir archivers (sorry forgot to mention it) - org.codehaus.plexus.archiver.SymlinkTest#testSymlinkDirArchiver. Maybe it would be better if this test is added there - to the same method or maybe a new method inside the same test class. I could help with it if you want.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for that, I didn't see the existing tests. That simplifies things.

@plamentotev
Copy link
Member

Thanks. I've re-based the branch, squashed the commit and did some small formatting change.

@plamentotev
Copy link
Member

I've expected that having the merge request number in the commit title will be enough to mark it as merged, but unfortunately didn't worked. Merged with 596257f

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

Successfully merging this pull request may close these issues.

DirectoryArchiver fails for symlinks if a parent directory doesn't exist
2 participants