diff options
Diffstat (limited to 'textproc/jaxup/files')
-rw-r--r-- | textproc/jaxup/files/DOMXUpdater.java | 50 | ||||
-rw-r--r-- | textproc/jaxup/files/build.xml | 61 | ||||
-rw-r--r-- | textproc/jaxup/files/jaxup-xupdater.sh | 3 | ||||
-rw-r--r-- | textproc/jaxup/files/patch-build.xml | 11 |
4 files changed, 0 insertions, 125 deletions
diff --git a/textproc/jaxup/files/DOMXUpdater.java b/textproc/jaxup/files/DOMXUpdater.java deleted file mode 100644 index 7cae303e8c1a..000000000000 --- a/textproc/jaxup/files/DOMXUpdater.java +++ /dev/null @@ -1,50 +0,0 @@ -/** - * DOMXUpdater: a command-line XUpdate processor. - */ -import javax.xml.parsers.DocumentBuilder; -import javax.xml.parsers.DocumentBuilderFactory; - -import org.apache.xml.serialize.OutputFormat; -import org.apache.xml.serialize.XMLSerializer; -import org.jaxen.dom.DocumentNavigator; -import org.jaxup.dom.DOMDocumentUpdater; -import org.jaxup.xupdate.XUpdate; -import org.w3c.dom.Document; - -public class DOMXUpdater -{ - public static void main(String[] args) - { - if (args.length != 2) - { - System.out.println("usage: DOMXUpdater <source document url> <XUpdate document url>"); - System.exit(1); - } - - try - { - DocumentBuilderFactory factory=DocumentBuilderFactory.newInstance(); - factory.setNamespaceAware(true); - DocumentBuilder builder=factory.newDocumentBuilder(); - - Document doc=builder.parse(args[0]); - Document updateDoc=builder.parse(args[1]); - - XUpdate updater=new XUpdate(new DOMDocumentUpdater(), DocumentNavigator.getInstance()); - updater.runUpdate(doc, updateDoc.getDocumentElement()); - - OutputFormat o=new OutputFormat("xml", "ISO-8859-1", true); - o.setIndenting(true); - o.setIndent(2); - o.setPreserveSpace(true); - XMLSerializer serial=new XMLSerializer(System.out, o); - serial.serialize(doc); - System.out.println(); - } - catch (Exception e) - { - e.printStackTrace(); - System.exit(1); - } - } -} diff --git a/textproc/jaxup/files/build.xml b/textproc/jaxup/files/build.xml deleted file mode 100644 index 49711cd623d3..000000000000 --- a/textproc/jaxup/files/build.xml +++ /dev/null @@ -1,61 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<project name="jaxup" default="jar" basedir="."> - - <property name="project.version" value="1.01"/> - - <property name="build.dir" value="build"/> - <property name="build.classes.dir" value="${build.dir}/classes"/> - <property name="build.lib.dir" value="${build.dir}/lib"/> - <property name="build.docs.dir" value="${build.dir}/docs"/> - <property name="build.apidocs.dir" value="${build.docs.dir}/api"/> - <property name="src.dir" value="src"/> - <property name="src.java.dir" value="${src.dir}/java"/> - <property name="src.docs.dir" value="${src.dir}/doc"/> - <property name="src.tests.dir" value="${src.dir}/test"/> - <property name="lib.dir" value="lib"/> - <property name="project.fullname" value="${ant.project.name}-${project.version}"/> - <property name="jar.file" value="${build.lib.dir}/${ant.project.name}.jar"/> - - <path id="project.classpath"> - <pathelement path="${build.classes.dir}"/> - <fileset dir="${lib.dir}" includes="**.jar"/> - </path> - - <target name="build" description="Compile Core Java sources"> - <mkdir dir="${build.classes.dir}"/> - <javac srcdir="${src.java.dir}" destdir="${build.classes.dir}" deprecation="true" debug="Yes"> - <classpath refid="project.classpath"/> - </javac> - </target> - - <target name="clean" description="Delete built classes, docs, and JAR files"> - <delete dir="${build.dir}"/> - </target> - - <target name="rebuild" depends="clean, build" description="(Re)compile Java sources"/> - - <target name="jar" depends="build" description="Pack the JARs"> - <mkdir dir="${build.lib.dir}"/> - <jar destfile="${jar.file}"> - <manifest> - <attribute name="Built-By" value="${user.name}"/> - </manifest> - <fileset dir="${build.classes.dir}" includes="**/*.class"/> - </jar> - </target> - - <target name="docs" depends="apidocs" description="Build project docs"> - <copy todir="${build.docs.dir}"> - <fileset dir="${src.docs.dir}"/> - </copy> - </target> - - <target name="apidocs" depends="build" unless="noapidocs" description="Build the API docs (with javadoc)"> - <mkdir dir="${build.apidocs.dir}"/> - <javadoc destdir="${build.apidocs.dir}" windowtitle="${project.fullname}" author="true" version="true" use="true"> - <fileset dir="${src.java.dir}"/> - <classpath refid="project.classpath"/> - </javadoc> - </target> - -</project> diff --git a/textproc/jaxup/files/jaxup-xupdater.sh b/textproc/jaxup/files/jaxup-xupdater.sh deleted file mode 100644 index 35208b9c3e69..000000000000 --- a/textproc/jaxup/files/jaxup-xupdater.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -%%LOCALBASE%%/bin/java -cp "`"%%LOCALBASE%%/bin/classpath"`:%%DATADIR%%/jaxup-xupdater.jar" "DOMXUpdater" "$@" diff --git a/textproc/jaxup/files/patch-build.xml b/textproc/jaxup/files/patch-build.xml deleted file mode 100644 index 1c6731ab361a..000000000000 --- a/textproc/jaxup/files/patch-build.xml +++ /dev/null @@ -1,11 +0,0 @@ ---- build.xml.orig Thu Dec 9 14:14:21 2004 -+++ build.xml Thu Dec 9 14:16:44 2004 -@@ -57,6 +57,8 @@ - <javadoc destdir="${build.apidocs.dir}" windowtitle="${project.fullname}" author="true" version="true" use="true"> - <fileset dir="${src.java.dir}"/> - <classpath refid="project.classpath"/> -+ <link href="${jaxen.apidocs}"/> -+ <link href="${j2se.apidocs}"/> - </javadoc> - </target> - |