This is an automated email from the ASF dual-hosted git repository.

jimjag pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 7def0f8acd beanshell: use the 3.0.0RC3 bundle jar
7def0f8acd is described below

commit 7def0f8acddc2415d0c459a0beda02b08521004b
Author: Jim Jagielski <[email protected]>
AuthorDate: Thu Nov 5 09:55:12 2026 -0500

    beanshell: use the 3.0.0RC3 bundle jar
---
 main/LICENSE                       | 33 +++++++++++++
 main/beanshell/bsh-2.1.1-src.patch | 95 --------------------------------------
 main/beanshell/makefile.mk         | 19 ++++----
 main/beanshell/prj/d.lst           |  2 +-
 main/external_deps.lst             |  6 +--
 5 files changed, 46 insertions(+), 109 deletions(-)

diff --git a/main/LICENSE b/main/LICENSE
index 7f1ef7f04b..597c1d4a11 100644
--- a/main/LICENSE
+++ b/main/LICENSE
@@ -1492,6 +1492,39 @@ SUCH DAMAGE.
 
 ____
 
+For ASM, shaded into the BeanShell jar - built in main/beanshell/:
+- BSD license
+
+ASM: a very small and fast Java bytecode manipulation framework
+Copyright (c) 2000-2011 INRIA, France Telecom
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+   notice, this list of conditions and the following disclaimer in the
+   documentation and/or other materials provided with the distribution.
+3. Neither the name of the copyright holders nor the names of its
+   contributors may be used to endorse or promote products derived from
+   this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+THE POSSIBILITY OF SUCH DAMAGE.
+
+____
+
 For jemalloc - built in main/jemalloc/:
 - BSD license
 
diff --git a/main/beanshell/bsh-2.1.1-src.patch 
b/main/beanshell/bsh-2.1.1-src.patch
deleted file mode 100644
index c3d8d677b5..0000000000
--- a/main/beanshell/bsh-2.1.1-src.patch
+++ /dev/null
@@ -1,95 +0,0 @@
---- misc/BeanShell-2.1.1/build.xml     Fri Dec 19 17:14:27 2003
-+++ misc/build/BeanShell-2.1.1/build.xml       Fri Mar 28 15:55:04 2008
-@@ -10,14 +10,14 @@
-               - Why can't I nest filesets?  This seems like it would be so 
easy and
-               useful...
- -->
--<project name="beanshell" default="compile-all" basedir=".">
-+<project name="beanshell" default="jarall" basedir=".">
-
- <!-- Project Configuration -->
-
- <property name="file" value=""/>
-
--      <property name="ant.build.javac.target" value="1.6" />
--      <property name="ant.build.javac.source" value="1.6" />
-+      <property name="ant.build.javac.target" value="1.8" />
-+      <property name="ant.build.javac.source" value="1.8" />
-       <property name="version" value="2.1.1"/>
-       <property name="deprecation" value="on"/>
-       <property name="Specification-Title" value="BeanShell" />
-@@ -178,8 +178,8 @@
-                       debug="on"
-                       includes="**/*.java"
-                       excludes="${excludes},**/bak/**"
--                      source="1.6"
--                      target="1.6"
-+                      source="1.8"
-+                      target="1.8"
-               >
-                       <classpath>
-                               <fileset refid="lib-fileset"/>
-@@ -213,8 +213,8 @@
-                       debug="on"
-                       includes="**/*.java"
-                       excludes="${excludes},**/bak/**"
--                      source="1.6"
--                      target="1.6"
-+                      source="1.8"
-+                      target="1.8"
-               >
-                       <classpath>
-                               <fileset refid="lib-fileset"/>
-@@ -255,7 +255,7 @@
-                        destdir="${javadoc-dir}"
-                        author="true"
-                        version="true"
--                       source="1.6"
-+                       source="1.8"
-                        use="true"
-                        windowtitle="BeanShell ${version}"
-                        doctitle="&lt;h1&gt;BeanShell ${version}&lt;h1&gt;"
-@@ -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"
-                         >
-                <classpath>
-                       <path refid="test-classpath"/>
---- misc/BeanShell-2.1.1/makefile.mk   Fri Mar 28 15:56:40 2008
-+++ misc/build/BeanShell-2.1.1/makefile.mk     Fri Mar 28 15:56:06 2008
-@@ -1 +1,29 @@
--dummy
-+#**************************************************************
-+#
-+#  Licensed to the Apache Software Foundation (ASF) under one
-+#  or more contributor license agreements.  See the NOTICE file
-+#  distributed with this work for additional information
-+#  regarding copyright ownership.  The ASF licenses this file
-+#  to you under the Apache License, Version 2.0 (the
-+#  "License"); you may not use this file except in compliance
-+#  with the License.  You may obtain a copy of the License at
-+#
-+#    http://www.apache.org/licenses/LICENSE-2.0
-+#
-+#  Unless required by applicable law or agreed to in writing,
-+#  software distributed under the License is distributed on an
-+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-+#  KIND, either express or implied.  See the License for the
-+#  specific language governing permissions and limitations
-+#  under the License.
-+#
-+#**************************************************************
-+
-+PRJ=..$/..$/..$/..
-+PRJNAME=ooo_beanshell
-+TARGET=jarall
-+
-+.INCLUDE : ant.mk
-+
-+ALLTAR : ANTBUILD
-+
diff --git a/main/beanshell/makefile.mk b/main/beanshell/makefile.mk
index 2d9c472cdd..67a032259a 100644
--- a/main/beanshell/makefile.mk
+++ b/main/beanshell/makefile.mk
@@ -44,19 +44,18 @@ all:
 
 # --- Files --------------------------------------------------------
 
-TARFILE_NAME=bsh-2.1.1-src
-TARFILE_MD5=f75fbfe6d5ce3568704f89ec5c3b34a7
-TARFILE_ROOTDIR=BeanShell-2.1.1
-PATCH_FILES=bsh-2.1.1-src.patch
-
-ADDITIONAL_FILES=makefile.mk
-
-BUILD_ACTION=dmake $(MFLAGS) $(CALLMACROS)
+# BeanShell 3 is released as a ready-to-use OSGi bundle jar, so there is
+# nothing to unpack or build; the downloaded jar is the bsh.jar we ship.
+BSH_JAR_NAME=bsh-3.0.0RC3.jar
+BSH_JAR_MD5=3623feb40cb7e4fb26e02d8921ef86fa
 
 # --- Targets ------------------------------------------------------
 
-.INCLUDE : set_ext.mk
 .INCLUDE : target.mk
-.INCLUDE : tg_ext.mk
+
+ALLTAR : $(BIN)$/bsh.jar
+
+$(BIN)$/bsh.jar : $(TARFILE_LOCATION)$/$(BSH_JAR_MD5)-$(BSH_JAR_NAME)
+       $(COMMAND_ECHO)$(COPY) $< $@
 
 .ENDIF
diff --git a/main/beanshell/prj/d.lst b/main/beanshell/prj/d.lst
index 7e8d69092d..7bf62e249c 100644
--- a/main/beanshell/prj/d.lst
+++ b/main/beanshell/prj/d.lst
@@ -1 +1 @@
-..\%__SRC%\misc\build\BeanShell-2.1.1\dist\bsh-2.1.1.jar 
%_DEST%\bin%_EXT%\bsh.jar
+..\%__SRC%\bin\bsh.jar %_DEST%\bin%_EXT%\bsh.jar
diff --git a/main/external_deps.lst b/main/external_deps.lst
index 0f46354aeb..2f754194b5 100644
--- a/main/external_deps.lst
+++ b/main/external_deps.lst
@@ -263,9 +263,9 @@ if (RAT_JAR_HOME==BUILD)
     URL2 = $(OOO_EXTRAS)$(MD5)-$(name)
 
 if (SOLAR_JAVA==TRUE && SYSTEM_BSH!=YES)
-    MD5 = f75fbfe6d5ce3568704f89ec5c3b34a7
-    name = bsh-2.1.1-src.zip
-    URL1 = 
https://github.com/beanshell/beanshell/releases/download/2.1.1/$(name)
+    MD5 = 3623feb40cb7e4fb26e02d8921ef86fa
+    name = bsh-3.0.0RC3.jar
+    URL1 = 
https://github.com/beanshell/beanshell/releases/download/3.0.0RC3/$(name)
     URL2 = $(OOO_EXTRAS)$(MD5)-$(name)
 
 ###############################################################################

Reply via email to