我有一个MVC应用程序要用
sencha app build production在这个应用程序中,我使用外部类(在我的例子中是GeoExt.panel.Map),除了异常,sencha命令会失败。
com.sencha.exceptions.ExNotFound: Unknown definition for dependency : GeoExt.panel.Map有谁知道怎么修吗?
在21:17 04.06.2014添加内容
请注意,我创建了一个名为bootstrap.GeoExt.js的文件,其中包含了引用所有GeoExt源的内容:
Ext.Loader.addClassPathMappings({
"GeoExt": "../../../../../GeoExt/geoext2-2.0.1/src/GeoExt"
});此文件在index.html中引用。
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>TestComplete</title>
<script src="http://openlayers.org/api/2.13.1/OpenLayers.js"></script>
<link rel="stylesheet" href="custom.css">
<!-- <x-compile> -->
<!-- <x-bootstrap> -->
<link rel="stylesheet" href="bootstrap.css">
<script src="ext/ext-dev.js"></script>
<script src="bootstrap.GeoExt.js"></script>
<script src="bootstrap.js"></script>
<!-- </x-bootstrap> -->
<script src="app.js"></script>
<!-- </x-compile> -->
</head>
<body></body>
</html>发布于 2014-06-04 22:11:25
,这就是我如何在我的ST应用程序的打包中包含“额外”文件的方式
当我试图构建我的ST应用程序时,我使用的是静态json文件(用于原型开发),并且我的主文件夹中有一个数据文件夹,问题是数据文件夹没有包含在包中,我修改了build.xml (在应用程序的主文件夹中),最后我添加了:
<copy todir="${build.dir}/data/" overwrite="true">
<fileset dir="${basedir}/data/"> //this is your main app folder
<include name="**/*" />
</fileset>
</copy> 之后,我的数据文件夹被包括在我的生产版本中。
诚挚的问候。
https://stackoverflow.com/questions/24044589
复制相似问题