hsingh11
17 Oct 2012, 9:39 AM
Hi
We are trying to use to Sencha Cmd for production deployment.
I created a one model, controller and view application (manually) and ran the Sencha Cmd v3.0.0.190 to compile my test project but getting the error: Failed to find file for @foundationand
Here is the output
C:\wam\wam_app>sencha compile -classpath=app/app.js,app,extjs-4.1.1/src page -in=index.html -out=build/index.html
Sencha Cmd v3.0.0.190
Compiling page null
[INFO ] Processing classPath entry : C:\wam\wam_app\sencha-compile-temp-dir
[INFO ] Processing classPath entry : app\app.js
[INFO ] Processing classPath entry : app
[INFO ] Processing classPath entry : extjs-4.1.1\src
[INFO ] Processing class inheritance graph
[INFO ] Processing instantiation refereces to classes and aliases
[INFO ] Processing source dependencies
[ERROR] Failed to find file for @foundation
required by C:\wam\wam_app\extjs-4.1.1\src\app\Controller.js
[ERROR] Error executing page compilation com.sencha.exceptions.BasicException: com.sencha.exceptions.ExBuild: Fa[I]iled to find any files for @foundation
[ERROR] com.sencha.exceptions.BasicException: com.sencha.exceptions.BasicException: com.sencha.exceptions.ExBuild: Failed to find any files for @foundation
The other thing i am confused about is the classpath , should i have to specify underneath folders/files also like
classpath=app,app/app.js etc.
here is my index.html
<html>
<head>
<!-- chrome frame for IE -->
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="extjs-4.1.1/resources/css/ext-all-gray.css">
<!-- <x-compile> -->
<!-- <x-bootstrap> -->
<script type="text/javascript" src="extjs-4.1.1/ext-all.js" />
<!-- <x-bootstrap> -->
<script type="text/javascript" src="app/app.js"></script>
<!-- <x-compile> -->
</head>
</html>
and here is my app.js
Ext.application({
name: 'Car',
appFolder: 'app',
autoCreateViewport: true,
controllers: [
'Users'
]
});
We are trying to use to Sencha Cmd for production deployment.
I created a one model, controller and view application (manually) and ran the Sencha Cmd v3.0.0.190 to compile my test project but getting the error: Failed to find file for @foundationand
Here is the output
C:\wam\wam_app>sencha compile -classpath=app/app.js,app,extjs-4.1.1/src page -in=index.html -out=build/index.html
Sencha Cmd v3.0.0.190
Compiling page null
[INFO ] Processing classPath entry : C:\wam\wam_app\sencha-compile-temp-dir
[INFO ] Processing classPath entry : app\app.js
[INFO ] Processing classPath entry : app
[INFO ] Processing classPath entry : extjs-4.1.1\src
[INFO ] Processing class inheritance graph
[INFO ] Processing instantiation refereces to classes and aliases
[INFO ] Processing source dependencies
[ERROR] Failed to find file for @foundation
required by C:\wam\wam_app\extjs-4.1.1\src\app\Controller.js
[ERROR] Error executing page compilation com.sencha.exceptions.BasicException: com.sencha.exceptions.ExBuild: Fa[I]iled to find any files for @foundation
[ERROR] com.sencha.exceptions.BasicException: com.sencha.exceptions.BasicException: com.sencha.exceptions.ExBuild: Failed to find any files for @foundation
The other thing i am confused about is the classpath , should i have to specify underneath folders/files also like
classpath=app,app/app.js etc.
here is my index.html
<html>
<head>
<!-- chrome frame for IE -->
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="extjs-4.1.1/resources/css/ext-all-gray.css">
<!-- <x-compile> -->
<!-- <x-bootstrap> -->
<script type="text/javascript" src="extjs-4.1.1/ext-all.js" />
<!-- <x-bootstrap> -->
<script type="text/javascript" src="app/app.js"></script>
<!-- <x-compile> -->
</head>
</html>
and here is my app.js
Ext.application({
name: 'Car',
appFolder: 'app',
autoCreateViewport: true,
controllers: [
'Users'
]
});