1. #1
    Sencha Premium Member
    Join Date
    Jan 2013
    Posts
    6
    Vote Rating
    1
    larsfeyerabend is on a distinguished road

      0  

    Exclamation <x-sencha-command> ant task broken in 3.1.1.274?

    <x-sencha-command> ant task broken in 3.1.1.274?


    I'm trying to build my application all-classes.js manually with ant.

    When using Sencha Cmd on the command-line, everything works fine:

    Code:
    $ sencha compile union --namespace MyApp and -debug=false concat -yui build/app.js
    Sencha Cmd v3.1.1.274
    [INF] Loading classpath entry /www/myapp/web/myapp/ext/src
    [INF] Loading classpath entry /www/myapp/web/myapp/app
    [INF] Compressing data with YuiJavascriptCompressor
    [INF] Concatenating output to file build/app.js
    However, I'm having trouble to make this work from inside my build.xml. Minimal build.xml follows:

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <project name="MyApp" default="make">
        <import file="${basedir}/.sencha/app/build-impl.xml"/>
    
    
        <target name="make" depends="init">
            <x-sencha-command>
                compile
                    union --namespace MyApp
                    and
                -debug=false
                    concat -yui build/app.js
            </x-sencha-command>
        </target>
    </project>
    Calling sencha ant on this file results in:

    Code:
    Sencha Cmd v3.1.1.274
    [INF]
    [INF] -before-init-local:
    [INF]
    [INF] -init-local:
    [INF]
    [INF] -after-init-local:
    [INF]
    [INF] init-local:
    [INF]
    [INF] find-cmd:
    [INF]
    [INF] -before-init:
    [INF]
    [INF] -init:
    [INF] Initializing Sencha Cmd ant environment
    [INF] Adding antlib taskdef for com/sencha/command/compass/ant/antlib.xml
    [INF]
    [INF] -after-init:
    [INF]
    [INF] init:
    [INF]
    [INF] make:
    [ERR]
    [ERR] BUILD FAILED
    [ERR] com.sencha.exceptions.ExArg: Unknown command: "union --namespace MyApp"
    [ERR]
    [ERR] Total time: 1 second
    [ERR] com.sencha.exceptions.ExArg: Unknown command: "union --namespace MyApp"
    My commands don't seem to get recognized if they have parameters. Is this a bug in the current version?

  2. #2
    Sencha Premium Member
    Join Date
    Jan 2013
    Posts
    6
    Vote Rating
    1
    larsfeyerabend is on a distinguished road

      1  

    Cool


    After carefully reading the documentation again, and trying some things out, I found my error. Other than the command-line tool, the <x-sencha-command> task is much less forgiving about the syntax of its input.

    This is the correct task definition:
    Code:
    <x-sencha-command>
      compile
        union
          --namespace=MyApp
      and
      --debug=false
      concat
        -yui
        ${build.dir}/app.js
    </x-sencha-command>
    Note that each argument must be on its own line (as mentioned in the documentation), and the syntax "-namespace MyApp" (which will work with the command line tool) doesn't seem to work here.

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