Skip to content

Commit 72fba6f

Browse files
authored
Merge pull request #161 from dixyushi/tutorial-devon4jmigrate
Tutorial-devon4jmigrate
2 parents adc8356 + 3fad05f commit 72fba6f

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

devon4j-migrate/index.asciidoc

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
= Migrate a devon4j project to the latest version
2+
====
3+
This tutorial mainly focuses on migrating an older version of devon4j project to the latest version using devon4j migrate command.
4+
5+
6+
## Prerequisites
7+
* devonfw IDE
8+
9+
## Learning goals.
10+
Here in this tutorial you will learn
11+
* How to migrate an older version of devon4j project to the latest version.
12+
====
13+
14+
[step]
15+
--
16+
restoreDevonfwIde(["java","vscode"])
17+
--
18+
19+
20+
[step]
21+
--
22+
restoreWorkspace({"workspace": "devon4j-migrate"})
23+
--
24+
25+
====
26+
To demonstrate devon4j migrate you would need a sample devon4j project with any older version. Here, we have already created a project with an older version i.e. 2020.08.001 for you.
27+
28+
It is already cloned in workspace.
29+
30+
Execute below command for project migration from an older version to the latest version.
31+
[step]
32+
== Execute Migrate Command
33+
--
34+
executeCommand("devon java migrate", "devon java migrate", {"dir" : "devon4j-app-4tutorial"})
35+
--
36+
You will see the message similar to the one below, if project migrated successfully.
37+
`Successfully applied 4 migrations to migrate project from version devon4j:2020.08.001 to devon4j:2021.04.002.`
38+
39+
Here, 2020.08.001 is the devon4j's older version and 2021.04.002 is devon4j's latest version.
40+
41+
====
42+
43+
44+
45+
====
46+
## Conclusion
47+
You have successfully migrated the sample project from an older version to the latest version using command line!!
48+
49+
For more details on devon4j java commands for various functionalities and the arguments (devon java «args») follow
50+
https://devonfw.com/website/pages/docs/devonfw-ide-usage.asciidoc.html#java.asciidoc
51+
====

0 commit comments

Comments
 (0)