To my surprise, though, the resulting file contained a host of Ext source files along with some other Custom.* classes in my src directory. So then I tried this command, which I expected to output just a blank file:

Code:

sencha compile -classpath ext/src,src exclude -all and concat test.js

However, the file still contained all the same classes as before. I also tried the following without any success (based on different usage examples found in 'sencha help compile' and the Sencha Cmd guides):

Which works as expected. D'oh! I suppose the fact that the "union" command isn't actually a set union threw me off. Given the function of the command, I think a name like "exactly" or "only" would be more natural (as in, "sencha compile only -namespace Custom" or "sencha compile exactly -class Custom.Test"). Be that as it may, it still looks like "exclude -all" isn't working as expected, though.

The reason we called the command "union" is that it accepts multiple parameters and produces as the current set the union of all those things. When used with just one criteria it is a bit hard to name I guess.