fidel150992
fidel150992

Reputation: 303

How to configure path to files generated by Sencha CMD in index page

I configured sencha cmd in Maven using mojo plugin. My skeleton project is available here. Project structure looks like below:

project structure

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

Answers (1)

pelojoy
pelojoy

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

Related Questions