RE http://docs.sencha.com/ext-js/4-2/#!...mmand_compiler


A compiler ultimately is all about writing useful output given some number of inputs. The concat command is designed to concatenate the source for the current set of files in the appropriate dependency order.


The one required parameter is -out, which indicates the name of the output file. There are other options, however, that effect the generated file. You can pick one of the following options for compression:

I am trying to achieve the "appropriate dependency order". The docs go on to talk about sets. Not how to order those sets?


The one required parameters is not present ?!! Is this is a doc error, is the one required parameter is concat ?


I find nothing else on the page that talks about controlling the order.


Seems to me in the prior version of Cmd, output followed the same order as the comma delimited list of classpaths. Or it did for me!


But not now?


Code:
$ cat alpha/alpha.js
alert('alpha');


$ cat beta/beta.js
alert('beta');


$ sencha compile -classpath=alpha,beta concat ab.js
Sencha Cmd v3.1.0.216
[INF] Scanning for extensions in /Users/steward/bin/Sencha/Cmd/3.1.0.216/extensions
[INF] Loaded extension sencha-compass
[INF] Loaded extension sencha-io
[INF] Loading classpath entry /home/steward/public_html/alpha
[INF] Loading classpath entry /home/steward/public_html/beta
[INF] Concatenating output to file ab.js


$ cat ab.js
alert('alpha');
alert('beta');


$ sencha compile -classpath=beta,alpha concat ba.js
Sencha Cmd v3.1.0.216
[INF] Scanning for extensions in /Users/steward/bin/Sencha/Cmd/3.1.0.216/extensions
[INF] Loaded extension sencha-compass
[INF] Loaded extension sencha-io
[INF] Loading classpath entry /home/steward/public_html/beta
[INF] Loading classpath entry /home/steward/public_html/alpha
[INF] Concatenating output to file ba.js


$ cat ba.js
alert('alpha');
alert('beta');

Just out of curiosity, why are both outputs the same? There is nothing to distinguish order except the order in which they were encountered?


I want my license verbiage at the start of the output. How to?


I return to http://docs.sencha.com/ext-js/4-2/#!...and_app_single


"These dependencies are expressed in code using Ext.define and the requires (or uses) directives."

So I add to my app:
Code:
Ext.require('Yap.blurb.License')
I verify the file loads normally, refresh the project...

Aw heck. I have the feeling I am wandering into deep space.

Is this something we are to control in the build/xml/ant part?

What have I missed? Where in the docs? Have I misinterpeted the statement about "appropriate dependcy order". I just want order!

As the man on the Titantic shouted before he shot himself, "Order I say!"

Help. Please. Thank you.