]> git.pld-linux.org Git - packages/nekohtml.git/commitdiff
- originated from jpackage
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 10 May 2006 20:59:14 +0000 (20:59 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nekohtml-HTMLScanner.patch -> 1.1
    nekohtml-crosslink.patch -> 1.1
    nekohtml-filter.sh -> 1.1

nekohtml-HTMLScanner.patch [new file with mode: 0644]
nekohtml-crosslink.patch [new file with mode: 0644]
nekohtml-filter.sh [new file with mode: 0644]

diff --git a/nekohtml-HTMLScanner.patch b/nekohtml-HTMLScanner.patch
new file mode 100644 (file)
index 0000000..0934151
--- /dev/null
@@ -0,0 +1,26 @@
+--- src/html/org/cyberneko/html/HTMLScanner.java.sav   2005-06-19 06:04:02.000000000 +0200
++++ src/html/org/cyberneko/html/HTMLScanner.java       2005-10-11 07:46:06.000000000 +0200
+@@ -558,6 +558,11 @@
+     // XMLLocator methods\r
+     //\r
\r
++    /** Returns the xml version. */\r
++    public String getXMLVersion() {\r
++        return null;\r
++    } // getXMLVersion():String\r
++\r
+     /** Returns the encoding. */\r
+     public String getEncoding() {\r
+         return fCurrentEntity != null ? fCurrentEntity.encoding : null;\r
+@@ -584,6 +589,11 @@
+     } // getExpandedSystemId():String\r
\r
+     /** Returns the current line number. */\r
++    public int getCharacterOffset() { \r
++        return -1; \r
++    } // getCharacterOffset():int\r
++\r
++    /** Returns the current line number. */\r
+     public int getLineNumber() { \r
+         return fCurrentEntity != null ? fCurrentEntity.lineNumber : -1; \r
+     } // getLineNumber():int\r
diff --git a/nekohtml-crosslink.patch b/nekohtml-crosslink.patch
new file mode 100644 (file)
index 0000000..73b7c44
--- /dev/null
@@ -0,0 +1,26 @@
+--- build-html.xml~    2004-06-30 09:03:39.000000000 +0300
++++ build-html.xml     2004-07-03 19:52:56.973843825 +0300
+@@ -35,6 +35,10 @@
+  <property name='version.dir'      value='bin/html/src'/>\r
+  <property name='version.manifest' value='${version.dir}/MANIFEST_html'/>\r
+  <property name='version.dir.java' value='${version.dir}/org/cyberneko/html'/>\r
++ <property name='j2se.javadoc' value='http://java.sun.com/j2se/1.4.2/docs/api/'/>\r
++ <property name='xni.javadoc' value='http://xml.apache.org/xerces2-j/javadocs/xni/'/>\r
++ <property name='xerces.javadoc' value='http://xml.apache.org/xerces2-j/javadocs/xerces2/'/>\r
++\r
+  <property name='version.java'     value='${version.dir.java}/Version.java'/>\r
+  \r
+  <!-- TARGETS --> \r
+@@ -101,7 +105,11 @@
+            windowtitle="${Name} Implementation"\r
+            doctitle="${Name}"\r
+            bottom="${copyright}" \r
+-           />\r
++           >\r
++    <link href="${j2se.javadoc}"/>\r
++    <link href="${xni.javadoc}"/>\r
++    <link href="${xerces.javadoc}"/>\r
++  </javadoc>\r
+   <property name='docs.done' value='true'/>\r
+  </target>\r
\r
diff --git a/nekohtml-filter.sh b/nekohtml-filter.sh
new file mode 100644 (file)
index 0000000..f54e69e
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/sh
+# 
+# nekohtml filter script
+# JPackage Project <http://www.jpackage.org/>
+
+# Source functions library
+if [ -f /usr/share/java-utils/java-functions ] ; then 
+  . /usr/share/java-utils/java-functions
+else
+  echo "Can't find functions library, aborting"
+  exit 1
+fi
+
+# Configuration
+MAIN_CLASS=org.cyberneko.html.filters.Writer
+BASE_JARS="nekohtml xerces-j2"
+
+# Set parameters
+set_jvm
+set_classpath $BASE_JARS
+
+# Let's start
+run "$@"
This page took 0.092295 seconds and 4 git commands to generate.