lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject cvs commit: cocoon-lenya/src/java/org/apache/lenya/cms/ant InsertCopyNode.java MoveNode.java
Date Thu, 07 Aug 2003 15:52:26 GMT
egli        2003/08/07 08:52:26

  Modified:    src/java/org/apache/lenya/cms/ant InsertCopyNode.java
                        MoveNode.java
  Log:
  Adapted to the changes in the SiteTree constructor signature.
  
  Revision  Changes    Path
  1.6       +1 -13     cocoon-lenya/src/java/org/apache/lenya/cms/ant/InsertCopyNode.java
  
  Index: InsertCopyNode.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/ant/InsertCopyNode.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- InsertCopyNode.java	28 Jul 2003 07:54:35 -0000	1.5
  +++ InsertCopyNode.java	7 Aug 2003 15:52:26 -0000	1.6
  @@ -59,12 +59,9 @@
   import org.apache.lenya.cms.publication.SiteTreeException;
   import org.apache.lenya.cms.publication.SiteTreeNode;
   
  -import org.xml.sax.SAXException;
  -
   import java.io.IOException;
   import java.util.StringTokenizer;
   
  -import javax.xml.parsers.ParserConfigurationException;
   import javax.xml.transform.TransformerException;
   
   
  @@ -116,10 +113,6 @@
   				throw new SiteTreeException("Node " + node + " couldn't be found");
   			}
   				tree.save();
  -			} catch (ParserConfigurationException e) {
  -				throw new SiteTreeException("Exception when creating the site tree", e);
  -			} catch (SAXException e) {
  -				throw new SiteTreeException("Exception when creating the site tree", e);
   			} catch (IOException e) {
   				throw new SiteTreeException("Exception when saving the tree file", e);
   			} catch (TransformerException e) {
  @@ -168,12 +161,7 @@
   			} else {
   				throw new SiteTreeException("Node " + node + " couldn't be found");
   			}
  -
                   sectree.save();
  -			} catch (ParserConfigurationException e) {
  -				throw new SiteTreeException("Exception when creating the site tree", e);
  -			} catch (SAXException e) {
  -				throw new SiteTreeException("Exception when creating the site tree", e);
   			} catch (IOException e) {
   				throw new SiteTreeException("Exception when saving the tree file", e);
               } catch (TransformerException e) {
  
  
  
  1.5       +1 -7      cocoon-lenya/src/java/org/apache/lenya/cms/ant/MoveNode.java
  
  Index: MoveNode.java
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/java/org/apache/lenya/cms/ant/MoveNode.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- MoveNode.java	25 Jul 2003 16:38:53 -0000	1.4
  +++ MoveNode.java	7 Aug 2003 15:52:26 -0000	1.5
  @@ -58,13 +58,11 @@
   import java.io.IOException;
   import java.util.StringTokenizer;
   
  -import javax.xml.parsers.ParserConfigurationException;
   import javax.xml.transform.TransformerException;
   
   import org.apache.lenya.cms.publication.DefaultSiteTree;
   import org.apache.lenya.cms.publication.SiteTreeException;
   import org.apache.lenya.cms.publication.SiteTreeNode;
  -import org.xml.sax.SAXException;
   
   
   /**
  @@ -129,10 +127,6 @@
   				firsttree.save();
   				sectree.save();
   			}
  -		} catch (ParserConfigurationException e) {
  -			throw new SiteTreeException("Exception when creating the site tree", e);
  -		} catch (SAXException e) {
  -			throw new SiteTreeException("Exception when creating the site tree", e);
   		} catch (IOException e) {
   			throw new SiteTreeException("Exception when saving the tree file", e);
   		} catch (TransformerException e) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org


Mime
View raw message