You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by st...@locus.apache.org on 2000/09/16 02:18:29 UTC

cvs commit: xml-cocoon/src/org/apache/cocoon Main.java

stefano     00/09/15 17:18:29

  Modified:    src/org/apache/cocoon Tag: xml-cocoon2 Main.java
  Log:
  fixed typos
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.4.4   +5 -5      xml-cocoon/src/org/apache/cocoon/Attic/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/Attic/Main.java,v
  retrieving revision 1.1.4.3
  retrieving revision 1.1.4.4
  diff -u -r1.1.4.3 -r1.1.4.4
  --- Main.java	2000/09/03 17:45:45	1.1.4.3
  +++ Main.java	2000/09/16 00:18:28	1.1.4.4
  @@ -32,7 +32,7 @@
    * Command line entry point.
    *
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
  - * @version CVS $Revision: 1.1.4.3 $ $Date: 2000/09/03 17:45:45 $
  + * @version CVS $Revision: 1.1.4.4 $ $Date: 2000/09/16 00:18:28 $
    */
   
   public class Main {
  @@ -215,7 +215,7 @@
        * this method is the following:
        *
        * <ul>
  -     *  <li>the link view of the given URI is called and the resourced linked
  +     *  <li>the link view of the given URI is called and the resources linked
        *      to the requested one are obtained.</li>
        *  <li>for each link, this method is recursively called and returns
        *      the file used to save the resource on disk.</li>
  @@ -223,7 +223,7 @@
        *      view of the resource is called to obtain a link-translated version
        *      of the resource with the given link map</li>
        *  <li>the resource is saved on disk and the URI MIME type is checked for 
  -     *      consistenci with the URI and, if the extention is inconsistent
  +     *      consistency with the URI and, if the extention is inconsistent
        *      or absent, the file is renamed</li>
        *  <li>then the file name of the translated URI is returned</li>
        * </ul>
  @@ -244,7 +244,7 @@
           String type = getPage(uri, translatedLinks, output);
           output.close();
           
  -        if (!matchesExtention(uri, type)) {
  +        if (!matchesExtension(uri, type)) {
               outputFile.renameTo(getFile(uri, type));
           }
           
  @@ -271,7 +271,7 @@
           return new File(destDir, uri + File.separator + getExtension(type));
       }
       
  -    boolean matchesExtention(String uri, String type) {
  +    boolean matchesExtension(String uri, String type) {
           int dotindex = uri.lastIndexOf('.');
           int slashindex = uri.indexOf('/', dotindex);
           if ((dotindex != -1) && (slashindex == -1)) {