ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/helper ProjectHelperImpl.java
Date Thu, 04 Jul 2002 07:50:51 GMT
bodewig     2002/07/04 00:50:51

  Modified:    docs/manual Tag: ANT_15_BRANCH using.html
               src/main/org/apache/tools/ant/helper Tag: ANT_15_BRANCH
                        ProjectHelperImpl.java
  Log:
  Revert vetoed code change that made project's default attribute
  optional.
  
  See also
  PR: 9196
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.21.2.2  +1 -1      jakarta-ant/docs/manual/using.html
  
  Index: using.html
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/docs/manual/using.html,v
  retrieving revision 1.21.2.1
  retrieving revision 1.21.2.2
  diff -u -r1.21.2.1 -r1.21.2.2
  --- using.html	3 May 2002 09:40:28 -0000	1.21.2.1
  +++ using.html	4 Jul 2002 07:50:50 -0000	1.21.2.2
  @@ -30,7 +30,7 @@
     <tr>
       <td valign="top">default</td>
       <td valign="top">the default target to use when no target is supplied.</td>
  -    <td align="center" valign="top">No. Will default to "main" if not specified.</td>
  +    <td align="center" valign="top">Yes.</td>
     </tr>
     <tr>
       <td valign="top">basedir</td>
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.7.2.2   +3 -1      jakarta-ant/src/main/org/apache/tools/ant/helper/ProjectHelperImpl.java
  
  Index: ProjectHelperImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/helper/ProjectHelperImpl.java,v
  retrieving revision 1.7.2.1
  retrieving revision 1.7.2.2
  diff -u -r1.7.2.1 -r1.7.2.2
  --- ProjectHelperImpl.java	4 Jul 2002 07:38:40 -0000	1.7.2.1
  +++ ProjectHelperImpl.java	4 Jul 2002 07:50:51 -0000	1.7.2.2
  @@ -452,7 +452,9 @@
               }
   
               if (def == null) {
  -                helperImpl.project.setDefaultTarget("main");
  +                throw new SAXParseException("The default attribute of project "
  +                                            + "is required", 
  +                                            helperImpl.locator);
               } else {
                   helperImpl.project.setDefaultTarget(def);
               }
  
  
  

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


Mime
View raw message