Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/releng
diff options
context:
space:
mode:
authorDoug Schaefer2003-08-28 14:16:53 +0000
committerDoug Schaefer2003-08-28 14:16:53 +0000
commit2e52ac872daff4cb2733eba7ea46298d8ed98194 (patch)
tree18c6dcb9f63f40b3e05e203992d9710e02652053 /releng
parent7289b8404ddac08b2efe104b001bf5d427b4f9a9 (diff)
downloadorg.eclipse.cdt-2e52ac872daff4cb2733eba7ea46298d8ed98194.tar.gz
org.eclipse.cdt-2e52ac872daff4cb2733eba7ea46298d8ed98194.tar.xz
org.eclipse.cdt-2e52ac872daff4cb2733eba7ea46298d8ed98194.zip
Switched to use xerces to eliminate dependency on JDK 1.4
Diffstat (limited to 'releng')
-rw-r--r--releng/org.eclipse.cdt.releng/.classpath1
-rw-r--r--releng/org.eclipse.cdt.releng/.project1
-rw-r--r--releng/org.eclipse.cdt.releng/plugin.xml1
-rw-r--r--releng/org.eclipse.cdt.releng/src/org/eclipse/cdt/releng/DoBuild.java15
4 files changed, 9 insertions, 9 deletions
diff --git a/releng/org.eclipse.cdt.releng/.classpath b/releng/org.eclipse.cdt.releng/.classpath
index 1413313269..ea230fa622 100644
--- a/releng/org.eclipse.cdt.releng/.classpath
+++ b/releng/org.eclipse.cdt.releng/.classpath
@@ -9,6 +9,7 @@
<classpathentry kind="src" path="/org.eclipse.team.core"/>
<classpathentry kind="src" path="/org.eclipse.pde.core"/>
<classpathentry kind="src" path="/org.eclipse.pde.ui"/>
+ <classpathentry kind="src" path="/org.apache.xerces"/>
<classpathentry kind="src" path="/org.eclipse.core.boot"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="bin"/>
diff --git a/releng/org.eclipse.cdt.releng/.project b/releng/org.eclipse.cdt.releng/.project
index d8f81b8918..5faaf5ee41 100644
--- a/releng/org.eclipse.cdt.releng/.project
+++ b/releng/org.eclipse.cdt.releng/.project
@@ -3,6 +3,7 @@
<name>org.eclipse.cdt.releng</name>
<comment></comment>
<projects>
+ <project>org.apache.xerces</project>
<project>org.eclipse.core.boot</project>
<project>org.eclipse.core.resources</project>
<project>org.eclipse.core.runtime</project>
diff --git a/releng/org.eclipse.cdt.releng/plugin.xml b/releng/org.eclipse.cdt.releng/plugin.xml
index 7bd549b675..bf65de9451 100644
--- a/releng/org.eclipse.cdt.releng/plugin.xml
+++ b/releng/org.eclipse.cdt.releng/plugin.xml
@@ -18,6 +18,7 @@
<import plugin="org.eclipse.team.core"/>
<import plugin="org.eclipse.pde.core"/>
<import plugin="org.eclipse.pde.ui"/>
+ <import plugin="org.apache.xerces"/>
</requires>
diff --git a/releng/org.eclipse.cdt.releng/src/org/eclipse/cdt/releng/DoBuild.java b/releng/org.eclipse.cdt.releng/src/org/eclipse/cdt/releng/DoBuild.java
index fe7ba580e7..8c4318ee2b 100644
--- a/releng/org.eclipse.cdt.releng/src/org/eclipse/cdt/releng/DoBuild.java
+++ b/releng/org.eclipse.cdt.releng/src/org/eclipse/cdt/releng/DoBuild.java
@@ -1,6 +1,5 @@
package org.eclipse.cdt.releng;
-import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
@@ -9,11 +8,9 @@ import java.util.ArrayList;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
-import javax.xml.transform.Transformer;
-import javax.xml.transform.TransformerFactory;
-import javax.xml.transform.dom.DOMSource;
-import javax.xml.transform.stream.StreamResult;
+import org.apache.xml.serialize.OutputFormat;
+import org.apache.xml.serialize.XMLSerializer;
import org.eclipse.core.boot.IPlatformRunnable;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IFolder;
@@ -259,10 +256,10 @@ public class DoBuild implements IPlatformRunnable {
String buildNum = versionElem.getAttribute("build");
buildNum = String.valueOf(Integer.decode(buildNum).intValue() + 1);
versionElem.setAttribute("build", buildNum);
- TransformerFactory transformerFactory = TransformerFactory.newInstance();
- Transformer transformer = transformerFactory.newTransformer();
- File versionResult = new File(versionFile.getRawLocation().toOSString());
- transformer.transform(new DOMSource(versionDoc), new StreamResult(versionResult));
+ OutputFormat xmlOutputFormat = new OutputFormat("xml", "UTF-8", false);
+ FileOutputStream versionResult = new FileOutputStream(versionFile.getRawLocation().toOSString());
+ XMLSerializer ser = new XMLSerializer(versionResult, xmlOutputFormat);
+ ser.serialize(versionDoc);
versionFile.refreshLocal(IResource.DEPTH_ONE, monitor);
version = versionId + "." + buildNum;

Back to the top