Skip to content

Commit

Permalink
#452: IntelliJ add Ultimate Edition (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
jensschirmer authored Oct 1, 2020
1 parent 9d030dc commit 456bf59
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
11 changes: 11 additions & 0 deletions documentation/intellij.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,14 @@ You may also supply additional arguments as `devon intellij «args»`. These are
|`ws-reverse-add`|reverse merge adding new properties
|`create-script` |create launch script for this IDE, your current workspace and your OS
|=======================

There are variables that can be used for IntelliJ. These are explained by the following table:

.Variables of devonfw-ide for intelliJ
[options="header"]
|=======================
|*Variable*|*Default-Value*|*Meaning*
|*`INTELLIJ_VERSION`*|`latest_tested_version`|The version of the tool IntelliJ to install and use.
|*`INTELLIJ_EDITION_TYPE`*|`C`|The edition of the tool IntelliJ to install and use. The value `C` mean Community edition and the value `U` mean Ultimate edition. The Ultimate edition requires a license. The user has to buy the license separately and it is not part of devonfw-ide. The devonfw-ide only supports download and installation.
|=======================

10 changes: 8 additions & 2 deletions scripts/src/main/resources/scripts/command/intellij
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ function doSetup() {
if [ -n "${1}" ] || [ ! -d "${IDEA_HOME}" ]
then
software_version="${INTELLIJ_VERSION:-2019.2}"
software_edition_type="${INTELLIJ_EDITION_TYPE:-C}"
if doIsMacOs
then
software_type="dmg"
Expand All @@ -20,12 +21,17 @@ function doSetup() {
fi
#mirror="https://mirror.math.princeton.edu"
#mirror="https://ftp.osuosl.org"
download_url="https://download-cf.jetbrains.com/idea/ideaIC-${software_version}.${software_type}"
download_url="https://download-cf.jetbrains.com/idea/ideaI${software_edition_type}-${software_version}.${software_type}"
doInstall "${IDEA_HOME}" "${download_url}" "intellij" "${software_version}"
if [ "${?}" = 0 ] && doIsMacOs
then
echo "Doing workarounds for MacOS quirks..."
mv "${DEVON_IDE_HOME}/software/intellij/IntelliJ IDEA CE.app" "${DEVON_IDE_HOME}/software/intellij/IntelliJ.app"
if [ "${software_edition_type}" = "U" ]
then
mv "${DEVON_IDE_HOME}/software/intellij/IntelliJ IDEA.app" "${DEVON_IDE_HOME}/software/intellij/IntelliJ.app"
else
mv "${DEVON_IDE_HOME}/software/intellij/IntelliJ IDEA CE.app" "${DEVON_IDE_HOME}/software/intellij/IntelliJ.app"
fi
mkdir -p "${IDEA_HOME}/bin"
echo -e "#!/usr/bin/env bash\n'${DEVON_IDE_HOME}/software/intellij/IntelliJ.app/Contents/MacOS/idea' \$@" > "${IDEA_HOME}/bin/idea"
chmod a+x "${IDEA_HOME}/bin/idea"
Expand Down

0 comments on commit 456bf59

Please sign in to comment.