mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Switched to use xerces to eliminate dependency on JDK 1.4
This commit is contained in:
parent
7289b8404d
commit
2e52ac872d
4 changed files with 9 additions and 9 deletions
|
@ -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"/>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue