Results 1 to 9 of 9

Thread: <echo> messages not displayed in build output

    You found a bug! We've classified it as SDKTOOLS-2011 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium Member
    Join Date
    Jun 2012
    Posts
    3

    Default <echo> messages not displayed in build output

    Sencha CMD 5.1.3.61
    ExtJS 5.1.1

    I'm extending build by adding logic to build.xml and there are also <echo> command for printing some diagnostic messages, but they don't produce any log output.

    <echo> is an valid Ant command and it worked for Sencha CMD 4x.

    Tried setting <echo level="error"> ans so on, but didn't help either.

    Does anyone know how to turn on the display of these messages?

  2. #2
    Sencha Premium Member
    Join Date
    Jun 2012
    Posts
    3

    Default

    Found a workaroud - added log to file recorder command.

    Code:
    <record name="zrecord.txt" action="start" loglevel="verbose"/>
        <!-- other commands -->
    <record name="zrecord.txt" action="stop"/>

  3. #3
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Thanks for sharing your solution with the community. What does your build.xml look like?

  4. #4
    Sencha Premium Member
    Join Date
    Jun 2012
    Posts
    3

    Default

    This is rather workaround than solution, as one still would like to see full log output in console and this is not the case.

    However, here is my build.xml with Ant recorder commands:
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <project name="Pricer" default=".help">
    
        <import file="${basedir}/.sencha/app/build-impl.xml"/>
    
        <target name="-after-init">
    
            <record name="zrecord.txt" action="start" loglevel="verbose"/>
    
                <!-- my extra build commands -->
    
             <record name="zrecord.txt" action="stop"/>    
    
        </target>
    
    
    </project>
    Also, the <record> tags could wrap entire project if needed:
    Code:
    <project name="Pricer" default=".help">
    
        <record name="zrecord.txt" action="start" loglevel="verbose"/>
    
            <import file="${basedir}/.sencha/app/build-impl.xml"/>
    
            <!-- any other commands-->
    
         <record name="zrecord.txt" action="stop"/>    
    
    </project>

  5. #5
    Sencha User martin17's Avatar
    Join Date
    May 2008
    Location
    Argentina
    Posts
    21

    Default

    Code:
    <x-echo message="your message here" level="level"/>

  6. #6
    Sencha Premium User
    Join Date
    Nov 2009
    Posts
    149

    Default

    Martin where did you get x-echo from? It doesn't work with "sencha ant".

    3 years this is still undressed? Bump!

  7. #7
    Sencha Premium User
    Join Date
    Nov 2009
    Posts
    149

    Default

    I found this to be a viable alternative, at least on Linux

    <exec executable="echo"><arg value="WEEE"/></exec>


  8. #8
    Sencha Premium User
    Join Date
    Nov 2009
    Posts
    149

    Default

    I should say "somewhat" viable alternative, as each execution wastes about a second of runtime and is thus extremely inefficient for logging.

  9. #9
    Sencha - Support Team keckeroo's Avatar
    Join Date
    Mar 2008
    Location
    Winnipeg, Canada
    Posts
    388

    Default

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

Similar Threads

  1. Replies: 1
    Last Post: 28 Apr 2015, 10:00 AM
  2. Sencha Cmd build output directory
    By tm8747a in forum Sencha Cmd
    Replies: 6
    Last Post: 30 Jan 2015, 7:13 AM
  3. is there a way to build two output files?
    By Dumbledore in forum Sencha Cmd
    Replies: 2
    Last Post: 19 Feb 2014, 10:29 AM
  4. Build Fails on '-build-output-markup-page'
    By phimuskapsi in forum Sencha Cmd
    Replies: 1
    Last Post: 21 Oct 2013, 12:15 PM
  5. Replies: 2
    Last Post: 21 May 2010, 7:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •