diff --git a/.gitignore b/.gitignore index 3128130..ef8d6e7 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ bsh-1.3.0-src.tar.bz2 +/2.0b6.tar.gz +/bsh-2.0-b6.tar.gz +/bsh-2.1.0.tar.gz diff --git a/0000-source-target-1.8.patch b/0000-source-target-1.8.patch new file mode 100644 index 0000000..5fb7dfd --- /dev/null +++ b/0000-source-target-1.8.patch @@ -0,0 +1,57 @@ +diff --git a/build.xml b/build.xml +index 8542245..6179cfa 100644 +--- a/build.xml ++++ b/build.xml +@@ -16,8 +16,8 @@ + + + +- +- ++ ++ + + + +@@ -178,8 +178,8 @@ + debug="on" + includes="**/*.java" + excludes="${excludes},**/bak/**" +- source="1.6" +- target="1.6" ++ source="1.8" ++ target="1.8" + > + + +@@ -213,8 +213,8 @@ + debug="on" + includes="**/*.java" + excludes="${excludes},**/bak/**" +- source="1.6" +- target="1.6" ++ source="1.8" ++ target="1.8" + > + + +@@ -255,7 +255,7 @@ + destdir="${javadoc-dir}" + author="true" + version="true" +- source="1.6" ++ source="1.8" + use="true" + windowtitle="BeanShell ${version}" + doctitle="<h1>BeanShell ${version}<h1>" +@@ -680,8 +680,8 @@ + destdir="${build-dir}" + debug="on" + debuglevel="lines,vars,source" +- source="1.6" +- target="1.6" ++ source="1.8" ++ target="1.8" + > + + diff --git a/0001-java-11-compatibility.patch b/0001-java-11-compatibility.patch new file mode 100644 index 0000000..36271b8 --- /dev/null +++ b/0001-java-11-compatibility.patch @@ -0,0 +1,27 @@ +From 9b83372c64f30f44bd56696ae6adcbe6a83e1e2f Mon Sep 17 00:00:00 2001 +From: Fabio Valentini +Date: Mon, 20 Jul 2020 21:28:13 +0200 +Subject: [PATCH 1/1] java 11 compatibility + +--- + src/bsh/util/AWTConsole.java | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/bsh/util/AWTConsole.java b/src/bsh/util/AWTConsole.java +index e88fbff..fbb237b 100644 +--- a/src/bsh/util/AWTConsole.java ++++ b/src/bsh/util/AWTConsole.java +@@ -214,8 +214,8 @@ public class AWTConsole extends TextArea + Great. What a piece of crap. + */ + public void setCaretPosition( int pos ) { +- ((java.awt.peer.TextComponentPeer)getPeer()).setCaretPosition( +- pos + countNLs() ); ++ //((java.awt.peer.TextComponentPeer)getPeer()).setCaretPosition( ++ // pos + countNLs() ); + } + + /* +-- +2.26.2 + diff --git a/bsh-1.3.0.pom b/bsh-1.3.0.pom deleted file mode 100644 index 2fdc81a..0000000 --- a/bsh-1.3.0.pom +++ /dev/null @@ -1,8 +0,0 @@ - - - 4.0.0 - bsh - bsh - Beanshell - 1.3.0 - diff --git a/bsh-bsf-1.3.0.pom b/bsh-bsf-1.3.0.pom deleted file mode 100644 index ba753f0..0000000 --- a/bsh-bsf-1.3.0.pom +++ /dev/null @@ -1,8 +0,0 @@ - - - 4.0.0 - bsh - bsh-bsf - Beanshell BSFEngine - 1.3.0 - diff --git a/bsh-build.patch b/bsh-build.patch deleted file mode 100644 index 31a2332..0000000 --- a/bsh-build.patch +++ /dev/null @@ -1,54 +0,0 @@ ---- BeanShell/build.xml.orig 2004-01-20 19:12:20.888557245 -0500 -+++ BeanShell/build.xml 2004-01-20 19:13:36.150184282 -0500 -@@ -103,50 +103,7 @@ - value="docs/manual/bshcommands-bshdoc.xml"/> - - -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -+ - - - - - -- -+ - - -- -+ - -