Reputation: 303
I configured sencha cmd in Maven using mojo plugin. My skeleton project is available here. Project structure looks like below:
The application
is the top-level folder of ExtJS application. The /webapp/build/testing/IVehicle
is the destination folder for files generated by sencha cmd. index.jsp
file contains the reference to the app.json
looks: Ext.manifest=Ext.manifest||"app.json";
. When i make a request to the index.jsp
in browser i get the error 404
, because browser can't find app.json
file in webapp
folder(it's the root web folder). How i can configure sencha cmd to make path in index.jsp
look like below: Ext.manifest=Ext.manifest||"/build/testing/IVehicle/app.json";
?
Upvotes: 1
Views: 1035
Reputation: 7
Put this in your index.jsp, before microloader
<script type="text/javascript">
var Ext = Ext || {};
Ext.manifest = 'foo'; // loads "./foo.json" relative to your page
</script>
See Sencha Cmd Guide:Named Manifest
Upvotes: 0