Skip to content

Commit d2cdf2c

Browse files
WINDUP_3579
1 parent 34ac802 commit d2cdf2c

File tree

6 files changed

+78
-10
lines changed

6 files changed

+78
-10
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ html/
44
*/build/*
55
Gemfile.lock
66
*/master.html
7+
.idea/

.idea/windup-documentation.iml

+23-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/cli-guide-mtr/master.adoc

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
:mtr:
22
include::topics/templates/document-attributes.adoc[]
3+
:_content-type: ASSEMBLY
4+
[id="cli-guide"]
5+
= CLI Guide
6+
37
:toc:
48
:toclevels: 4
59
:numbered:
610
:imagesdir: topics/images
711
:context: cli-guide
812
:cli-guide:
9-
:_content-type: ASSEMBLY
10-
[id="cli-guide"]
11-
= CLI Guide
1213

1314
//Inclusive language statement
1415
include::topics/making-open-source-more-inclusive.adoc[]
@@ -35,6 +36,9 @@ include::topics/cli-run.adoc[leveloffset=+2]
3536
// Use OpenRewrite recipes
3637
include::topics/using-openrewrite-recipes.adoc[leveloffset=+3]
3738

39+
// Available OpenRewrite recipes
40+
include::topics/available-openrewrite-recipes.adoc[leveloffset=+4]
41+
3842
// Access the Report
3943
include::topics/access-report.adoc[leveloffset=+2]
4044

docs/cli-guide/master.adoc

+3
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ include::topics/cli-run.adoc[leveloffset=+2]
3636
// Use OpenRewrite recipes
3737
include::topics/using-openrewrite-recipes.adoc[leveloffset=+3]
3838

39+
// Available OpenRewrite recipes
40+
include::topics/available-openrewrite-recipes.adoc[leveloffset=+4]
41+
3942
// Access the Report
4043
include::topics/access-report.adoc[leveloffset=+2]
4144

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// Module included in the following module:
2+
//
3+
// * docs/cli-guide-mtr/master.adoc
4+
5+
[id=available-openrewrite-recipes_{context}]
6+
= Available OpenRewrite recipes
7+
8+
.Available OpenRewrite recipes
9+
[cols="22%,26%,26%,26%", options="header"]
10+
|====
11+
|Migration path
12+
|Purpose
13+
|rewrite.configLocation
14+
|activeRecipes
15+
16+
|Java EE to Jakarta EE
17+
|Replace import of `javax` packages with equivalent `jakarta` packages
18+
19+
Replace `javax` artifacts, declared within `pom.xml` files, with the `jakarta` equivalents
20+
21+
|`<MTR_HOME>/rules/openrewrite/jakarta \ /javax/imports/rewrite.yml`
22+
|`org.jboss.windup.JavaxToJakarta`
23+
24+
|Java EE to Jakarta EE
25+
|Rename bootstrapping files
26+
|`<MTR_HOME>/rules/openrewrite/jakarta \ /javax/bootstrapping/rewrite.yml`
27+
|`org.jboss.windup.jakarta.javax. \ BootstrappingFiles`
28+
29+
|Java EE to Jakarta EE
30+
|Transform `persistence.xml` configuration
31+
|`<MTR_HOME>/rules/openrewrite/jakarta \ /javax/xml/rewrite.yml`
32+
|`org.jboss.windup.javax-jakarta. \ PersistenceXML`
33+
34+
|Spring Boot to Quarkus
35+
|Replace `spring.jpa.hibernate.ddl-auto` property within files matching `application*.properties`
36+
|`<MTR_HOME>/rules/openrewrite/quarkus \ /springboot/properties/rewrite.yml`
37+
|`org.jboss.windup.sb-quarkus.Properties`
38+
|====

docs/topics/using-openrewrite-recipes.adoc

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Module included in the following module:
22
//
3-
// * docs/topics/cli-run
3+
// * docs/cli-guide-mtr/master.adoc
44

55
[id=using-openrewrite-recipes_{context}]
66
= Using OpenRewrite recipes
@@ -23,7 +23,7 @@ For example, the OpenRewrite recipe `org.jboss.windup.JavaxToJakarta` renames im
2323
[source,terminal,subs="attributes+"]
2424
----
2525
$ ./windup-cli --openrewrite --input </path/to/source/project> \
26-
"-Drewrite.configLocation=<path/to/rewrite.yaml> \
26+
"-Drewrite.configLocation=<path/to/rewrite.yaml>" \
2727
"-DactiveRecipes=<recipe_name>" --goal dryRun
2828
----
2929

@@ -41,7 +41,7 @@ You can include more than one recipe by specifying each in the `activeRecipes` p
4141
+
4242
[source, terminal,subs="attributes+"]
4343
----
44-
"DactiveRecipes=org.jboss.windup.JavaxInjectToJakartaInject, \
44+
"-DactiveRecipes=org.jboss.windup.JavaxInjectToJakartaInject, \
4545
org.jboss.windup.JavaxEjbToJakartaEjb"
4646
----
4747

@@ -53,7 +53,7 @@ You can include more than one recipe by specifying each in the `activeRecipes` p
5353
+
5454
[source,terminal,subs="attributes+"]
5555
----
56-
$ ../windup-cli --openrewrite --input </path/to/source/project> \
57-
"-Drewrite.configLocation=<path/to/rewrite.yaml> \
56+
$ ./windup-cli --openrewrite --input </path/to/source/project> \
57+
"-Drewrite.configLocation=<path/to/rewrite.yaml>" \
5858
"-DactiveRecipes=<recipe_name>" --goal run
59-
----
59+
----

0 commit comments

Comments
 (0)