#1788: Created a commandlet to simulate the behaviour of ln -s#1847
Conversation
Added Unit Test for LnCommandlet Class
Coverage Report for CI Build 26474880870Warning No base build found for commit Coverage: 71.114%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsRequires a base build to compare against. How to fix this → Coverage Stats💛 - Coveralls |
jakozian
left a comment
There was a problem hiding this comment.
Nice approach! But i requested changes because most things regarding the issue can be done with FileAccess/FileAccessImpl.
Usage of FileAccess instead of duplication
…c or hard link Changed variable name of source to target
…s://github.com/KarimALotfy/IDEasy into feature/1788-add-ln-commandlet-to-create-links
…t to symlinks, since existing symlinks or junctions will be overwritten anyway
|
@hohwille the build now is successful after removing the failing test. It was not failing on my local since it is enabled only on Linux and Mac , and was actually unnecessary, since the -f flag doesn't have an effect on the link method, to keep existing functionality |
hohwille
left a comment
There was a problem hiding this comment.
@KarimALotfy thanks for your improvements. 👍
Sorry, if I still was not clear enough but my vision is that we make the boolean parameters override and relative configurable via flags.
You did this but only partially and I would love to have it consistent.
- Converted StringProperty of paths to PathProperty - Added a -r flag to identify relative paths - Added condition override for creating symlinks
…s://github.com/KarimALotfy/IDEasy into feature/1788-add-ln-commandlet-to-create-links
…/1788-add-ln-commandlet-to-create-links
- Remove override parameter and force flag from link method and ln commandlet - Modified deleteLinkIfExists to handle all types of links - Modified LnCommandletTest to handle all OS's in the same tests, instead of separating them by EnabledOnOs
…s://github.com/KarimALotfy/IDEasy into feature/1788-add-ln-commandlet-to-create-links
…/1788-add-ln-commandlet-to-create-links
|
@KarimALotfy I have already rested this PR on Windows and found but #1982 but that is not a bug of your implementation but a bug that was already there before. |
|
rested also on Ubuntu: works like a charm. |
…devonfw#1847) Co-authored-by: Jörg Hohwiller <hohwille@users.noreply.github.com>
This PR fixes #1788
Implemented changes:
Added ide ln -s commandlet to create file links.
Checklist for this PR
Make sure everything is checked before merging this PR. For further info please also see
our DoD.
mvn clean testlocally all tests pass and build is successful#«issue-id»: «brief summary»(e.g.#921: fixed setup.bat). If no issue ID exists, title only.In Progressand assigned to you or there is no issue (might happen for very small PRs)with
internal