• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Do not want to print all the message on console

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I want my echo statements to be printed on the console

My build script is importing the other build files and I don't want to print echo statements and other tasks statements of those files to be printed on the console.

I have tried ant -quiet. It displays only the echo statements while building the application. But I need only my message to be printed on console.

Please suggest me any possible solution in it.

Thanks and Regards
Neeraj
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is not possible. Once the external script is imported, its contents are treated as contents of the original script. If there was a way to do this, it would appear as an attribute of the <import> task.
 
Neeraj Khatana
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there a way that I can do echo off for my build script in the bat file.

I have created the bat file and set the @echo off at the very first statement. but the echo statements are also printed there.

Please suggest me some ideas.

Thanks
Neeraj
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
@echo off has no influence at all on Ant's output.
 
Neeraj Khatana
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I am thinking about extending the AntTask and do some calculations that echo statements and other task statements should not run while building the application.

Please tell me, Can I achieve this. if so, how should I proceed in it.

or any other way to do this.....

Thanks
Neeraj
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why do you want to bother getting rid of all echos ?
 
Neeraj Khatana
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have to build the 100 APK(Android Packages) files though build script.

I just type the ant command and all the files are developed in a folder and it takes around 20-25 minutes.

There are a lot of messages printed on console which the end user is unable to understand. Also, all the messages are scrolled up and some of them are only visible

Now, what I want is to display only one message for building the one APK file. Likewise, 100 messages should be printed on console.

If the operation is successful, then successful message and if failed, then failed message with appropriate error.

Thanks
Neeraj
 
I will suppress my every urge. But not this shameless plug:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic