зеркало из https://github.com/mozilla/pjs.git
66 строки
3.0 KiB
HTML
66 строки
3.0 KiB
HTML
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
<meta name="KeyWords" content="Rhino, JavaScript, Java, BSF, Apache">
|
|
<title>Rhino and BSF</title>
|
|
<style>
|
|
BODY { background-color: white }
|
|
H1 { text-align: center }
|
|
P { text-align: justify }
|
|
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<h1>Rhino and BSF</h1>
|
|
|
|
<h2>What is BSF?</h2>
|
|
<p>
|
|
The <a href="http://jakarta.apache.org/bsf/">Bean
|
|
Scripting Framework</a> (or BSF) was originally developed by IBM and now
|
|
published as open source as a project at the Apache Software Foundation. It provides a framework for using a number of
|
|
scripting languages with Java. Rhino is one of the supported languages.
|
|
</p>
|
|
|
|
<p>This framework has been embedded in a number of open source projects,
|
|
including the XSL processor <a href="http://xml.apache.org/xalan-j/">Xalan</a>
|
|
and the XML/Java build tool <a href="http://ant.apache.org/">Ant</a>.
|
|
See <a href="http://xml.apache.org/xalan-j/extensions.html">Xalan-Java
|
|
Extensions</a> for more information on adding JavaScript to XSL and the description of the optional Script task in the
|
|
<a href="http://ant.apache.org/manual/">Apache Ant Manual</a> for using scripting in Ant build files.
|
|
</p>
|
|
|
|
<h2 id="bsf-issue">Using BSF with Rhino</h2>
|
|
|
|
<p>If you use BSF 2.3.0 Release candidate 1 (released 2002-11-12) or earlier versions, you have to use Rhino 1.5R2 or Rhino 1.5R3 (see Rhino <a href="download.html">download</a> page).
|
|
</p>
|
|
<p>
|
|
If you want to use later releases of Rhino, then as of time of writing, 2004-11-29, you have to either build BSF from <a href="http://jakarta.apache.org/site/cvsindex.html">Apache's CVS</a> or use pre-built binaries since BSF project has not yet released an official version incorporating all the necessary changes to work with Rhino 1.5R4 or later.
|
|
</p>
|
|
<p>You may find a pre-built BSF incorporating these changes (and all that will
|
|
make up the new version 2.4.0) in the BSF4Rexx-package at <a
|
|
href="http://wi.wu-wien.ac.at/rgf/rexx/bsf4rexx/current/">http://wi.wu-wien.ac.at/rgf/rexx/bsf4rexx/current/</a>.
|
|
(BSF4Rexx
|
|
allows Java to easily invoke <a href="http://www.RexxLA.org>">REXX</a> and <a
|
|
href="http://www.ooRexx.org">ooRexx (Open Object Rexx)</a> scripts. For ooRexx
|
|
the BSF4Rexx support allows ooRexx programmers
|
|
to use all Java classes and Java objects, as if they were (weakly) typed ooRexx
|
|
classes and objects. In addition it allows to script/automate <a
|
|
href="http://www.OpenOffice.org">OpenOffice.org</a> in a platform independent
|
|
manner using its Java-APIs with the help of BSF.)
|
|
</p>
|
|
|
|
<h2 id="bsf-new-RC2">New BSF version 2.4.0 pending</h2>
|
|
|
|
<p>As of 2006-09-16 the BSF team is about to release version 2.4.0, which
|
|
resolves this issue with the new distribution.
|
|
Release candidate 2 (RC2) will be voted upon for release for the beginning of
|
|
October 2006. News (and an updated WWW-site)
|
|
will be found at <a
|
|
href="http://jakarta.apache.org/bsf/">http://jakarta.apache.org/bsf/</a>.
|
|
</p>
|
|
<p><a href="index.html">back to top</a>
|
|
</body>
|
|
</html>
|