Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions documentation/docker.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ for our installation, due to it being license free compared to Docker Desktop wh

=== Docker Desktop

Docker Desktop can still be used by setting the variable DOCKER_EDITION equal to "DOCKERDESKTOP".
Docker Desktop can still be used by setting the variable DOCKER_EDITION equal to "docker".
This can be done by your projects ide-admin in the link:usage.asciidoc#developer[settings file]. If you want to switch from Rancher Desktop to Docker Desktop, then add a line with the following content
"DOCKER_EDITION=DOCKERDESKTOP"
"DOCKER_EDITION=docker"
(without the quotes around the allocation) to the file devon.properties located at the path ${DEVON_IDE_HOME}/conf/devon.properties.

=== Rancher Desktop
Expand Down
2 changes: 1 addition & 1 deletion documentation/eclipse.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ There are link:variables.asciidoc[variables] that can be used for Eclipse. These
|=======================
|*Variable*|*Meaning*
|*`ECLIPSE_VERSION`*|The version of the tool Eclipse to install and use.
|*`ECLIPSE_EDITION_TYPE`*|The edition of the tool Eclipse to install and use. You can choose between Java for standard edition or JEE for enterprise edition.
|*`ECLIPSE_EDITION`*|The edition of the tool Eclipse to install and use. The edition of the tool Eclipse to install and use. By default the jave edition will be used. Further editions will come up soon.
|*`EXTRA_JAVA_VERSION`|You can set this to a different (newer) version of Java used to launch your IDE (other than `JAVA_VERSION` that is used to build your project)
|=======================

Expand Down
7 changes: 1 addition & 6 deletions documentation/intellij.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,8 @@ These are explained by the following table:
|=======================
|*Variable*|*Meaning*
|*`INTELLIJ_VERSION`*|The version of the tool IntelliJ to install and use.
|*`INTELLIJ_EDITION_TYPE`*|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.
|*`INTELLIJ_EDITION`*|The edition of the tool IntelliJ to install and use. By default the Community edition will be installed. If you want to use the Ultimante Edition, the value has to be set to `ULTIMATE`. 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.
|*`EXTRA_JAVA_VERSION`*|You can set this to a different (newer) version of Java used to launch your IDE (other than `JAVA_VERSION` that is used to build your project)
|=======================

== plugins

Expand Down
7 changes: 4 additions & 3 deletions documentation/variables.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,16 @@ Please note that we are trying to minimize any potential side-effect from `devon
|*`JAVA_HOME`*|`$DEVON_IDE_HOME/software/java`|Path to JDK
|`SETTINGS_PATH`|`$DEVON_IDE_HOME/settings`|Path to your link:settings.asciidoc[settings]. To keep `oasp4j-ide` legacy behaviour set this to `$DEVON_IDE_HOME/workspaces/main/development/settings`.
|*`M2_REPO`*|`$DEVON_IDE_HOME/conf/.m2/repository`|Path to your local maven repository. For projects without high security demands, you may change this to the maven default `~/.m2/repository` and share your repository among multiple projects.
|*`MAVEN_HOME`*|`$DEVON_IDE_HOME/software/maven`|Path to Maven
|*`MVN_HOME`*|`$DEVON_IDE_HOME/software/mvn`|Path to Maven
|*`MAVEN_OPTS`*|`-Xmx512m -Duser.home=$DEVON_IDE_HOME/conf`|Maven options
|*`DOCKER_EDITION`*|e.g. `DOCKERDESKTOP`| If set as `DOCKERDESKTOP` the command `devon docker setup` will setup Docker Desktop globally at the users computer. Otherwise the setup of Rancher Desktop will be started.
|*`DOCKER_EDITION`*|e.g. `docker`| If set as `docker` the command `devon docker setup` will setup Docker Desktop globally at the users computer what requires a subscription/license for professional usage. If set to `rancher` or undefined it will install Rancher Desktop instead.
|*`GRAALVM_HOME`*|`$DEVON_IDE_HOME/software/extra/graalvm`|Path to GraalVM
|`DEVON_SOFTWARE_REPOSITORY`|`-`|Project specific or custom link:software.asciidoc#repository[software-repository].
|`DEVON_SOFTWARE_PATH`|`-`|Globally shared user-specific link:software.asciidoc#shared[local software installation location].
|`ECLIPSE_VMARGS`|`-Xms128M -Xmx768M -XX:MaxPermSize=256M`|JVM options for Eclipse
|deprecated: `ECLIPSE_PLUGINS`|`-`|Array with "feature groups" and "update site URLs" to customize required link:eclipse.asciidoc#plugins[eclipse plugins]. Deprecated - see link:eclipse.asciidoc#plugins[Eclipse plugins].
|`«TOOL»_VERSION`|`-`|The version of the tool `«TOOL»` to install and use (e.g. `ECLIPSE_VERSION` or `MAVEN_VERSION`).
|`«TOOL»_EDITION`|`-`|The edition of the tool `«TOOL»` to install and use (e.g. `ECLIPSE_EDITION`, `INTELLIJ_EDITION` or `DOCKER_EDITION`)
|`«TOOL»_VERSION`|`-`|The version of the tool `«TOOL»` to install and use (e.g. `ECLIPSE_VERSION` or `MVN_VERSION`).
|`EXTRA_JAVA_VERSION`|`-`|An additional (newer) version of link:java.asciidoc[java] that will be used to run java-based IDEs (e.g. link:eclipse.asciidoc[eclipse] or link:intellij.asciidoc[intellij]).
|`«TOOL»_BUILD_OPTS`|e.g.`clean install`|The arguments provided to the build-tool `«TOOL»` in order to run a build.
|`«TOOL»_RELEASE_OPTS`|e.g.`clean deploy -Dchangelist= -Pdeploy`|The arguments provided to the build-tool `«TOOL»` in order to perform a release build.
Expand Down
49 changes: 49 additions & 0 deletions scripts/src/main/resources/scripts/migrations/2023.06.001
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#!/usr/bin/env bash

source "$(dirname "${0}")"/../functions

function doAdaptConfigurationFiles() {
configuration_file="${1}"
[ -f "${configuration_file}" ] || return
cat "${configuration_file}" | awk '
/MAVEN_HOME/ {gsub("MAVEN_HOME","MVN_HOME")}
/MVN_HOME/, /maven/ {gsub("maven","mvn")}
/MAVEN_VERSION/ {gsub("MAVEN_VERSION","MVN_VERSION")}
/SONARQUBE_HOME/ {gsub("SONARQUBE_HOME","SONAR_HOME")}
/SONAR_HOME/, /sonarqube/ {gsub("sonarqube","sonar")}
/SONARQUBE_VERSION/ {gsub("SONARQUBE_VERSION","SONAR_VERSION")}
/INTELLIJ_EDITION_TYPE/ {gsub("INTELLIJ_EDITION_TYPE","INTELLIJ_EDITION")}
/INTELLIJ_EDITION/, /c/ {gsub("c","intellij")}
/INTELLIJ_EDITION/, /u/ {gsub("u","ultimate")}
/ECLIPSE_EDITION_TYPE/ {gsub("ECLIPSE_EDITION_TYPE","ECLIPSE_EDITION")}
/ECLIPSE_EDITION/, /java/ {gsub("java","eclipse")}
/DOCKERDESKTOP/ {gsub("DOCKERDESKTOP","docker")}
{print $0}
' > "${configuration_file}".tmp
diff "${configuration_file}".tmp "${configuration_file}" >/dev/null 2>&1
if [ "${?}" != "0" ]
then
mv "${configuration_file}".tmp "${configuration_file}"
if [ "${configuration_file}" = "~/devon.properties" ]
then
doWarning "Due to the changes in the devon.properties file in the user home directory, it is necessary to update all devonfw IDE installations to avoid errors."
fi
fi
}

cd "${DEVON_IDE_HOME}"
if [ ! -d "${DEVON_IDE_HOME}/urls" ]
then
git clone https://github.com/devonfw/ide-urls.git urls
fi
[ -d "${DEVON_IDE_HOME}"/mirrors ] && rm -rf "${DEVON_IDE_HOME}"/mirrors

doAdaptConfigurationFiles "${HOME}"/devon.properties
doAdaptConfigurationFiles "${DEVON_IDE_HOME}"/settings/devon.properties
doAdaptConfigurationFiles "${DEVON_IDE_HOME}"/conf/devon.properties
doAdaptConfigurationFiles "${DEVON_IDE_HOME}"/settings/devon/conf/devon.properties

find "${DEVON_IDE_HOME}"/workspaces/ -mindepth 2 -maxdepth 2 -name devon.properties -print | while read foundfile
do
doAdaptConfigurationFiles "${foundfile}"
done