forked from devonfw/IDEasy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
178 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
cli/src/test/java/com/devonfw/tools/ide/commandlet/UpgradeSettingsCommandletTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.devonfw.tools.ide.commandlet; | ||
|
||
import org.junit.Test; | ||
|
||
import com.devonfw.tools.ide.context.AbstractIdeContextTest; | ||
import com.devonfw.tools.ide.context.IdeTestContext; | ||
|
||
public class UpgradeSettingsCommandletTest extends AbstractIdeContextTest { | ||
|
||
private static final String PROJECT_INTELLIJ = "upgrade-settings"; | ||
private final IdeTestContext context = newContext(PROJECT_INTELLIJ); | ||
|
||
@Test | ||
public void testDevonPropertiesUpgrade() { | ||
//arrange | ||
UpgradeSettingsCommandlet upgradeSettingsCommandlet = new UpgradeSettingsCommandlet(context); | ||
//act | ||
upgradeSettingsCommandlet.run(); | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
cli/src/test/resources/ide-projects/upgrade-settings/_ide/bin/ide
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
echo "ide $*" |
1 change: 1 addition & 0 deletions
1
...e-projects/upgrade-settings/_ide/software/default/az/az/testVersion/.ide.software.version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
testVersion |
1 change: 1 addition & 0 deletions
1
cli/src/test/resources/ide-projects/upgrade-settings/_ide/software/readme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
this is the tool repository |
1 change: 1 addition & 0 deletions
1
.../test/resources/ide-projects/upgrade-settings/_ide/urls/java/java/17.0.6/linux_x64.sha256
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
c2de7dfbd9f8faaa21b4cdd8518f826dd558c9ab24a0616b3ed28437a674a97b |
1 change: 1 addition & 0 deletions
1
...rc/test/resources/ide-projects/upgrade-settings/_ide/urls/java/java/17.0.6/linux_x64.urls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
http://localhost:1111/installTest/linux |
1 change: 1 addition & 0 deletions
1
...rc/test/resources/ide-projects/upgrade-settings/_ide/urls/java/java/17.0.6/mac_x64.sha256
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
c2de7dfbd9f8faaa21b4cdd8518f826dd558c9ab24a0616b3ed28437a674a97b |
1 change: 1 addition & 0 deletions
1
cli/src/test/resources/ide-projects/upgrade-settings/_ide/urls/java/java/17.0.6/mac_x64.urls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
http://localhost:1111/installTest/macOS |
20 changes: 20 additions & 0 deletions
20
cli/src/test/resources/ide-projects/upgrade-settings/_ide/urls/java/java/17.0.6/status.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"manual": true, | ||
"urls": { | ||
"-680270697": { | ||
"success": { | ||
"timestamp": "2023-04-28T16:27:32.819394600Z" | ||
} | ||
}, | ||
"-896197542": { | ||
"success": { | ||
"timestamp": "2023-04-28T16:27:47.658175400Z" | ||
} | ||
}, | ||
"-310367019": { | ||
"success": { | ||
"timestamp": "2023-04-28T16:28:02.221367500Z" | ||
} | ||
} | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
.../test/resources/ide-projects/upgrade-settings/_ide/urls/java/java/17.0.6/windows_x64.urls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
http://localhost:1111/installTest/windows |
1 change: 1 addition & 0 deletions
1
...esources/ide-projects/upgrade-settings/_ide/urls/java/java/17.0.6/windows_x64.urls.sha256
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
aa64bee5f7ba56fbbd60d766f3a652600f81571ae5e996804694c69bf731af8b |
10 changes: 10 additions & 0 deletions
10
cli/src/test/resources/ide-projects/upgrade-settings/_ide/urls/mvn/mvn/3.0.5/status.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"manual": false, | ||
"urls": { | ||
"-997329125": { | ||
"success": { | ||
"timestamp": "2023-04-28T07:12:26.601818Z" | ||
} | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
cli/src/test/resources/ide-projects/upgrade-settings/_ide/urls/mvn/mvn/3.1.0/status.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"manual": false, | ||
"urls": { | ||
"-997329125": { | ||
"success": { | ||
"timestamp": "2023-04-28T07:12:26.601818Z" | ||
} | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
cli/src/test/resources/ide-projects/upgrade-settings/_ide/urls/mvn/mvn/3.2.1/status.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
"manual" : false, | ||
"urls" : { | ||
"-997329125" : { | ||
"success" : { | ||
"timestamp" : "2023-04-28T07:12:26.601818Z" | ||
} | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
.../resources/ide-projects/upgrade-settings/_ide/urls/mvn/secondMvnEdition/3.2.1/status.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
"manual" : false, | ||
"urls" : { | ||
"-997329125" : { | ||
"success" : { | ||
"timestamp" : "2023-04-28T07:12:26.601818Z" | ||
} | ||
} | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
cli/src/test/resources/ide-projects/upgrade-settings/_ide/urls/readme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
this is the download metadata |
14 changes: 14 additions & 0 deletions
14
cli/src/test/resources/ide-projects/upgrade-settings/project/conf/devon.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#******************************************************************************** | ||
# This file contains project specific environment variables defined by the user | ||
#******************************************************************************** | ||
M2_REPO=~/.m2/repository | ||
MVN_VERSION=3.9.1 | ||
SOME=some-${UNDEFINED} | ||
TEST_ARGS1=${TEST_ARGS1} conf1 | ||
TEST_ARGS2=${TEST_ARGS2} conf2 | ||
TEST_ARGS5=${TEST_ARGS5} conf5 | ||
TEST_ARGS6=${TEST_ARGS6} conf6 | ||
TEST_ARGS7=${TEST_ARGS7} conf7 | ||
TEST_ARGS8=${TEST_ARGS8} conf8 | ||
TEST_ARGSa=${TEST_ARGS1} ${TEST_ARGS3} confa | ||
TEST_ARGSc=${TEST_ARGSc} confc |
13 changes: 13 additions & 0 deletions
13
cli/src/test/resources/ide-projects/upgrade-settings/project/home/.ide/ide.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#******************************************************************************** | ||
# This file contains the global configuration from the user HOME directory. | ||
#******************************************************************************** | ||
DOCKER_EDITION=docker | ||
FOO=foo-${BAR} | ||
TEST_ARGS1=${TEST_ARGS1} user1 | ||
TEST_ARGS2=${TEST_ARGS2} user2 | ||
TEST_ARGS3=${TEST_ARGS3} user3 | ||
TEST_ARGS7=user7 | ||
TEST_ARGS10=user10 | ||
TEST_ARGSb=userb | ||
TEST_ARGSc=${TEST_ARGS1} userc | ||
TEST_ARGSd=${TEST_ARGS1} userd |
3 changes: 3 additions & 0 deletions
3
...e-projects/upgrade-settings/project/home/.ide/settings/eclipse/plugins/anyedit.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
plugin_url=https://raw.githubusercontent.com/iloveeclipse/plugins/latest/ | ||
plugin_id=AnyEditTools.feature.group | ||
plugin_active=false |
1 change: 1 addition & 0 deletions
1
cli/src/test/resources/ide-projects/upgrade-settings/project/home/Downloads/ide/readme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
this is the download cache |
2 changes: 2 additions & 0 deletions
2
cli/src/test/resources/ide-projects/upgrade-settings/project/home/environment.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# if this file is present, it will replace and mock System.getenv in the text context | ||
PATH=${IDE_ROOT}/_ide/bin |
1 change: 1 addition & 0 deletions
1
cli/src/test/resources/ide-projects/upgrade-settings/project/home/readme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
this is the users HOME directory |
1 change: 1 addition & 0 deletions
1
cli/src/test/resources/ide-projects/upgrade-settings/project/readme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
this is the IDE_HOME directory |
1 change: 1 addition & 0 deletions
1
cli/src/test/resources/ide-projects/upgrade-settings/project/scripts/ide
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
the IDE CLI bash script |
3 changes: 3 additions & 0 deletions
3
...sources/ide-projects/upgrade-settings/project/settings/eclipse/plugins/anyedit.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
plugin_url=https://raw.githubusercontent.com/iloveeclipse/plugins/latest/ | ||
plugin_id=AnyEditTools.feature.group | ||
plugin_active=true |
3 changes: 3 additions & 0 deletions
3
...rces/ide-projects/upgrade-settings/project/settings/eclipse/plugins/checkstyle.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
plugin_url=https://checkstyle.org/eclipse-cs-update-site | ||
plugin_id=net.sf.eclipsecs.feature.group | ||
plugin_active=true |
18 changes: 18 additions & 0 deletions
18
cli/src/test/resources/ide-projects/upgrade-settings/project/settings/ide.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#******************************************************************************** | ||
# This file contains project specific environment variables | ||
#******************************************************************************** | ||
JAVA_VERSION=17* | ||
MVN_VERSION=3.9.0 | ||
ECLIPSE_VERSION=2023-03 | ||
INTELLIJ_EDITION=ultimate | ||
IDE_TOOLS=mvn,eclipse | ||
BAR=bar-${SOME} | ||
TEST_ARGS1=${TEST_ARGS1} settings1 | ||
TEST_ARGS4=${TEST_ARGS4} settings4 | ||
TEST_ARGS5=${TEST_ARGS5} settings5 | ||
TEST_ARGS6=${TEST_ARGS6} settings6 | ||
TEST_ARGS7=${TEST_ARGS7} settings7 | ||
TEST_ARGS8=settings8 | ||
TEST_ARGS9=settings9 | ||
TEST_ARGSb=${TEST_ARGS10} settingsb ${TEST_ARGSa} ${TEST_ARGSb} | ||
TEST_ARGSc=${TEST_ARGSc} settingsc |
Empty file.
1 change: 1 addition & 0 deletions
1
cli/src/test/resources/ide-projects/upgrade-settings/project/setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
just a marker for detection of IDE_HOME |
1 change: 1 addition & 0 deletions
1
cli/src/test/resources/ide-projects/upgrade-settings/project/software/java/bin/readme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
this is the main workspace of basic |
1 change: 1 addition & 0 deletions
1
...test/resources/ide-projects/upgrade-settings/project/software/mvn/.devon.software.version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.9.4 |
5 changes: 5 additions & 0 deletions
5
cli/src/test/resources/ide-projects/upgrade-settings/project/software/mvn/bin/mvn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
if [ "$1" == "-h" ]; then | ||
echo "usage: mvn [options] [<goal(s)>] [<phase(s)>]" | ||
fi | ||
echo "mvn $*" |
1 change: 1 addition & 0 deletions
1
cli/src/test/resources/ide-projects/upgrade-settings/project/software/mvn/bin/readme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
this is the java bin folder |
1 change: 1 addition & 0 deletions
1
cli/src/test/resources/ide-projects/upgrade-settings/project/software/npm/bin/readme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
this is npm software of basic |
12 changes: 12 additions & 0 deletions
12
...c/test/resources/ide-projects/upgrade-settings/project/workspaces/foo-test/ide.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#******************************************************************************** | ||
# Type of {@link EnvironmentVariables} from the | ||
# {@link com.devonfw.tools.ide.context.IdeContext#getWorkspacePath() workspace directory}. | ||
#******************************************************************************** | ||
TEST_ARGS1=${TEST_ARGS1} workspace1 | ||
TEST_ARGS3=${TEST_ARGS3} workspace3 | ||
TEST_ARGS6=${TEST_ARGS6} workspace6 | ||
TEST_ARGS7=${TEST_ARGS7} workspace7 | ||
TEST_ARGS8=${TEST_ARGS8} workspace8 | ||
TEST_ARGS9=${TEST_ARGS9} workspace9 | ||
TEST_ARGS10=${TEST_ARGS10} workspace10 | ||
TEST_ARGSd=${TEST_ARGSd} workspaced |
1 change: 1 addition & 0 deletions
1
...st/resources/ide-projects/upgrade-settings/project/workspaces/foo-test/my-git-repo/readme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
my-git-repo in foo-test workspace of basic |
1 change: 1 addition & 0 deletions
1
cli/src/test/resources/ide-projects/upgrade-settings/project/workspaces/foo-test/readme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
this is the foo-test workspace of basic |
1 change: 1 addition & 0 deletions
1
cli/src/test/resources/ide-projects/upgrade-settings/project/workspaces/main/readme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
this is the main workspace of basic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
this is the IDE_ROOT directory |