【问题标题】:How can I configure the sencha app build command to use a custom named app folder?如何配置 sencha app build 命令以使用自定义命名的 app 文件夹?
【发布时间】:2013-09-20 01:15:29
【问题描述】:

我需要为我的 Ext JS 4.1.3 应用程序使用一个名为“app”的自定义文件夹。 Sencha 文档清楚地表明,此文件夹名称是一个名为“appFolder”的可配置值。

环境: 分机 JS 4.1.3 Sencha Cmd 3.1.2.342 红宝石 1.9

我采取的步骤:

sencha generate workspace C:\temp\workspace 
sencha -sdk C:\tools\extjs4.1.3 generate app common C:\temp\workspace\common 
cd C:\temp\workspace\common 
sencha app build 

SUCCESSFUL 

编辑 app.js 并设置 appFolder: 'custom':

Ext.application({ 
    appFolder: 'custom' ...

还将“C:\temp\workspace\common\app”文件夹重命名为“C:\temp\workspace\common\custom”

sencha app build.

[ERR] def was null 
[ERR] failed to find meta class definition for name common.controller.Main 
[ERR] def was null 
[ERR] failed to find meta class definition for name common.view.Viewport 
[ERR] C2008: Requirement had no matching files (common.view.Viewport) -- unknown 
-file:-1 
[ERR] Error executing page compilation Failed to find any files for C:\TEMP\workspace\common\app.js::ApplicationAutoDependency::common.view.Viewport 
[ERR] 
[ERR] BUILD FAILED 
[ERR] com.sencha.exceptions.ExBuild: com.sencha.exceptions.ExBuild: Failed to find any files for C:\TEMP\workspace\common\app.js::ApplicationAutoDependency::common.view.Viewport 
[ERR] 
[ERR] Total time: 6 seconds 
[ERR] The following error occurred while executing this line: 
C:\TEMP\workspace\common\.sencha\app\build-impl.xml:408: The following error occurred while executing this line: 
C:\TEMP\workspace\common\.sencha\app\build-impl.xml:381: com.sencha.exceptions.ExBuild: com.sencha.exceptions.ExBuild: Failed to find any files for C:\TEMP\workspace\common\app.js::ApplicationAutoDependency::common.view.Viewport 

【问题讨论】:

    标签: extjs sencha-cmd


    【解决方案1】:

    编辑文件yourAppFolder/.sencha/app/sencha.cfg

    classpath=${app.dir}/app 更改为classpath=${app.dir}/custom

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-01-20
      • 1970-01-01
      • 2019-08-03
      • 2019-05-03
      • 2020-05-03
      相关资源
      最近更新 更多