-
Notifications
You must be signed in to change notification settings - Fork 28
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
#25: implement tool commandlet for intellij #297
#25: implement tool commandlet for intellij #297
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me 👍
cli/src/main/java/com/devonfw/tools/ide/tool/intellij/Intellij.java
Outdated
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/tool/intellij/Intellij.java
Outdated
Show resolved
Hide resolved
Pull Request Test Coverage Report for Build 9805587641Details
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me 👍
added copy recursively with folder name fixed test workarounds removed extra resolve directory workarounds
…nt-ToolCommandlet-for-Intellij
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ndemirca Thanks for your improvements and all the great work in this PR. 👍
However, we still have some last mile to go to complete this story.
See my review comments for details.
} else if (this.context.getSystemInfo().isLinux()) { | ||
return toolBinPath.resolve(IDEA_BASH_SCRIPT).toString(); | ||
} else { | ||
return getToolPath().resolve("IntelliJ IDEA CE.app").resolve("Contents").resolve("MacOS").resolve(IDEA).toString(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO this is still wrong as we discussed in our meeting.
I already merged the PR #359 and resolved the conflicts into this PR.
If we did everything correct there is no such thing anymore than IntelliJ IDEA CA.app
inside the software
folder.
Also please be aware the different editions of intelliJ will have a different *.app
name so your code would never work with the ultimate edition used by many projects (CE
stands for Community Edition).
I hope it was already clarified meanwhile why we need the generic MacOS workaround and avoid such ugly OS-switches here and handling of MacOS apps in individual commandlets.
Ideally like in devonfw-ide after installation we can just call idea
on any plattform to launch IntelliJ.
This PR therefore still needs some reworking...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added a very simple workaround for mac ultimate
and community/intellij
edition.
The dmg extractor still keeps the IntelliJ IDEA CE.app/Contents/... in the software folder, so this way should suffice for now. For another method to ideally call it with idea
on each platform, we need to do some more research and discussions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For further improvements I've added an issue: #440
if (this.context.getSystemInfo().isMac()) { | ||
setMacOsFilePermissions(getToolPath().resolve("IntelliJ IDEA CE.app").resolve("Contents").resolve("MacOS").resolve(IDEA)); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As described above.
cli/src/main/java/com/devonfw/tools/ide/tool/intellij/Intellij.java
Outdated
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/tool/intellij/Intellij.java
Outdated
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/tool/intellij/Intellij.java
Outdated
Show resolved
Hide resolved
…llij # Conflicts: # cli/src/main/java/com/devonfw/tools/ide/io/FileAccessImpl.java # cli/src/main/java/com/devonfw/tools/ide/tool/LocalToolCommandlet.java
…thub.com:ndemirca/IDEasy into feature/25-Implement-ToolCommandlet-for-Intellij
added new makeExecutable method to FileAccess added new RWX_RX_RX constant to FileAccess replaced complicated sert of execute permissions in Intellij with makeExecutable method added TODO for the implementation of plugin installation applid reformat to FileAccess
updated .gitattributes studio64.exe Co-authored-by: Jörg Hohwiller <[email protected]>
Thanks @jan-vcapgemini for resolving the merge problems that broke the DMG extraction. |
Closes #25