12 Star 0 Fork 4

src-openEuler / bsf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
bsf.spec 2.44 KB
一键复制 编辑 原始数据 按行查看 历史
wanjk19 提交于 2019-12-13 10:09 . Package Init
Name: bsf
Epoch: 0
Version: 2.4.0
Release: 32
Summary: Bean Scripting Framework
License: ASL 2.0
URL: http://commons.apache.org/bsf/
BuildArch: noarch
Source0: http://apache.mirror.anlx.net//commons/%{name}/source/%{name}-src-%{version}.tar.gz
Source1: bsf-pom.xml
Patch0000: build-file.patch
Patch0001: build.properties.patch
BuildRequires: javapackages-local ant apache-parent xalan-j2 rhino apache-commons-logging
%description
Bean Scripting Framework (BSF) is a set of Java classes which provides
scripting language support within Java applications, and access to Java
objects and methods from scripting languages.
The two primary components of BSF are the BSFManager and the BSFEngine.
The BSFManager handles all scripting execution engines running under its
control, and maintains the object registry that permits scripts access
to Java objects. By creating an instance of the BSFManager class, a Java
application can gain access to scripting services.
The BSFEngine provides an interface that must be implemented for a language
to be used by BSF. This interface provides an abstraction of the scripting
language's capabilities that permits generic handling of script execution
and object registration within the execution context of the scripting
language engine.
An application can instantiate a single BSFManager, and execute several
different scripting languages identically via the BSFEngine interface. Furthermore,
all of the scripting languages handled by the BSFManager are aware of the
objects registered with that BSFManager, and the execution state of those
scripting languages is maintained for the lifetime of the BSFManager.
%package help
Summary: Help documentation for bsf
Provides: bsf-javadoc = %{epoch}:%{version}-%{release}
Obsoletes: bsf-javadoc < %{epoch}:%{version}-%{release}
%description help
The Package is infomation about bsf.
%prep
%autosetup -p1
find -name \*.jar -delete
%mvn_file : bsf
%mvn_alias : org.apache.bsf:
%build
export CLASSPATH=$(build-classpath apache-commons-logging rhino xalan-j2)
ant jar javadocs
%mvn_artifact %{SOURCE1} build/lib/bsf.jar
%install
%mvn_install -J build/javadocs
%files -f .mfiles
%license LICENSE.txt NOTICE.txt
%doc AUTHORS.txt CHANGES.txt README.txt TODO.txt RELEASE-NOTE.txt
%files help -f .mfiles-javadoc
%changelog
* Thu Dec 12 2019 wanjiankang <wanjiankang@huawei.com> - 0:2.4.0-32
- Package Init
1
https://gitee.com/src-openeuler/bsf.git
git@gitee.com:src-openeuler/bsf.git
src-openeuler
bsf
bsf
openEuler-22.03-LTS

搜索帮助