You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by pr...@locus.apache.org on 2000/01/17 11:17:36 UTC

cvs commit: jakarta-tools/ant/src/main/org/apache/tools/ant/taskdefs Mkdir.java

preston     00/01/17 02:17:36

  Modified:    ant/src/main/org/apache/tools/ant/taskdefs Mkdir.java
  Log:
  Fixed spelling error (Ok, mostly to verify that CVS checkin works for me :).
  
  Revision  Changes    Path
  1.4       +18 -18    jakarta-tools/ant/src/main/org/apache/tools/ant/taskdefs/Mkdir.java
  
  Index: Mkdir.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tools/ant/src/main/org/apache/tools/ant/taskdefs/Mkdir.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Mkdir.java	1999/11/23 08:27:31	1.3
  +++ Mkdir.java	2000/01/17 10:17:36	1.4
  @@ -1,7 +1,7 @@
   /*
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 1999 The Apache Software Foundation.  All rights 
  + * Copyright (c) 1999 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -9,7 +9,7 @@
    * are met:
    *
    * 1. Redistributions of source code must retain the above copyright
  - *    notice, this list of conditions and the following disclaimer. 
  + *    notice, this list of conditions and the following disclaimer.
    *
    * 2. Redistributions in binary form must reproduce the above copyright
    *    notice, this list of conditions and the following disclaimer in
  @@ -17,15 +17,15 @@
    *    distribution.
    *
    * 3. The end-user documentation included with the redistribution, if
  - *    any, must include the following acknowlegement:  
  - *       "This product includes software developed by the 
  + *    any, must include the following acknowlegement:
  + *       "This product includes software developed by the
    *        Apache Software Foundation (http://www.apache.org/)."
    *    Alternately, this acknowlegement may appear in the software itself,
    *    if and wherever such third-party acknowlegements normally appear.
    *
    * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
    *    Foundation" must not be used to endorse or promote products derived
  - *    from this software without prior written permission. For written 
  + *    from this software without prior written permission. For written
    *    permission, please contact apache@apache.org.
    *
    * 5. Products derived from this software may not be called "Apache"
  @@ -50,7 +50,7 @@
    * individuals on behalf of the Apache Software Foundation.  For more
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
  - */ 
  + */
   
   package org.apache.tools.ant.taskdefs;
   
  @@ -67,21 +67,21 @@
   public class Mkdir extends Task {
   
       private String dirName;
  -    
  +
       public void execute() throws BuildException {
  -	File dir = project.resolveFile(dirName);
  -	if (!dir.exists()) {
  -	    boolean result = dir.mkdirs();
  -	    if (result == false) {
  -		String msg = "Directory " + dirName + " creation was not " +
  -		    "succesful for an unknown reason";
  -		throw new BuildException(msg);
  -	    }
  -	    project.log("Created dir: " + dir.getAbsolutePath());
  -	}
  +        File dir = project.resolveFile(dirName);
  +        if (!dir.exists()) {
  +            boolean result = dir.mkdirs();
  +            if (result == false) {
  +                String msg = "Directory " + dirName + " creation was not " +
  +                    "successful for an unknown reason";
  +                throw new BuildException(msg);
  +            }
  +            project.log("Created dir: " + dir.getAbsolutePath());
  +        }
       }
   
       public void setDir(String dirName) {
  -	this.dirName = dirName;
  +        this.dirName = dirName;
       }
   }