@adobe/aem-cs-source-migration-repository-modernizer 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/coverage/clover.xml +114 -110
- package/coverage/coverage-final.json +4 -4
- package/coverage/lcov-report/block-navigation.js +9 -1
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +25 -20
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +40 -0
- package/coverage/lcov-report/src/create-base-project-structure.js.html +67 -14
- package/coverage/lcov-report/src/index.html +25 -20
- package/coverage/lcov-report/src/restructure-filters.js.html +14 -9
- package/coverage/lcov-report/src/restructure-pom.js.html +12 -7
- package/coverage/lcov-report/src/util/constants.js.html +8 -3
- package/coverage/lcov-report/src/util/index.html +8 -3
- package/coverage/lcov-report/src/util/pom-manipulation-util.js.html +10 -5
- package/coverage/lcov.info +204 -192
- package/executors/config.yaml +0 -1
- package/junit.xml +34 -34
- package/package.json +3 -3
- package/src/create-base-project-structure.js +18 -2
- package/src/restructure-config.js +35 -3
- package/target/result.log +2 -2
- package/test/create-base-project-structure.test.js +8 -5
- package/test/resources/com.adobe.config.test.cfg.json +1 -0
- package/test/resources/com.adobe.config.test.xml +42 -0
package/coverage/lcov.info
CHANGED
|
@@ -1,30 +1,32 @@
|
|
|
1
1
|
TN:
|
|
2
2
|
SF:src/create-base-project-structure.js
|
|
3
|
-
FN:
|
|
4
|
-
FN:
|
|
5
|
-
FN:
|
|
6
|
-
FN:
|
|
7
|
-
FN:
|
|
8
|
-
FN:
|
|
9
|
-
FN:
|
|
10
|
-
FN:
|
|
11
|
-
FN:
|
|
12
|
-
FN:
|
|
13
|
-
FN:
|
|
14
|
-
FN:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
3
|
+
FN:34,parsePomFile
|
|
4
|
+
FN:53,(anonymous_1)
|
|
5
|
+
FN:210,createProject
|
|
6
|
+
FN:367,(anonymous_3)
|
|
7
|
+
FN:431,setPackageArtifactAndGroupId
|
|
8
|
+
FN:519,copyCoreBundles
|
|
9
|
+
FN:534,(anonymous_6)
|
|
10
|
+
FN:559,copyOtherModules
|
|
11
|
+
FN:560,(anonymous_8)
|
|
12
|
+
FN:565,(anonymous_9)
|
|
13
|
+
FN:586,(anonymous_10)
|
|
14
|
+
FN:598,(anonymous_11)
|
|
15
|
+
FN:624,copyModuleFromSource
|
|
16
|
+
FNF:13
|
|
17
|
+
FNH:12
|
|
18
|
+
FNDA:5,parsePomFile
|
|
19
|
+
FNDA:3,(anonymous_1)
|
|
18
20
|
FNDA:5,createProject
|
|
19
|
-
FNDA:5,(
|
|
21
|
+
FNDA:5,(anonymous_3)
|
|
20
22
|
FNDA:5,setPackageArtifactAndGroupId
|
|
21
23
|
FNDA:5,copyCoreBundles
|
|
22
|
-
FNDA:5,(
|
|
24
|
+
FNDA:5,(anonymous_6)
|
|
23
25
|
FNDA:5,copyOtherModules
|
|
24
|
-
FNDA:5,(
|
|
25
|
-
FNDA:1,(
|
|
26
|
-
FNDA:10,(
|
|
27
|
-
FNDA:0,(
|
|
26
|
+
FNDA:5,(anonymous_8)
|
|
27
|
+
FNDA:1,(anonymous_9)
|
|
28
|
+
FNDA:10,(anonymous_10)
|
|
29
|
+
FNDA:0,(anonymous_11)
|
|
28
30
|
FNDA:5,copyModuleFromSource
|
|
29
31
|
DA:19,1
|
|
30
32
|
DA:20,1
|
|
@@ -35,186 +37,196 @@ DA:24,1
|
|
|
35
37
|
DA:25,1
|
|
36
38
|
DA:26,1
|
|
37
39
|
DA:27,1
|
|
38
|
-
DA:
|
|
39
|
-
DA:
|
|
40
|
-
DA:
|
|
41
|
-
DA:
|
|
42
|
-
DA:
|
|
43
|
-
DA:
|
|
44
|
-
DA:
|
|
45
|
-
DA:
|
|
46
|
-
DA:
|
|
47
|
-
DA:
|
|
48
|
-
DA:
|
|
49
|
-
DA:
|
|
50
|
-
DA:
|
|
51
|
-
DA:
|
|
52
|
-
DA:
|
|
53
|
-
DA:
|
|
54
|
-
DA:
|
|
55
|
-
DA:
|
|
56
|
-
DA:
|
|
57
|
-
DA:135,
|
|
58
|
-
DA:
|
|
59
|
-
DA:
|
|
60
|
-
DA:
|
|
61
|
-
DA:
|
|
62
|
-
DA:
|
|
63
|
-
DA:
|
|
64
|
-
DA:
|
|
65
|
-
DA:
|
|
66
|
-
DA:
|
|
67
|
-
DA:
|
|
68
|
-
DA:
|
|
69
|
-
DA:
|
|
70
|
-
DA:
|
|
71
|
-
DA:
|
|
72
|
-
DA:
|
|
73
|
-
DA:
|
|
74
|
-
DA:
|
|
75
|
-
DA:231,
|
|
40
|
+
DA:35,5
|
|
41
|
+
DA:36,5
|
|
42
|
+
DA:37,5
|
|
43
|
+
DA:39,5
|
|
44
|
+
DA:44,1
|
|
45
|
+
DA:54,3
|
|
46
|
+
DA:59,3
|
|
47
|
+
DA:61,3
|
|
48
|
+
DA:62,1
|
|
49
|
+
DA:69,1
|
|
50
|
+
DA:79,1
|
|
51
|
+
DA:83,1
|
|
52
|
+
DA:90,1
|
|
53
|
+
DA:100,1
|
|
54
|
+
DA:104,1
|
|
55
|
+
DA:109,1
|
|
56
|
+
DA:114,1
|
|
57
|
+
DA:121,1
|
|
58
|
+
DA:131,1
|
|
59
|
+
DA:135,2
|
|
60
|
+
DA:136,2
|
|
61
|
+
DA:140,2
|
|
62
|
+
DA:145,2
|
|
63
|
+
DA:151,3
|
|
64
|
+
DA:153,3
|
|
65
|
+
DA:154,4
|
|
66
|
+
DA:162,4
|
|
67
|
+
DA:163,1
|
|
68
|
+
DA:164,1
|
|
69
|
+
DA:175,3
|
|
70
|
+
DA:180,3
|
|
71
|
+
DA:193,3
|
|
72
|
+
DA:206,3
|
|
73
|
+
DA:218,5
|
|
74
|
+
DA:222,5
|
|
75
|
+
DA:223,1
|
|
76
|
+
DA:230,5
|
|
77
|
+
DA:231,5
|
|
78
|
+
DA:233,2
|
|
76
79
|
DA:237,2
|
|
77
|
-
DA:
|
|
78
|
-
DA:
|
|
79
|
-
DA:
|
|
80
|
-
DA:
|
|
81
|
-
DA:
|
|
80
|
+
DA:244,2
|
|
81
|
+
DA:247,2
|
|
82
|
+
DA:253,2
|
|
83
|
+
DA:257,2
|
|
84
|
+
DA:264,2
|
|
82
85
|
DA:267,2
|
|
83
|
-
DA:
|
|
84
|
-
DA:
|
|
85
|
-
DA:
|
|
86
|
-
DA:283,3
|
|
86
|
+
DA:272,2
|
|
87
|
+
DA:276,2
|
|
88
|
+
DA:283,2
|
|
87
89
|
DA:287,5
|
|
88
|
-
DA:
|
|
89
|
-
DA:
|
|
90
|
-
DA:
|
|
91
|
-
DA:
|
|
92
|
-
DA:
|
|
93
|
-
DA:
|
|
94
|
-
DA:
|
|
95
|
-
DA:
|
|
96
|
-
DA:
|
|
97
|
-
DA:
|
|
98
|
-
DA:
|
|
99
|
-
DA:
|
|
100
|
-
DA:
|
|
101
|
-
DA:
|
|
102
|
-
DA:
|
|
103
|
-
DA:
|
|
104
|
-
DA:
|
|
105
|
-
DA:
|
|
106
|
-
DA:
|
|
107
|
-
DA:
|
|
108
|
-
DA:
|
|
109
|
-
DA:
|
|
110
|
-
DA:
|
|
111
|
-
DA:
|
|
112
|
-
DA:
|
|
90
|
+
DA:288,3
|
|
91
|
+
DA:292,3
|
|
92
|
+
DA:299,3
|
|
93
|
+
DA:303,5
|
|
94
|
+
DA:307,5
|
|
95
|
+
DA:314,5
|
|
96
|
+
DA:318,5
|
|
97
|
+
DA:325,5
|
|
98
|
+
DA:329,5
|
|
99
|
+
DA:336,5
|
|
100
|
+
DA:340,5
|
|
101
|
+
DA:349,5
|
|
102
|
+
DA:360,5
|
|
103
|
+
DA:362,5
|
|
104
|
+
DA:367,5
|
|
105
|
+
DA:368,5
|
|
106
|
+
DA:382,5
|
|
107
|
+
DA:386,5
|
|
108
|
+
DA:392,5
|
|
109
|
+
DA:394,3
|
|
110
|
+
DA:439,5
|
|
111
|
+
DA:452,5
|
|
112
|
+
DA:457,5
|
|
113
|
+
DA:470,5
|
|
114
|
+
DA:475,5
|
|
115
|
+
DA:488,5
|
|
116
|
+
DA:493,5
|
|
113
117
|
DA:506,5
|
|
114
|
-
DA:
|
|
115
|
-
DA:
|
|
116
|
-
DA:
|
|
117
|
-
DA:
|
|
118
|
-
DA:
|
|
119
|
-
DA:520,5
|
|
120
|
-
DA:524,5
|
|
118
|
+
DA:521,5
|
|
119
|
+
DA:522,5
|
|
120
|
+
DA:526,5
|
|
121
|
+
DA:527,1
|
|
122
|
+
DA:533,5
|
|
121
123
|
DA:534,5
|
|
122
|
-
DA:
|
|
123
|
-
DA:
|
|
124
|
-
DA:
|
|
125
|
-
DA:
|
|
126
|
-
DA:
|
|
127
|
-
DA:
|
|
128
|
-
DA:
|
|
129
|
-
DA:
|
|
130
|
-
DA:
|
|
131
|
-
DA:
|
|
132
|
-
DA:567,5
|
|
133
|
-
DA:568,5
|
|
124
|
+
DA:535,5
|
|
125
|
+
DA:536,5
|
|
126
|
+
DA:540,5
|
|
127
|
+
DA:550,5
|
|
128
|
+
DA:560,5
|
|
129
|
+
DA:561,5
|
|
130
|
+
DA:563,5
|
|
131
|
+
DA:564,5
|
|
132
|
+
DA:565,1
|
|
133
|
+
DA:566,1
|
|
134
134
|
DA:570,5
|
|
135
|
-
DA:
|
|
136
|
-
DA:
|
|
137
|
-
DA:
|
|
138
|
-
DA:583,
|
|
139
|
-
DA:
|
|
140
|
-
DA:
|
|
135
|
+
DA:571,5
|
|
136
|
+
DA:575,5
|
|
137
|
+
DA:576,1
|
|
138
|
+
DA:583,5
|
|
139
|
+
DA:584,5
|
|
140
|
+
DA:586,5
|
|
141
|
+
DA:588,10
|
|
142
|
+
DA:589,10
|
|
143
|
+
DA:594,10
|
|
144
|
+
DA:599,0
|
|
145
|
+
DA:606,0
|
|
141
146
|
DA:615,5
|
|
142
|
-
DA:
|
|
143
|
-
DA:617,5
|
|
144
|
-
DA:620,5
|
|
147
|
+
DA:631,5
|
|
145
148
|
DA:632,5
|
|
146
149
|
DA:633,5
|
|
147
|
-
DA:
|
|
148
|
-
DA:
|
|
149
|
-
DA:
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
BRDA:
|
|
156
|
-
BRDA:
|
|
157
|
-
BRDA:
|
|
158
|
-
BRDA:
|
|
159
|
-
BRDA:
|
|
160
|
-
BRDA:
|
|
161
|
-
BRDA:
|
|
162
|
-
BRDA:
|
|
163
|
-
BRDA:
|
|
164
|
-
BRDA:
|
|
165
|
-
BRDA:
|
|
166
|
-
BRDA:
|
|
167
|
-
BRDA:
|
|
168
|
-
BRDA:
|
|
169
|
-
BRDA:
|
|
170
|
-
BRDA:
|
|
171
|
-
BRDA:
|
|
172
|
-
BRDA:
|
|
173
|
-
BRDA:
|
|
174
|
-
BRDA:
|
|
175
|
-
BRDA:
|
|
176
|
-
BRDA:
|
|
177
|
-
BRDA:
|
|
178
|
-
BRDA:
|
|
179
|
-
BRDA:
|
|
180
|
-
BRDA:
|
|
181
|
-
BRDA:
|
|
182
|
-
BRDA:
|
|
183
|
-
BRDA:
|
|
184
|
-
BRDA:392,
|
|
185
|
-
BRDA:
|
|
186
|
-
BRDA:
|
|
187
|
-
BRDA:
|
|
188
|
-
BRDA:
|
|
189
|
-
BRDA:
|
|
190
|
-
BRDA:
|
|
191
|
-
BRDA:
|
|
192
|
-
BRDA:
|
|
193
|
-
BRDA:
|
|
194
|
-
BRDA:
|
|
195
|
-
BRDA:
|
|
196
|
-
BRDA:
|
|
197
|
-
BRDA:
|
|
198
|
-
BRDA:
|
|
199
|
-
BRDA:
|
|
200
|
-
BRDA:
|
|
201
|
-
BRDA:
|
|
202
|
-
BRDA:
|
|
203
|
-
BRDA:
|
|
204
|
-
BRDA:
|
|
205
|
-
BRDA:
|
|
206
|
-
BRDA:
|
|
207
|
-
BRDA:
|
|
208
|
-
BRDA:
|
|
209
|
-
BRDA:
|
|
210
|
-
BRDA:
|
|
211
|
-
BRDA:
|
|
212
|
-
BRDA:
|
|
213
|
-
BRDA:
|
|
214
|
-
BRDA:
|
|
215
|
-
BRDA:
|
|
216
|
-
|
|
217
|
-
|
|
150
|
+
DA:636,5
|
|
151
|
+
DA:648,5
|
|
152
|
+
DA:649,5
|
|
153
|
+
DA:650,0
|
|
154
|
+
DA:655,5
|
|
155
|
+
DA:662,1
|
|
156
|
+
LF:125
|
|
157
|
+
LH:122
|
|
158
|
+
BRDA:37,0,0,5
|
|
159
|
+
BRDA:37,0,1,0
|
|
160
|
+
BRDA:40,1,0,5
|
|
161
|
+
BRDA:40,1,1,5
|
|
162
|
+
BRDA:41,2,0,5
|
|
163
|
+
BRDA:41,2,1,5
|
|
164
|
+
BRDA:53,3,0,0
|
|
165
|
+
BRDA:61,4,0,1
|
|
166
|
+
BRDA:61,4,1,2
|
|
167
|
+
BRDA:135,5,0,2
|
|
168
|
+
BRDA:135,5,1,0
|
|
169
|
+
BRDA:162,6,0,1
|
|
170
|
+
BRDA:162,6,1,3
|
|
171
|
+
BRDA:222,7,0,1
|
|
172
|
+
BRDA:222,7,1,4
|
|
173
|
+
BRDA:231,8,0,2
|
|
174
|
+
BRDA:231,8,1,3
|
|
175
|
+
BRDA:231,9,0,5
|
|
176
|
+
BRDA:231,9,1,3
|
|
177
|
+
BRDA:287,10,0,3
|
|
178
|
+
BRDA:287,10,1,2
|
|
179
|
+
BRDA:287,11,0,5
|
|
180
|
+
BRDA:287,11,1,3
|
|
181
|
+
BRDA:354,12,0,3
|
|
182
|
+
BRDA:354,12,1,2
|
|
183
|
+
BRDA:354,13,0,5
|
|
184
|
+
BRDA:354,13,1,2
|
|
185
|
+
BRDA:376,14,0,0
|
|
186
|
+
BRDA:376,14,1,5
|
|
187
|
+
BRDA:392,15,0,3
|
|
188
|
+
BRDA:392,15,1,2
|
|
189
|
+
BRDA:392,16,0,5
|
|
190
|
+
BRDA:392,16,1,3
|
|
191
|
+
BRDA:400,17,0,3
|
|
192
|
+
BRDA:400,17,1,0
|
|
193
|
+
BRDA:404,18,0,3
|
|
194
|
+
BRDA:404,18,1,0
|
|
195
|
+
BRDA:408,19,0,3
|
|
196
|
+
BRDA:408,19,1,0
|
|
197
|
+
BRDA:445,20,0,1
|
|
198
|
+
BRDA:445,20,1,4
|
|
199
|
+
BRDA:449,21,0,1
|
|
200
|
+
BRDA:449,21,1,4
|
|
201
|
+
BRDA:463,22,0,1
|
|
202
|
+
BRDA:463,22,1,4
|
|
203
|
+
BRDA:467,23,0,1
|
|
204
|
+
BRDA:467,23,1,4
|
|
205
|
+
BRDA:481,24,0,1
|
|
206
|
+
BRDA:481,24,1,4
|
|
207
|
+
BRDA:485,25,0,1
|
|
208
|
+
BRDA:485,25,1,4
|
|
209
|
+
BRDA:499,26,0,1
|
|
210
|
+
BRDA:499,26,1,4
|
|
211
|
+
BRDA:503,27,0,1
|
|
212
|
+
BRDA:503,27,1,4
|
|
213
|
+
BRDA:526,28,0,1
|
|
214
|
+
BRDA:526,28,1,4
|
|
215
|
+
BRDA:564,29,0,1
|
|
216
|
+
BRDA:564,29,1,4
|
|
217
|
+
BRDA:575,30,0,1
|
|
218
|
+
BRDA:575,30,1,4
|
|
219
|
+
BRDA:594,31,0,0
|
|
220
|
+
BRDA:594,31,1,10
|
|
221
|
+
BRDA:595,32,0,10
|
|
222
|
+
BRDA:595,32,1,0
|
|
223
|
+
BRDA:595,32,2,0
|
|
224
|
+
BRDA:595,32,3,0
|
|
225
|
+
BRDA:595,32,4,0
|
|
226
|
+
BRDA:649,33,0,0
|
|
227
|
+
BRDA:649,33,1,5
|
|
228
|
+
BRF:70
|
|
229
|
+
BRH:57
|
|
218
230
|
end_of_record
|
|
219
231
|
TN:
|
|
220
232
|
SF:src/restructure-filters.js
|
package/executors/config.yaml
CHANGED
package/junit.xml
CHANGED
|
@@ -1,23 +1,13 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuites name="jest tests" tests="29" failures="0" time="
|
|
3
|
-
<testsuite name="
|
|
4
|
-
<testcase classname="
|
|
2
|
+
<testsuites name="jest tests" tests="29" failures="0" time="6.49">
|
|
3
|
+
<testsuite name="pom manipulation" errors="0" failures="0" skipped="0" timestamp="2026-01-23T09:36:57" time="3.442" tests="10">
|
|
4
|
+
<testcase classname="pom manipulation removeDuplicates" name="pom manipulation removeDuplicates" time="0.006">
|
|
5
5
|
</testcase>
|
|
6
|
-
<testcase classname="
|
|
7
|
-
</testcase>
|
|
8
|
-
<testcase classname="create-base-project-structure create multi project" name="create-base-project-structure create multi project" time="0.007">
|
|
9
|
-
</testcase>
|
|
10
|
-
<testcase classname="create-base-project-structure create project with sub project" name="create-base-project-structure create project with sub project" time="0.005">
|
|
11
|
-
</testcase>
|
|
12
|
-
</testsuite>
|
|
13
|
-
<testsuite name="pom manipulation" errors="0" failures="0" skipped="0" timestamp="2021-10-06T10:04:55" time="0.381" tests="10">
|
|
14
|
-
<testcase classname="pom manipulation removeDuplicates" name="pom manipulation removeDuplicates" time="0.005">
|
|
15
|
-
</testcase>
|
|
16
|
-
<testcase classname="pom manipulation removeDuplicate plugins" name="pom manipulation removeDuplicate plugins" time="0.001">
|
|
6
|
+
<testcase classname="pom manipulation removeDuplicate plugins" name="pom manipulation removeDuplicate plugins" time="0">
|
|
17
7
|
</testcase>
|
|
18
8
|
<testcase classname="pom manipulation verifyArtifactPackagingTyperemoveDuplicates" name="pom manipulation verifyArtifactPackagingTyperemoveDuplicates" time="0.001">
|
|
19
9
|
</testcase>
|
|
20
|
-
<testcase classname="pom manipulation verify add plugins" name="pom manipulation verify add plugins" time="0.
|
|
10
|
+
<testcase classname="pom manipulation verify add plugins" name="pom manipulation verify add plugins" time="0.003">
|
|
21
11
|
</testcase>
|
|
22
12
|
<testcase classname="pom manipulation verify add plugins with no pluginManagement tags" name="pom manipulation verify add plugins with no pluginManagement tags" time="0.001">
|
|
23
13
|
</testcase>
|
|
@@ -32,40 +22,50 @@
|
|
|
32
22
|
<testcase classname="pom manipulation replaceVariables" name="pom manipulation replaceVariables" time="0.001">
|
|
33
23
|
</testcase>
|
|
34
24
|
</testsuite>
|
|
35
|
-
<testsuite name="restructure
|
|
36
|
-
<testcase classname="restructure
|
|
25
|
+
<testsuite name=" restructure filter" errors="0" failures="0" skipped="0" timestamp="2026-01-23T09:37:01" time="1.826" tests="6">
|
|
26
|
+
<testcase classname=" restructure filter exports" name=" restructure filter exports" time="0.001">
|
|
37
27
|
</testcase>
|
|
38
|
-
<testcase classname="restructure
|
|
28
|
+
<testcase classname=" restructure filter restructure" name=" restructure filter restructure" time="0.013">
|
|
39
29
|
</testcase>
|
|
40
|
-
<testcase classname="restructure
|
|
30
|
+
<testcase classname=" restructure filter restructure project & sub project" name=" restructure filter restructure project & sub project" time="0.005">
|
|
41
31
|
</testcase>
|
|
42
|
-
<testcase classname="restructure
|
|
32
|
+
<testcase classname=" restructure filter segregateFilterPaths" name=" restructure filter segregateFilterPaths" time="0.002">
|
|
43
33
|
</testcase>
|
|
44
|
-
<testcase classname="restructure
|
|
34
|
+
<testcase classname=" restructure filter isImmutableContentFilter" name=" restructure filter isImmutableContentFilter" time="0">
|
|
35
|
+
</testcase>
|
|
36
|
+
<testcase classname=" restructure filter getFiltersFromPomFile" name=" restructure filter getFiltersFromPomFile" time="0.001">
|
|
45
37
|
</testcase>
|
|
46
|
-
|
|
38
|
+
</testsuite>
|
|
39
|
+
<testsuite name="create-base-project-structure" errors="0" failures="0" skipped="0" timestamp="2026-01-23T09:36:57" time="5.554" tests="4">
|
|
40
|
+
<testcase classname="create-base-project-structure check type" name="create-base-project-structure check type" time="0.002">
|
|
41
|
+
</testcase>
|
|
42
|
+
<testcase classname="create-base-project-structure create" name="create-base-project-structure create" time="0.005">
|
|
47
43
|
</testcase>
|
|
48
|
-
<testcase classname="
|
|
44
|
+
<testcase classname="create-base-project-structure create multi project" name="create-base-project-structure create multi project" time="0.005">
|
|
49
45
|
</testcase>
|
|
50
|
-
<testcase classname="
|
|
46
|
+
<testcase classname="create-base-project-structure create project with sub project" name="create-base-project-structure create project with sub project" time="0.005">
|
|
51
47
|
</testcase>
|
|
52
48
|
</testsuite>
|
|
53
|
-
<testsuite name=" restructure
|
|
54
|
-
<testcase classname=" restructure
|
|
49
|
+
<testsuite name=" restructure config" errors="0" failures="0" skipped="0" timestamp="2026-01-23T09:37:02" time="0.206" tests="1">
|
|
50
|
+
<testcase classname=" restructure config formatConfig" name=" restructure config formatConfig" time="0.016">
|
|
55
51
|
</testcase>
|
|
56
|
-
|
|
52
|
+
</testsuite>
|
|
53
|
+
<testsuite name="restructure pom" errors="0" failures="0" skipped="0" timestamp="2026-01-23T09:36:57" time="6.062" tests="8">
|
|
54
|
+
<testcase classname="restructure pom restructure pom" name="restructure pom restructure pom" time="0.175">
|
|
57
55
|
</testcase>
|
|
58
|
-
<testcase classname="
|
|
56
|
+
<testcase classname="restructure pom get dependencies" name="restructure pom get dependencies" time="0.002">
|
|
59
57
|
</testcase>
|
|
60
|
-
<testcase classname="
|
|
58
|
+
<testcase classname="restructure pom get 3rd party dependencies" name="restructure pom get 3rd party dependencies" time="0.001">
|
|
61
59
|
</testcase>
|
|
62
|
-
<testcase classname="
|
|
60
|
+
<testcase classname="restructure pom exports" name="restructure pom exports" time="0">
|
|
63
61
|
</testcase>
|
|
64
|
-
<testcase classname="
|
|
62
|
+
<testcase classname="restructure pom get plugins from pom" name="restructure pom get plugins from pom" time="0.001">
|
|
65
63
|
</testcase>
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
<testcase classname=" restructure
|
|
64
|
+
<testcase classname="restructure pom fetch sdk version" name="restructure pom fetch sdk version" time="0.216">
|
|
65
|
+
</testcase>
|
|
66
|
+
<testcase classname="restructure pom restructure pom multi project" name="restructure pom restructure pom multi project" time="0.084">
|
|
67
|
+
</testcase>
|
|
68
|
+
<testcase classname="restructure pom restructure project & sub project pom" name="restructure pom restructure project & sub project pom" time="0.088">
|
|
69
69
|
</testcase>
|
|
70
70
|
</testsuite>
|
|
71
71
|
</testsuites>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/aem-cs-source-migration-repository-modernizer",
|
|
3
3
|
"description": "AEM as a Cloud Service Project Restructuring tool",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.3",
|
|
5
5
|
"repository": "https://github.com/adobe/aem-cloud-service-source-migration/tree/master/packages/repository-modernizer",
|
|
6
6
|
"author": "Adobe Inc.",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"test": "jest --coverage"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@adobe/aem-cs-source-migration-commons": "^0.0.
|
|
22
|
+
"@adobe/aem-cs-source-migration-commons": "^0.0.6",
|
|
23
|
+
"dirty-json": "^0.9.2",
|
|
23
24
|
"fs-extra": "^9.0.0",
|
|
24
25
|
"js-yaml": "^3.14.0",
|
|
25
26
|
"node-fetch": "^2.6.1",
|
|
26
|
-
"node-pom-parser": "^0.1.1",
|
|
27
27
|
"rewire": "^5.0.0",
|
|
28
28
|
"stdout-stderr": "^0.1.9",
|
|
29
29
|
"winston": "^3.2.1",
|
|
@@ -22,9 +22,25 @@ const constants = require("./util/constants");
|
|
|
22
22
|
const path = require("path");
|
|
23
23
|
const fs = require("fs");
|
|
24
24
|
const fsExtra = require("fs-extra");
|
|
25
|
-
const
|
|
25
|
+
const xmlJs = require("xml-js");
|
|
26
26
|
let allPackagePomFile = "",
|
|
27
27
|
analysePackagePomFile = "";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Parse a POM file and extract artifactId and version
|
|
31
|
+
* @param {string} filePath - Path to the POM file
|
|
32
|
+
* @returns {object} Object containing artifactId and version
|
|
33
|
+
*/
|
|
34
|
+
function parsePomFile(filePath) {
|
|
35
|
+
const xmlContent = fs.readFileSync(filePath, "utf8");
|
|
36
|
+
const result = xmlJs.xml2js(xmlContent, { compact: true });
|
|
37
|
+
const project = result.project || {};
|
|
38
|
+
|
|
39
|
+
return {
|
|
40
|
+
artifactId: project.artifactId && project.artifactId._text,
|
|
41
|
+
version: project.version && project.version._text,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
28
44
|
var CreateBaseProjectStructure = {
|
|
29
45
|
/**
|
|
30
46
|
*
|
|
@@ -629,7 +645,7 @@ function copyModuleFromSource(
|
|
|
629
645
|
destinationFolderPath
|
|
630
646
|
)
|
|
631
647
|
);
|
|
632
|
-
let pom =
|
|
648
|
+
let pom = parsePomFile(pomFile);
|
|
633
649
|
if (typeof pom.version === "undefined") {
|
|
634
650
|
logger.warn(
|
|
635
651
|
pomFile +
|