You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by ad...@apache.org on 2002/05/28 05:51:07 UTC

cvs commit: jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/project Resources.properties TargetTask.java

adammurdoch    02/05/27 20:51:07

  Modified:    antlib/src/java/org/apache/antlib/project
                        Resources.properties TargetTask.java
  Log:
  Add description attribute, and tidy up error message.
  
  Revision  Changes    Path
  1.9       +1 -1      jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/project/Resources.properties
  
  Index: Resources.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/project/Resources.properties,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- Resources.properties	24 May 2002 06:23:42 -0000	1.8
  +++ Resources.properties	28 May 2002 03:51:07 -0000	1.9
  @@ -1,7 +1,7 @@
   target.no-name.error=Target does not specify the name attribute.
   target.exec.notice=Executing target: "{0}".
   target.task-exec.notice=Executing task: "{0}".
  -target.bad-name.error=Target "{0}" has a invalid name (Reason: {1}).
  +target.bad-name.error=Target "{0}" has a invalid name.
   target.depends.notice=Dependencies for target "{0}": {1}
   target.bad-dependency.error=Discovered empty dependency in target "{0}" at {1}.
   
  
  
  
  1.9       +10 -5     jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/project/TargetTask.java
  
  Index: TargetTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/antlib/src/java/org/apache/antlib/project/TargetTask.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- TargetTask.java	24 May 2002 06:23:42 -0000	1.8
  +++ TargetTask.java	28 May 2002 03:51:07 -0000	1.9
  @@ -19,7 +19,7 @@
    * A simple task to task to execute a group of tasks.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.8 $ $Date: 2002/05/24 06:23:42 $
  + * @version $Revision: 1.9 $ $Date: 2002/05/28 03:51:07 $
    * @ant.task name="target"
    */
   public class TargetTask
  @@ -68,6 +68,14 @@
       }
   
       /**
  +     * Sets the description of the target.
  +     */
  +    public void setDescription( final String desc )
  +    {
  +        // Ignore
  +    }
  +
  +    /**
        * Add a task to the target.
        *
        * @param task a model representing a task
  @@ -115,10 +123,7 @@
           }
           catch( final Exception e )
           {
  -            final String message =
  -                REZ.getString( "target.bad-name.error",
  -                               m_name,
  -                               e );
  +            final String message = REZ.getString( "target.bad-name.error", m_name );
               throw new TaskException( message, e );
           }
       }
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>