ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject cvs commit: ant/docs/manual/CoreTasks macrodef.html
Date Fri, 31 Oct 2003 09:51:24 GMT
peterreilly    2003/10/31 01:51:24

  Modified:    src/main/org/apache/tools/ant/taskdefs MacroDef.java
               docs/manual/CoreTasks macrodef.html
  Log:
  Remove option to have parallel instead of sequential for macrodef. The
  former was never tested.
  
  Revision  Changes    Path
  1.11      +2 -3      ant/src/main/org/apache/tools/ant/taskdefs/MacroDef.java
  
  Index: MacroDef.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/MacroDef.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- MacroDef.java	15 Oct 2003 07:39:35 -0000	1.10
  +++ MacroDef.java	31 Oct 2003 09:51:24 -0000	1.11
  @@ -96,12 +96,11 @@
        */
       public void addTask(Task nestedTask) {
           if (this.nestedTask != null) {
  -            throw new BuildException("Only one sequential/Parallel allowed");
  +            throw new BuildException("Only one sequential allowed");
           }
           UnknownElement ue = (UnknownElement) nestedTask;
           if (!ue.getNamespace().equals("")
  -            || (!ue.getTag().equals("sequential")
  -                && !ue.getTag().equals("parallel"))) {
  +            || !ue.getTag().equals("sequential")) {
               throw new BuildException("Unsupported tag " + ue.getQName());
           }
           this.nestedTask = ue;
  
  
  
  1.5       +2 -2      ant/docs/manual/CoreTasks/macrodef.html
  
  Index: macrodef.html
  ===================================================================
  RCS file: /home/cvs/ant/docs/manual/CoreTasks/macrodef.html,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- macrodef.html	14 Oct 2003 09:59:19 -0000	1.4
  +++ macrodef.html	31 Oct 2003 09:51:24 -0000	1.5
  @@ -10,11 +10,11 @@
       <h2><a name="macrodef">MacroDef</a></h2>
       <h3>Description</h3>
       <p>
  -      This defines a new task using a &lt;sequential&gt; or &lt;parallel&gt;
  +      This defines a new task using a &lt;sequential&gt; 
         nested task as a template. Nested elements &lt;attribute&gt; and
         &lt;element&gt; are used to specify attributes and elements of
         the new task. These get substituted into the  &lt;sequential&gt;
  -      or &lt;parallel&gt; task when the new task is run.
  +      task when the new task is run.
       </p>
       <p>
         <em>since Ant 1.6</em>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message