Hybrid View
-
14 Nov 2012 8:54 AM #1
Build with cmd don't work
Build with cmd don't work
Hi I'm building an MVC application with cmd 3.0.0.250. The application was generated with cmd and wihout build works fine.
The compiled version spits out loader messages about class not found and try to load them.
To build application I used a customized build xml that do the following:
Looking at all-classes.js there are alla classes needed, even ones that loader try to load. Here is my app.js that should be the entry point of applicationCode:<target name="-page"> <!-- initialize the build.dir parameter if it hasn't been already --> <local name="build.dir"/> <property name="build.dir" location="${workspace.build.dir}"/> <!-- compile the page --> <x-sencha-command> compile --classpath=../common page -in=index.jsp -out=${build.dir}/index.jsp </x-sencha-command> </target>
Code://Required class Ext.require('Ext.state.Manager'); Ext.require('Ext.state.CookieProvider') Ext.require('Ext.tip.QuickTipManager'); Ext.onReady( function() { //State Managment Ext.state.Manager.setProvider( Ext.create('Ext.state.CookieProvider', { expires: new Date(new Date().getTime()+(1000*60*60*24*7)), //7 days from now path: ApplicationData.contextPath }) ); //Enable tooltip Ext.tip.QuickTipManager.init(); //Main Application Ext.application({ models: ["designer.MenuModel","application.Application"], controllers: ["Designer", "Login"], name: 'Designer', autoCreateViewport: true, launch: function() { var viewport = Ext.ComponentQuery.query('viewport')[0]; //If user is logged, show mai napplication screen Ext.Ajax.request({ async: false, url: ApplicationData.contextPath + "/getMenu/" + ApplicationData.designerId, callback: function(option, success, response){ if(success) { /* if the json returned does not contain success: false * let's go to main application screen */ var result = Ext.JSON.decode(response.responseText, true); try{ if(result.success != false){ viewport.layout.setActiveItem(1); return; } }catch(ex) {} } //User not logged => show Login viewport.layout.setActiveItem(0); }, requestException: function(){} }); } }); });
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote