cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: xml-cocoon2/bin/src SitemapTool.java
Date Thu, 22 Nov 2001 15:55:22 GMT
cziegeler    01/11/22 07:55:22

  Modified:    bin/anttasks SitemapTool.class
               bin/src  SitemapTool.java
  Log:
  Removed obsolete cli from SitemapTool
  
  Revision  Changes    Path
  1.2       +56 -63    xml-cocoon2/bin/anttasks/SitemapTool.class
  
  	<<Binary file>>
  
  
  1.2       +4 -53     xml-cocoon2/bin/src/SitemapTool.java
  
  Index: SitemapTool.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/bin/src/SitemapTool.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SitemapTool.java	2001/11/22 15:30:54	1.1
  +++ SitemapTool.java	2001/11/22 15:55:21	1.2
  @@ -22,12 +22,6 @@
   
       private String sitemap;
       private String directory;
  -    private String label;
  -    private String mimeType;
  -    private String componentClass;
  -    private String category;
  -    private String componentName;
  -    private String configuration;
       private String extension;
   
       public void setSitemap(String sitemap) {
  @@ -42,64 +36,21 @@
           this.extension = extension;
       }
   
  -    public void setLabel(String label) {
  -        this.label = label;
  -    }
  -
  -    public void setMimeType(String mimeType) {
  -        this.mimeType = mimeType;
  -    }
  -
  -    public void setComponentClass(String componentClass) {
  -        this.componentClass = componentClass;
  -    }
  -
  -    public void setCategory(String category) {
  -        this.category = category;
  -    }
  -
  -    public void setComponentName(String componentName) {
  -        this.componentName = componentName;
  -    }
  -
  -    public void setConfiguration(String configuration) {
  -        // optional
  -        this.configuration = configuration;
  -    }
  -
       public void execute() throws BuildException {
           if (this.sitemap == null) {
               throw new BuildException("sitemap attribute is required", location);
           }
   
  -        if (this.directory != null && this.extension == null) {
  +        if (this.extension == null) {
               throw new BuildException("extension attribute is required", location);
           }
  -        if (this.directory == null && this.extension != null) {
  +        if (this.directory == null) {
               throw new BuildException("directory attribute is required", location);
           }
   
           try {
  -            if (this.directory != null && this.extension != null) {
  -                // process recursive
  -                 this.process(new File(this.directory), this.extension);
  -            } else {
  -                if (this.category == null) {
  -                    throw new BuildException("category attribute is required", location);
  -                }
  -                if (this.componentName == null) {
  -                    throw new BuildException("componentName attribute is required", location);
  -                }
  -                if (this.componentClass == null) {
  -                    throw new BuildException("componentClass attribute is required", location);
  -                }
  -                this.add(this.category,
  -                     this.componentName,
  -                     this.componentClass,
  -                     this.configuration,
  -                     this.label,
  -                     this.mimeType);
  -            }
  +            // process recursive
  +            this.process(new File(this.directory), this.extension);
           } catch (IOException ioe) {
               throw new BuildException("IOException: " + ioe);
           }
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message