Can anyone help me with the following scenario:

path to Ext library: /var/ext4.1.1a/src/
path to Ext JS application: /var/webapp/app1/

I want to compile a build and extract into one JS file only classes, and their dependencies from Ext library that are used by my application, but without application specific code (without classes from /var/webapp/app1/).

I found on forum something like this:

sencha -sdk-path=/var/ext4.1.1a/src/ \ compile \ -classpath=/var/webapp/app1/ \ exclude \ -namespace=Ext \ and \ concatenate \ -out=out.js
but in this case will be included also application code (one i want to skip).