Login | Register
My pages Projects Community openCollabNet

Discussions > issues > [Issue 48] quiet parameter for Find ant task

antelope
Discussion topic

Hide all messages in topic

All messages in topic

[Issue 48] quiet parameter for Find ant task

Author danson
Full name Dale Anson
Date 2010-08-26 12:02:30 PDT
Message http://antelope.tigr​is.org/issues/show_b​ug.cgi?id=48



User danson changed the following:

                What |Old value |New value
====================​====================​====================​====================​
                  Status|NEW |RESOLVED
--------------------​--------------------​--------------------​--------------------​
              Resolution| |FIXED
--------------------​--------------------​--------------------​--------------------​




------- Additional comments from danson at tigris dot org Thu Aug 26 12:02:30 -0700 2010 -------
Added in Antelope 3.5.3, download is at
http://antelope.tigr​is.org/files/documen​ts/1409/48031/Antelo​peTasks_3.5.3.zip

[Issue 48] quiet parameter for Find ant task

Author jplandolt
Full name Paul Landolt
Date 2010-08-24 09:33:07 PDT
Message http://antelope.tigr​is.org/issues/show_b​ug.cgi?id=48






------- Additional comments from jplandolt at tigris dot org Tue Aug 24 09:33:07 -0700 2010 -------
It's a pretty simple code change; adding a 'quiet' option and having log()
call(s) conditional upon it:

public class GrepTask extends Task {
[…]
    private boolean quiet = false;
[…]
    /**
     * This option will suppress logging output
     *
     * @param b The new comments value
     */
    public void setQuiet(boolean b) {
        quiet = b;
    }
[…]
            else if (!quiet) {
                log("No match.");
            }
[…]
}

[Issue 48] quiet parameter for Find ant task

Author jplandolt
Full name Paul Landolt
Date 2010-08-24 09:32:08 PDT
Message http://antelope.tigr​is.org/issues/show_b​ug.cgi?id=48






------- Additional comments from jplandolt at tigris dot org Tue Aug 24 09:32:08 -0700 2010 -------
Created an attachment (id=3)
patch file to add "quiet" option to the find task.

[Issue 48] New - quiet parameter for Find ant task

Author jplandolt
Full name Paul Landolt
Date 2010-08-24 09:31:33 PDT
Message http://antelope.tigr​is.org/issues/show_b​ug.cgi?id=48
                 Issue #|48
                 Summary|quiet parameter for Find ant task
               Component|antelope
                 Version|current
                Platform|All
              OS/Version|All
                     URL|http://antelope.tigr​is.org/source/browse​/antelope/trun
                        |k/src/ise/antelope/​tasks/Find.java
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|PATCH
                Priority|P3
            Subcomponent|Ant Tasks
             Assigned to|danson
             Reported by|jplandolt






------- Additional comments from jplandolt at tigris dot org Tue Aug 24 09:31:33 -0700 2010 -------
The feature request is to add a 'quiet' option to the Find task.

It has the potential generate less output, and it is in keeping with the Unix
grep -q (or Posix grep -s) option.

It's a pretty simple code change; adding a 'quiet' option and having log()
call(s) conditional it:
Messages per page: