【发布时间】:2019-07-15 17:38:14
【问题描述】:
我当前的 ExtJs 应用程序是使用 6.2.1 版本构建的。
我安装了新的 Sencha Cmd 6.5 还有 ExtJS 6.5 框架,在这个目录上:“D:\TOOLS\Sencha\ext-6.5.0”。
但是当我启动升级命令时:
sencha app upgrade -ext -path "D:\TOOLS\Sencha\ext-6.5.0"
首先我有以下警告:
[WRN] 禁用框架:当前版本 6.5.0.775 与所需版本 6.2.1.167 不兼容
然后构建因此错误而失败
com.sencha.exceptions.ExNotFound: 所需属性文件 D:\AllAtrium\trunk\Web\src\trunk\FrontExtJs.sencha\app\$'{'framework.name'}'.properties 不存在
这个缺失的变量仍然被声明到文件“MyApp\ext\cmd\sencha.cfg”中。
如何解决这个问题?
还有其他方法可以将应用从 v6.2 迁移到 v6.5 吗?
完整日志:
Sencha Cmd v6.5.0.180
[WRN] D:\Web\src\trunk\FrontExtJs\.sencha\app contained customized file Microloader_orig.js
[WRN] D:\Web\src\trunk\FrontExtJs\.sencha\app contained customized file sencha.cfg.bak
[WRN] Directory D:\Web\src\trunk\FrontExtJs\.sencha\app could not be removed
[INF] Loading configuration for framework directory: D:\TOOLS\Sencha\ext-6.5.0
[INF] Copying framework to D:\Web\src\trunk\FrontExtJs\ext
[INF] Upgrading to Ext JS 6.x
[INF] Upgrading to sdk at D:\TOOLS\Sencha\ext-6.5.0
[INF] Updating application and workspace from Ext JS 6.2.1.167 / Cmd 6.2.1.29
[WRN] Disabling framework : current version 6.5.0.775 is incompatible with required version 6.2.1.167
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExNotFound: Required property file D:\Web\src\trunk\FrontExtJs\.sencha\app\$'{'framework.name'}'.properties does not exist
[ERR]
[ERR] Total time: 0 seconds
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.BasicException: com.sencha.exceptions.ExNotFound: Required property file D:\Web\src\trunk\FrontExtJs\.sencha\app\$'{'framework.name'}'.properties does not exist
[ERR]
[ERR] Total time: 1 second
[ERR] com.sencha.exceptions.BasicException: com.sencha.exceptions.ExNotFound: Required property file D:\Web\src\trunk\FrontExtJs\.sencha\app\${framework.name}.properties does not exist
[ERR]
[ERR] The application was last modified by an older version of Sencha Cmd (6.2.1.29).
[ERR] Running "sencha app upgrade" may resolve the error described above.
[ERR]
【问题讨论】:
标签: upgrade extjs6 sencha-cmd