同步操作将从 OpenHarmony-SIG/arkcompiler_ets_frontend 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Migration tool is essentially a translator from Java and Kotlin to STS, a TypeScript-based language whose specification is currently under development.
This project is using the Apache Ant tool for building. You can download binaries from here (it's recommended to use the latest available version) and use the official guide to install and setup the tool.
You also need to use Java 11 (or newer) to build the project.
The TypeScript translator is written on TypeScript and requires NodeJS to build the project and run the translator. For details, see the typescript page.
The build supports two main targets: clean and build:
The result jar file is out/migrator-[version].jar.
To use migration tool after the build, run the following command from the top-level folder of the repository:
java -jar out/migrator-[version].jar [options] [input files]
To get the list of available command-line options, run:
java -jar out/migrator-[version].jar -help
All tests are located under the test folder and sorted by the input language from which the source files are migrated to STS (inside java, kotlin and ts folders under test folder, correspondingly). There are also tests for Java API migration inside test/java-mapper folder.
To run all tests, run ant test on the command line. There are also language- specific ant targets - test_java, test_kotlin, and test_ts. Use these targets if you want to run tests for a single language only. To run tests for Java API migration alone, use test_java_api ant target. In all cases, resulting STS files are written to the results folder under language-specific folders and compared to the expected STS files located next to the test source files.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。