Coverage Report - net.objectlab.qalab.ant.AntTaskLogger
 
Classes in this File Line Coverage Branch Coverage Complexity
AntTaskLogger
0%
0/5
N/A
1
 
 1  
 ////////////////////////////////////////////////////////////////////////////////
 2  
 //                  ObjectLab is sponsoring QALab
 3  
 // 
 4  
 // Based in London, we are world leaders in the design and development 
 5  
 // of bespoke applications for the Securities Financing markets.
 6  
 // 
 7  
 // <a href="http://www.objectlab.co.uk/open">Click here to learn more</a>
 8  
 //           ___  _     _           _   _          _
 9  
 //          / _ \| |__ (_) ___  ___| |_| |    __ _| |__
 10  
 //         | | | | '_ \| |/ _ \/ __| __| |   / _` | '_ \
 11  
 //         | |_| | |_) | |  __/ (__| |_| |__| (_| | |_) |
 12  
 //          \___/|_.__// |\___|\___|\__|_____\__,_|_.__/
 13  
 //                   |__/
 14  
 //
 15  
 //                   http://www.ObjectLab.co.uk
 16  
 // ---------------------------------------------------------------------------
 17  
 //
 18  
 //QALab is released under the GNU General Public License.
 19  
 //
 20  
 //QALab: Collects QA Statistics from your build over time.
 21  
 //2005+, ObjectLab Ltd
 22  
 //
 23  
 //This library is free software; you can redistribute it and/or
 24  
 //modify it under the terms of the GNU General Public
 25  
 //License as published by the Free Software Foundation; either
 26  
 //version 2.1 of the License, or (at your option) any later version.
 27  
 //
 28  
 //This library is distributed in the hope that it will be useful,
 29  
 //but WITHOUT ANY WARRANTY; without even the implied warranty of
 30  
 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 31  
 //General Public License for more details.
 32  
 //
 33  
 //You should have received a copy of the GNU General Public
 34  
 //License along with this library; if not, write to the Free Software
 35  
 //Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 36  
 //
 37  
 ////////////////////////////////////////////////////////////////////////////////
 38  
 package net.objectlab.qalab.ant;
 39  
 
 40  
 import net.objectlab.qalab.util.TaskLogger;
 41  
 
 42  
 import org.apache.tools.ant.Task;
 43  
 
 44  
 /**
 45  
  * This class wraps up an Ant task which is going to be used to log some text
 46  
  * when the tool is used with Ant.
 47  
  * 
 48  
  * @author xhensevalb
 49  
  * @version $Revision: 187 $
 50  
  */
 51  
 public final class AntTaskLogger implements TaskLogger {
 52  
     /** the Ant task. */
 53  
     private Task task;
 54  
 
 55  
     /**
 56  
      * Constructor that will hide the specific logging mechanism.
 57  
      * 
 58  
      * @param antTask
 59  
      *            an Ant task
 60  
      */
 61  0
     AntTaskLogger(final Task antTask) {
 62  0
         this.task = antTask;
 63  0
     }
 64  
 
 65  
     /**
 66  
      * Uses the Ant mechanism to log the text.
 67  
      * 
 68  
      * @param text
 69  
      *            to be logged.
 70  
      */
 71  
     public void log(final String text) {
 72  0
         task.log(text);
 73  0
     }
 74  
 }
 75  
 /*
 76  
  *                   ObjectLab is sponsoring QALab
 77  
  * 
 78  
  * Based in London, we are world leaders in the design and development 
 79  
  * of bespoke applications for the securities financing markets.
 80  
  * 
 81  
  * <a href="http://www.objectlab.co.uk/open">Click here to learn more about us</a>
 82  
  *           ___  _     _           _   _          _
 83  
  *          / _ \| |__ (_) ___  ___| |_| |    __ _| |__
 84  
  *         | | | | '_ \| |/ _ \/ __| __| |   / _` | '_ \
 85  
  *         | |_| | |_) | |  __/ (__| |_| |__| (_| | |_) |
 86  
  *          \___/|_.__// |\___|\___|\__|_____\__,_|_.__/
 87  
  *                   |__/
 88  
  *
 89  
  *                     www.ObjectLab.co.uk
 90  
  */