ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@locus.apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant Task.java
Date Thu, 24 Feb 2000 21:57:21 GMT
costin      00/02/24 13:57:20

  Modified:    src/main/org/apache/tools/ant Task.java
  Log:
  Added a new property to task: "description".
  It can be used to add a short description of what the particular instance
  of the task is doing - instead of/in addition to xml comments.
  
  It can be usefull to display it if a task fails, and it's a good way to
  document the file.
  
  Revision  Changes    Path
  1.4       +13 -1     jakarta-ant/src/main/org/apache/tools/ant/Task.java
  
  Index: Task.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/Task.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Task.java	2000/02/13 18:19:59	1.3
  +++ Task.java	2000/02/24 21:57:20	1.4
  @@ -62,7 +62,8 @@
   
       protected Project project = null;
       protected Target target = null;
  -
  +    protected String description=null;
  +    
       /**
        * Sets the project object of this task. This method is used by
        * project when a task is added to it so that the task has
  @@ -84,6 +85,17 @@
           this.target = target;
       }
   
  +    /** Sets a description of the current action. It will be usefull in commenting
  +     *  what we are doing.
  +     */ 
  +    public void setDescription( String desc ) {
  +	description=desc;
  +    }
  +
  +    public String getDescription() {
  +	return description;
  +    }
  +    
       /**
        * Called by the project to let the task initialize properly. Normally it does nothing.
        *
  
  
  

Mime
View raw message