diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/werken-xpath/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/werken-xpath/files')
5 files changed, 241 insertions, 0 deletions
diff --git a/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-gentoo.patch b/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-gentoo.patch new file mode 100644 index 000000000000..1cd61fc818ad --- /dev/null +++ b/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-gentoo.patch @@ -0,0 +1,35 @@ +diff -ru werken.xpath/build.xml werken.xpath-patched/build.xml +--- werken.xpath/build.xml 2000-11-19 21:45:16.000000000 -0500 ++++ werken.xpath-patched/build.xml 2005-07-14 21:14:01.000000000 -0400 +@@ -49,6 +49,9 @@ + <!-- JDK1.1 collections --> + <property name="coll.import" value="com.sun.java.util.collections"/> + <available classname="${coll.import}.Collection" property="coll.present"/> ++ <path id="lib.classpath"> ++ <fileset dir="${lib.dir}" includes="**/*.jar"/> ++ </path> + </target> + + <!-- =================================================================== --> +@@ -174,7 +177,8 @@ + <javac srcdir="${build.src}" + destdir="${build.dest}" + debug="${debug}" +- optimize="${optimize}"> ++ optimize="${optimize}" ++ classpathref="lib.classpath"> + </javac> + </target> + +diff -ru werken.xpath/src/com/werken/xpath/Test.java werken.xpath-patched/src/com/werken/xpath/Test.java +--- werken.xpath/src/com/werken/xpath/Test.java 2000-10-23 23:45:32.000000000 -0400 ++++ werken.xpath-patched/src/com/werken/xpath/Test.java 2005-07-14 21:22:42.000000000 -0400 +@@ -57,7 +57,7 @@ + System.err.println("Results :: " + results); + + } +- catch (JDOMException jde) ++ catch (Exception jde) + { + jde.printStackTrace(System.err); + } diff --git a/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-jdom-1.0.patch b/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-jdom-1.0.patch new file mode 100644 index 000000000000..099f7110a5da --- /dev/null +++ b/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-jdom-1.0.patch @@ -0,0 +1,86 @@ +--- werken.xpath/src/com/werken/xpath/ElementNamespaceContext.java ++++ werken.xpath/src/com/werken/xpath/ElementNamespaceContext.java +@@ -62,12 +62,12 @@ + + lineage.push(_element); + +- Element elem = _element.getParent(); ++ Element elem = _element.getParentElement(); + + while (elem != null) + { + lineage.push(elem); +- elem = elem.getParent(); ++ elem = elem.getParentElement(); + } + + List nsList = null; +--- werken.xpath/src/com/werken/xpath/impl/ParentStep.java ++++ werken.xpath/src/com/werken/xpath/impl/ParentStep.java +@@ -28,7 +28,7 @@ + { + if ( node instanceof Element ) + { +- return ((Element)node).getParent(); ++ return ((Element)node).getParentElement(); + } + + return null; +@@ -50,7 +50,7 @@ + + if ( each instanceof Element ) + { +- parent = ((Element)each).getParent(); ++ parent = ((Element)each).getParentElement(); + + if (parent != null) + { +--- werken.xpath/src/com/werken/xpath/util/Partition.java ++++ werken.xpath/src/com/werken/xpath/util/Partition.java +@@ -67,7 +67,7 @@ + + public static List followingSiblings(Element node) + { +- Element parent = node.getParent(); ++ Element parent = node.getParentElement(); + + if (parent == null) + { +@@ -95,7 +95,7 @@ + + public static List preceedingSiblings(Element node) + { +- Element parent = node.getParent(); ++ Element parent = node.getParentElement(); + + if (parent == null) + { +@@ -137,7 +137,7 @@ + results.addAll( Partition.descendants( each ) ); + } + +- Element parent = node.getParent(); ++ Element parent = node.getParentElement(); + + if (parent != null) + { +@@ -170,7 +170,7 @@ + results.addAll( Partition.descendants( each ) ); + } + +- Element parent = node.getParent(); ++ Element parent = node.getParentElement(); + + if (parent != null) + { +--- werken.xpath/test/src/com/werken/xpath/test/Driver.java ++++ werken.xpath/test/src/com/werken/xpath/test/Driver.java +@@ -47,7 +47,7 @@ + + System.out.println("Using test-cases in [" + args[0] + "]"); + +- File dataDir = driverXML.getParentFile(); ++ File dataDir = driverXML.getParentElementFile(); + + Driver driver = Driver(dataDir, + driverXML); diff --git a/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-jpp-compile.patch b/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-jpp-compile.patch new file mode 100644 index 000000000000..516158f63083 --- /dev/null +++ b/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-jpp-compile.patch @@ -0,0 +1,24 @@ +diff -Nru werken.xpath.orig/src/com/werken/xpath/impl/Op.java werken.xpath/src/com/werken/xpath/impl/Op.java +--- werken.xpath.orig/src/com/werken/xpath/impl/Op.java 2000-08-27 03:16:03.000000000 +0300 ++++ werken.xpath/src/com/werken/xpath/impl/Op.java 2003-03-02 01:44:52.000000000 +0200 +@@ -19,7 +19,7 @@ + public final static Op GT = new Op(">"); + public final static Op LT_EQUAL = new Op("<="); + public final static Op GT_EQUAL = new Op(">="); +- public final static Op MOD = new Op("%");; ++ public final static Op MOD = new Op("%"); + public final static Op DIV = new Op("/"); + public final static Op PLUS = new Op("+"); + public final static Op MINUS = new Op("-"); +diff -Nru werken.xpath.orig/src/com/werken/xpath/impl/UnAbbrStep.java werken.xpath/src/com/werken/xpath/impl/UnAbbrStep.java +--- werken.xpath.orig/src/com/werken/xpath/impl/UnAbbrStep.java 2000-10-31 22:20:56.000000000 +0200 ++++ werken.xpath/src/com/werken/xpath/impl/UnAbbrStep.java 2003-03-02 01:45:04.000000000 +0200 +@@ -175,7 +175,7 @@ + } + } + +- return aggregateResults;; ++ return aggregateResults; + } + + private List applyPredicates(List nodeSet, diff --git a/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-jpp-jdom.patch b/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-jpp-jdom.patch new file mode 100644 index 000000000000..ba2b268f1c89 --- /dev/null +++ b/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-jpp-jdom.patch @@ -0,0 +1,86 @@ +diff -Nru werken.xpath.orig/src/com/werken/xpath/function/StringFunction.java werken.xpath/src/com/werken/xpath/function/StringFunction.java +--- werken.xpath.orig/src/com/werken/xpath/function/StringFunction.java 2000-10-24 06:30:00.000000000 +0300 ++++ werken.xpath/src/com/werken/xpath/function/StringFunction.java 2003-03-02 01:56:03.000000000 +0200 +@@ -71,7 +71,7 @@ + + public static String evaluate(Element elem) + { +- List content = elem.getMixedContent(); ++ List content = elem.getContent(); + + Iterator contentIter = content.iterator(); + Object each = null; +diff -Nru werken.xpath.orig/src/com/werken/xpath/impl/NodeTypeStep.java werken.xpath/src/com/werken/xpath/impl/NodeTypeStep.java +--- werken.xpath.orig/src/com/werken/xpath/impl/NodeTypeStep.java 2000-10-26 04:09:41.000000000 +0300 ++++ werken.xpath/src/com/werken/xpath/impl/NodeTypeStep.java 2003-03-02 01:56:03.000000000 +0200 +@@ -84,16 +84,16 @@ + { + if ( isAbsolute() ) + { +- results.addAll( applyToNodes( ((Element)node).getDocument().getMixedContent() ) ); ++ results.addAll( applyToNodes( ((Element)node).getDocument().getContent() ) ); + } + else + { +- results.addAll( applyToNodes( ((Element)node).getMixedContent() ) ); ++ results.addAll( applyToNodes( ((Element)node).getContent() ) ); + } + } + else if ( node instanceof Document ) + { +- results.addAll( applyToNodes( ((Document)node).getMixedContent() ) ); ++ results.addAll( applyToNodes( ((Document)node).getContent() ) ); + } + + return results; +diff -Nru werken.xpath.orig/src/com/werken/xpath/impl/UnAbbrStep.java werken.xpath/src/com/werken/xpath/impl/UnAbbrStep.java +--- werken.xpath.orig/src/com/werken/xpath/impl/UnAbbrStep.java 2000-10-31 22:20:56.000000000 +0200 ++++ werken.xpath/src/com/werken/xpath/impl/UnAbbrStep.java 2003-03-02 01:56:03.000000000 +0200 +@@ -227,7 +227,7 @@ + + if ( node instanceof Element ) + { +- List children = ((Element)node).getMixedContent(); ++ List children = ((Element)node).getContent(); + + results.addAll( applyTo( children, + support, +@@ -235,7 +235,7 @@ + } + else if ( node instanceof Document ) + { +- List children = ((Document)node).getMixedContent(); ++ List children = ((Document)node).getContent(); + + results.addAll( applyTo( children, + support, +@@ -256,7 +256,7 @@ + + if ( node instanceof Element ) + { +- List children = ((Element)node).getMixedContent(); ++ List children = ((Element)node).getContent(); + + results.addAll( applyTo( children, + support, +@@ -264,7 +264,7 @@ + } + else if ( node instanceof Document ) + { +- List children = ((Document)node).getMixedContent(); ++ List children = ((Document)node).getContent(); + + results.addAll( applyTo( children, + support, +diff -Nru werken.xpath.orig/test/src/com/werken/xpath/test/Driver.java werken.xpath/test/src/com/werken/xpath/test/Driver.java +--- werken.xpath.orig/test/src/com/werken/xpath/test/Driver.java 2000-11-09 19:43:30.000000000 +0200 ++++ werken.xpath/test/src/com/werken/xpath/test/Driver.java 2003-03-02 01:56:55.000000000 +0200 +@@ -412,7 +412,7 @@ + elemID = ""; + } + +- resultNode.addAttribute("id", elemID); ++ resultNode.setAttribute("id", elemID); + node.addContent( resultNode ); + results.addContent( node ); + } diff --git a/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-jpp-tests.patch b/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-jpp-tests.patch new file mode 100644 index 000000000000..d26e6185aff3 --- /dev/null +++ b/dev-java/werken-xpath/files/werken-xpath-0.9.4_beta-jpp-tests.patch @@ -0,0 +1,10 @@ +--- runtests.sh~ 2000-10-31 23:42:01.000000000 +0200 ++++ runtests.sh 2003-03-02 01:59:55.000000000 +0200 +@@ -9,6 +9,6 @@ + XPATH_CP=./build/werken.xpath.jar + TEST_CP=./build/test/classes/ + +-CP=$ANTLR_CP:$JDOM_CP:$XPATH_CP:$TEST_CP:$XERCES_CP ++CP=$ANTLR_CP:$JDOM_CP:$XPATH_CP:$TEST_CP:$XERCES_CP:$CLASSPATH + + java -classpath $CP $TEST_DRIVER $TESTS_XML |