You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by st...@apache.org on 2005/07/26 15:52:58 UTC
svn commit: r225309 - in /incubator/jackrabbit/trunk/core/src:
java/org/apache/jackrabbit/core/NodeImpl.java
test/org/apache/jackrabbit/test/api/AbstractImportXmlTest.java
Author: stefan
Date: Tue Jul 26 06:52:49 2005
New Revision: 225309
URL: http://svn.apache.org/viewcvs?rev=225309&view=rev
Log:
JCR-173: success of some DocumentViewImportTest tests depends on Xerxes version being used
- disabled pretty printing when generating test xml document
- fixed unrelated typo
Modified:
incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/NodeImpl.java
incubator/jackrabbit/trunk/core/src/test/org/apache/jackrabbit/test/api/AbstractImportXmlTest.java
Modified: incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/NodeImpl.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/NodeImpl.java?rev=225309&r1=225308&r2=225309&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/NodeImpl.java (original)
+++ incubator/jackrabbit/trunk/core/src/java/org/apache/jackrabbit/core/NodeImpl.java Tue Jul 26 06:52:49 2005
@@ -984,7 +984,7 @@
}
// do the actual modifications implied by the new mixin;
- // try to revert the changes in case an excpetion occurs
+ // try to revert the changes in case an exception occurs
try {
// modify the state of this node
NodeState thisState = (NodeState) getOrCreateTransientItemState();
Modified: incubator/jackrabbit/trunk/core/src/test/org/apache/jackrabbit/test/api/AbstractImportXmlTest.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/core/src/test/org/apache/jackrabbit/test/api/AbstractImportXmlTest.java?rev=225309&r1=225308&r2=225309&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/core/src/test/org/apache/jackrabbit/test/api/AbstractImportXmlTest.java (original)
+++ incubator/jackrabbit/trunk/core/src/test/org/apache/jackrabbit/test/api/AbstractImportXmlTest.java Tue Jul 26 06:52:49 2005
@@ -390,7 +390,9 @@
public void serialize(Document document) throws IOException {
BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(file));
try {
- OutputFormat format = new OutputFormat("xml", "UTF-8", true);
+ // disable pretty printing/default line wrapping!
+ boolean indenting = false;
+ OutputFormat format = new OutputFormat("xml", "UTF-8", indenting);
XMLSerializer serializer = new XMLSerializer(bos, format);
serializer.serialize(document);
} finally {