Skip to content

Commit 300d07d

Browse files
authored
Add missing sections and commands for Windows and Linux/macOS
1 parent 07b114f commit 300d07d

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

articles/migrate/appcat/java-preview.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,13 @@ On Windows, this is `%USERPROFILE%/.appcat` and on Linux/Mac, this is `$HOME/.ap
150150
Add the `.appcat` folder to your PATH environment variable so you can run the tool from any folder in the terminal.
151151

152152
# [Linux / macOS](#tab/linux)
153+
153154
```bash
154155
mv /path/to/extracted/azure-migrate-appcat-for-java-cli-<OS>-<architecture>-<release-version>-preview/ $HOME/.appcat
155156
```
156157

157158
# [Windows](#tab/windows)
159+
158160
```cmd
159161
move /path/to/extracted/azure-migrate-appcat-for-java-cli-<OS>-<architecture>-<release-version>-preview/ %USERPROFILE%/.appcat
160162
```
@@ -186,41 +188,53 @@ The **analyze** subcommand allows you to run source code and binary analysis.
186188
To analyze application source code, run the following command:
187189

188190
# [Linux / macOS](#tab/linux)
191+
189192
```bash
190193
./appcat analyze --input=<path/to/source/code> --output=<path/to/output/dir> --target=azure-appservice --overwrite
191194
```
192195

193196
# [Windows](#tab/windows)
197+
194198
```cmd
195199
.\appcat.exe analyze --input=<path/to/source/code> --output=<path/to/output/dir> --target=azure-appservice --overwrite
196200
```
197201

202+
---
203+
198204
The **--input** flag must point to a source code directory or a binary file, and **--output** must point to a directory to store the analysis results.
199205

200206
For more information on the analyze flags, run the following command:
201207

202208
# [Linux / macOS](#tab/linux)
209+
203210
```bash
204211
./appcat analyze --help
205212
```
206213

207214
# [Windows](#tab/windows)
215+
208216
```cmd
209217
.\appcat.exe analyze --help
210218
```
211219

220+
---
221+
212222
To check the available targets for AppCAT, run the following command:
213223

214224
# [Linux / macOS](#tab/linux)
225+
215226
```bash
216227
./appcat analyze --list-targets
217228
```
218229

219230
# [Windows](#tab/windows)
231+
220232
```cmd
221233
.\appcat.exe analyze --list-targets
222234
```
223235

236+
---
237+
224238
With the above command, you should see the following output:
225239

226240
```
@@ -242,35 +256,43 @@ AppCAT is designed to analyze a single application per command execution, but if
242256
To analyze multiple applications, run the following command:
243257

244258
# [Linux / macOS](#tab/linux)
259+
245260
```bash
246261
./appcat analyze --bulk --input=<path/to/source/A> --output=<path/to/output/ABC> --target=<targetname>
247262
./appcat analyze --bulk --input=<path/to/source/B> --output=<path/to/output/ABC> --target=<targetname>
248263
./appcat analyze --bulk --input=<path/to/source/C> --output=<path/to/output/ABC> --target=<targetname>
249264
```
250265

251266
# [Windows](#tab/windows)
267+
252268
```cmd
253269
.\appcat.exe analyze --bulk --input=<path/to/source/A> --output=<path/to/output/ABC> --target=<targetname>
254270
.\appcat.exe analyze --bulk --input=<path/to/source/B> --output=<path/to/output/ABC> --target=<targetname>
255271
.\appcat.exe analyze --bulk --input=<path/to/source/C> --output=<path/to/output/ABC> --target=<targetname>
256272
```
257273

274+
---
275+
258276
#### Transform Subcommand
259277

260278
The **transform** subcommand allows you to convert the previous `appcat` XML rules used in the 6.x version into the new YAML format used by this version 7.x.
261279

262280
To transform rules, run the following command:
263281

264282
# [Linux / macOS](#tab/linux)
283+
265284
```bash
266285
./appcat transform rules --input=<path/to/xmlrules> --output=<path/to/output/dir>
267286
```
268287

269288
# [Windows](#tab/windows)
289+
270290
```cmd
271291
.\appcat.exe transform rules --input=<path/to/xmlrules> --output=<path/to/output/dir>
272292
```
273293

294+
---
295+
274296
The **--input** flag should point to a file or directory containing XML rules, and the **--output** flag should point to the output directory for the converted YAML rules.
275297

276298
### Samples
@@ -289,27 +311,35 @@ In the **samples** directory, you will find several scripts to run different typ
289311
Depending on your operating system, run the appropriate script. For example,
290312

291313
# [Linux / macOS](#tab/linux)
314+
292315
```bash
293316
./samples/run-assessment
294317
```
295318

296319
# [Windows](#tab/windows)
320+
297321
```cmd
298322
.\samples\run-assessment.bat
299323
```
300324

325+
---
326+
301327
The reports will be automatically generated and launched. You can find the reports under:
302328

303329
# [Linux / macOS](#tab/linux)
330+
304331
```bash
305332
../samples/report-*
306333
```
307334

308335
# [Windows](#tab/windows)
336+
309337
```cmd
310338
..\samples\report-*
311339
```
312340

341+
---
342+
313343
### Summary of the analysis
314344

315345
The landing page of the report lists all the technologies that are used in the application. The dashboard provides a summary of the analysis, including the number of transformation incidents, the incidents categories, or the story points.

0 commit comments

Comments
 (0)