【发布时间】:2017-04-02 16:29:21
【问题描述】:
在使用 mfpmigrate 辅助工具将 IBM Mobilefirst Platform 7.0 混合源代码转换为 IBM MobileFirst Platform 8.0 源代码时,我收到如下错误:
C:\Mobilefirst>mfpmigrate client --in C:\Mobilefirst\Example --out C:\Mobilefirst\CordovaNewCode
Error: An error occured during execution of command.
Error: Option '--in' cannot be equal to option '--out'
另外,如果我使用的是scan,那么它会显示No deprecated or not supported APIs found.。尽管我使用了针对 IBM Mobilefirst Platform 7.1 及以下版本的旧 API。
C:\Mobilefirst>mfpmigrate scan --in C:\Mobilefirst\Example --out C:\Mobilefirst\CordovaNewCode
Starting the process to detect deprecated and not supported APIs...
Getting files from C:\Mobilefirst\...
Scanning C:\Mobilefirst\...
No deprecated or not supported APIs found.
Process to detect deprecated and not supported APIs has completed.
请告诉我为什么它没有将混合转换为 cordova IBM MobileFirst Platform 8.0。
谢谢,
【问题讨论】:
-
您的代码中可能没有弃用的 API。您能否提及您认为在项目中使用的任何旧 API,这些 API 已被弃用,并且该工具在“扫描”期间无法识别它。
-
Re: '--in 不能等于选项--out' - 您是否尝试过从--in 指向主目录路径之外的完全不同的目录?例如C:\Mobilefirst_2\CordovaNewCode?
-
@deepak,您能否提供一个示例项目 - 比如说通过保管箱或任何其他文件共享服务共享它
-
错误:执行命令时出错。错误:未检测到要迁移的受支持平台
-
我尝试了不同的目录位置,它给出了响应“没有检测到支持的平台进行迁移”。 cmd sn -p: C:\Mobilefirst>mfpmigrate client --in C:\Mobilefirst\Example --out D:\CordProj 错误:执行命令时出错。错误:未检测到要迁移的受支持平台对于“扫描”,错误仍然是“未找到已弃用或不支持的 API”。我在下面添加了 MobileFirst 8.0 中已弃用的代码行 var devName=WL.Device.getFriendlyName();
标签: ibm-mobilefirst mobilefirst-studio