Success! Looks like we've fixed this one. According to our records the fix was applied for SDKTOOLS-206 in a recent build.
  1. #1
    Ext JS Premium Member burnnat's Avatar
    Join Date
    Jun 2011
    Posts
    410
    Vote Rating
    55
    burnnat is a jewel in the rough burnnat is a jewel in the rough burnnat is a jewel in the rough burnnat is a jewel in the rough

      0  

    Default Issue with exclude -all?

    Issue with exclude -all?


    I'm using Sencha Cmd 3.0.0.190 and wanted to compile a small file to experiment with various build options. So to compile a file containing just a single class, I created a simple class:
    Code:
    Ext.define('Custom.Test', {
        prop: 'value'
    });
    And compiled using this command, which I expected to only contain my Custom.Test class:
    Code:
    sencha compile -classpath ext/src,src exclude -all and include -class Custom.Test and concat test.js
    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):
    Code:
    sencha compile -classpath ext/src,src exclude -a and concat test.js
    sencha compile -classpath ext/src,src exclude --all and concat test.js
    sencha compile -classpath ext/src,src exclude +all and concat test.js
    I was able to eventually workaround the issue via named sets like this:
    Code:
    sencha compile -classpath ext/src,src save all and exclude all and concat test.js
    Still, I would have expected the "exclude -all" to work. A bug, perhaps?

  2. #2
    Ext JS Premium Member burnnat's Avatar
    Join Date
    Jun 2011
    Posts
    410
    Vote Rating
    55
    burnnat is a jewel in the rough burnnat is a jewel in the rough burnnat is a jewel in the rough burnnat is a jewel in the rough

      0  

    Default


    After further reading of the Sencha Cmd documentation, I now see that my original command:
    Code:
    sencha compile -classpath ext/src,src exclude -all and include -class Custom.Test and concat test.js
    Should be equivalent to:
    Code:
    sencha compile -classpath ext/src,src union -class Custom.Test and concat test.js
    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.

  3. #3
    Sencha - Ext JS Dev Team dongryphon's Avatar
    Join Date
    Jul 2009
    Posts
    1,229
    Vote Rating
    114
    dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

  4. #4
    Sencha - Ext JS Dev Team dongryphon's Avatar
    Join Date
    Jul 2009
    Posts
    1,229
    Vote Rating
    114
    dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all

      0  

    Default


    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.
    Don Griffin
    Ext JS Development Team Lead

    Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue

    "Use the source, Luke!"

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar