move to main, thanks to Wolfgang
Arnaud Vandyck
18 years ago
0 | libbsf-java (1:2.3.0+cvs20050308-3) experimental; urgency=low | |
1 | ||
2 | * Move to main (together with libxalan2-java) | |
3 | * Added BeanShell as supported scripting language to description | |
4 | (provides its own bsf adapter) and also to Suggests | |
5 | * Enabled junit tests and added junit to build-dependencies | |
6 | + Removed unsupported script engines from tests | |
7 | (03_RemoveUnsupportedTestcases.patch) | |
8 | * Included documentation html files | |
9 | * Unified build.xml patch (02_Build_xml.patch) | |
10 | + Incorporated former 02_Build_Javadoc.patch to exclude test classes | |
11 | + Fixed jar target to not include test classes | |
12 | + Added correct classpath for test target | |
13 | + Added target=1.3 as javac option to support JDK 1.3 | |
14 | ||
15 | -- Wolfgang Baer <WBaer@gmx.de> Wed, 11 May 2005 19:14:16 +0200 | |
16 | ||
0 | 17 | libbsf-java (1:2.3.0+cvs20050308-2) unstable; urgency=low |
1 | 18 | |
2 | 19 | * Fixed depends (as non-free vm's do not provide java1-runtime) |
0 | 0 | Source: libbsf-java |
1 | Section: contrib/libs | |
1 | Section: libs | |
2 | 2 | Priority: optional |
3 | 3 | Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org> |
4 | 4 | Uploaders: Stefan Gybas <sgybas@debian.org>, Arnaud Vandyck <avdyk@debian.org>, Wolfgang Baer <WBaer@gmx.de> |
5 | Build-Depends-Indep: debhelper (>= 4.2.30), cdbs, libant1.6-java, kaffe (>=2:1.1.4.PRECVS9-1), libservlet2.3-java, libxalan2-java, jython, rhino | |
5 | Build-Depends-Indep: debhelper (>= 4.2.30), cdbs, libant1.6-java, kaffe (>=2:1.1.5-1), libservlet2.3-java, libxalan2-java, jython, rhino, junit | |
6 | 6 | Standards-Version: 3.6.1 |
7 | 7 | |
8 | 8 | Package: libbsf-java |
9 | 9 | Architecture: all |
10 | Section: contrib/libs | |
10 | Section: libs | |
11 | 11 | Depends: kaffe | java1-runtime | java2-runtime |
12 | Suggests: libservlet2.3-java, libxalan2-java, jython, rhino | |
12 | Suggests: libservlet2.3-java, libxalan2-java, jython, rhino, bsh | |
13 | 13 | Description: Bean Scripting Framework to support scripting languages in Java |
14 | 14 | Bean Scripting Framework (BSF) is a set of Java classes which provides |
15 | 15 | scripting language support within Java applications, and access to Java |
25 | 25 | * Python (using Jython) |
26 | 26 | * JavaScript (using rhino) |
27 | 27 | * XSLT Stylesheets (as a component of Apache XML project's Xalan and Xerces) |
28 | * BeanShell (using bsh) via its own bsf adapter | |
28 | 29 | . |
29 | 30 | Support for Tcl, NetRexx is not available in this Debian |
30 | 31 | package since Jacl, NetRexx (non-free) are not packaged. |
0 | --- build.xml.orig 2005-05-12 19:19:30.000000000 +0200 | |
1 | +++ build.xml 2005-05-12 19:18:05.000000000 +0200 | |
2 | @@ -219,6 +219,20 @@ | |
3 | <exclude name="**/test/**" unless="junit.present"/> | |
4 | </patternset> | |
5 | ||
6 | + <patternset id="jarpatterns"> | |
7 | + <!-- Optionally includes engines based on dependencies being present --> | |
8 | + <!-- FIXME: Exclude the first three, temporarily --> | |
9 | + <exclude name="**/java/**"/> | |
10 | + <exclude name="**/javaclass/**"/> | |
11 | + <exclude name="**/activescript/**"/> | |
12 | + <exclude name="**/jacl/**" unless="jacl.present"/> | |
13 | + <exclude name="**/javascript/**" unless="rhino.present"/> | |
14 | + <exclude name="**/jython/**" unless="jython.present"/> | |
15 | + <exclude name="**/netrexx/**" unless="netrexx.present"/> | |
16 | + <exclude name="**/xslt/**" unless="xalan.present"/> | |
17 | + <exclude name="**/test/**"/> | |
18 | + </patternset> | |
19 | + | |
20 | <!-- =================================================================== --> | |
21 | <!-- Compiles the source directory --> | |
22 | <!-- =================================================================== --> | |
23 | @@ -234,7 +248,7 @@ | |
24 | <javac srcdir="${src.dir}" | |
25 | destdir="${build.dest}" | |
26 | debug="${project.debug}" | |
27 | - deprecation="${project.deprecation}"> | |
28 | + deprecation="${project.deprecation}" target="1.3"> | |
29 | <patternset refid="javac.source.files"/> | |
30 | </javac> | |
31 | ||
32 | @@ -242,7 +256,9 @@ | |
33 | <!-- Produces the jar file --> | |
34 | <!-- ================================================================= --> | |
35 | <mkdir dir="${build.lib}"/> | |
36 | - <jar jarfile="${build.lib}/${project.name}.jar" basedir="${build.dest}"/> | |
37 | + <jar jarfile="${build.lib}/${project.name}.jar" basedir="${build.dest}"> | |
38 | + <patternset refid="jarpatterns"/> | |
39 | + </jar> | |
40 | ||
41 | <uptodate property="javadoc.required" | |
42 | targetfile="${build.lib}/${project.name}.jar"> | |
43 | @@ -302,7 +318,10 @@ | |
44 | depends="compile"> | |
45 | <junit> | |
46 | <classpath> | |
47 | - <pathelement location="${build.lib}/${name}.jar" /> | |
48 | + <pathelement location="${build.dest}" /> | |
49 | + <pathelement location="${build.lib}/bsf.jar" /> | |
50 | + <pathelement location="/usr/share/java/js.jar" /> | |
51 | + <pathelement location="/usr/share/java/jython.jar" /> | |
52 | </classpath> | |
53 | <formatter type="brief" usefile="false" /> | |
54 | <test name="org.apache.bsf.test.BSFTest" /> | |
55 | @@ -318,7 +337,8 @@ | |
56 | <mkdir dir="${build.javadocs}"/> | |
57 | <!-- FIXME: Excluding some packages temporarily --> | |
58 | <javadoc packagenames="${packages}" | |
59 | - excludepackagenames="org.apache.bsf.engines.java, org.apache.bsf.engines.javaclass, org.apache.bsf.engines.activescript" | |
60 | + excludepackagenames="org.apache.bsf.engines.java, org.apache.bsf.engines.javaclass, org.apache.bsf.engines.activescript,org.apache.bsf.engines.netrexx,org.apache.bsf.engines.jacl, | |
61 | +org.apache.bsf.test,org.apache.bsf.test.engineTests,org.apache.bsf.test.utilTests" | |
62 | sourcepath="${src.dir}" | |
63 | destdir="${build.javadocs}" | |
64 | author="true" |
0 | --- src/org/apache/bsf/test/BSFTest.java.orig 2005-05-12 19:25:50.000000000 +0200 | |
1 | +++ src/org/apache/bsf/test/BSFTest.java 2005-05-12 19:25:22.000000000 +0200 | |
2 | @@ -97,24 +97,20 @@ | |
3 | * Please add testcases here as needed. | |
4 | */ | |
5 | TestSuite suite = new TestSuite(); | |
6 | - testNames = new String [8]; | |
7 | + testNames = new String [6]; | |
8 | ||
9 | suite.addTestSuite(BSFTest.class); | |
10 | testNames[0] = "BSFManager Base Tests"; | |
11 | - suite.addTestSuite(jaclTest.class); | |
12 | - testNames[1] = "Jacl Engine Tests"; | |
13 | suite.addTestSuite(javascriptTest.class); | |
14 | - testNames[2] = "Rhino Engine Tests"; | |
15 | + testNames[1] = "Rhino Engine Tests"; | |
16 | suite.addTestSuite(jythonTest.class); | |
17 | - testNames[3] = "Jython Engine Tests"; | |
18 | - suite.addTestSuite(netrexxTest.class); | |
19 | - testNames[4] = "NetRexx Engine Tests"; | |
20 | + testNames[2] = "Jython Engine Tests"; | |
21 | suite.addTestSuite(StringUtilsTest.class); | |
22 | - testNames[5] = "StringUtils Test"; | |
23 | + testNames[3] = "StringUtils Test"; | |
24 | suite.addTestSuite(IOUtilsTest.class); | |
25 | - testNames[6] = "IOUtils Test"; | |
26 | + testNames[4] = "IOUtils Test"; | |
27 | suite.addTestSuite(EngineUtilsTest.class); | |
28 | - testNames[7] = "EngineUtils Test"; | |
29 | + testNames[5] = "EngineUtils Test"; | |
30 | ||
31 | return suite; | |
32 | } |
6 | 6 | |
7 | 7 | export UPSTREAM_VERSION = 2.3.0 |
8 | 8 | |
9 | # Java and Ant home (required) | |
10 | 9 | JAVA_HOME := /usr/lib/kaffe |
11 | 10 | ANT_HOME := /usr/share/ant1.6 |
12 | 11 | |
13 | # Additional JARs to add to the class path, either full path or just the | |
14 | # basename for JARs in /usr/share/java. The ".jar" suffix may also be ommitted | |
15 | DEB_JARS := ${ANT_HOME}/lib/ant-launcher.jar xalan2 servlet-2.3 jython js | |
16 | ||
17 | # Build compiler | |
12 | DEB_JARS := ${ANT_HOME}/lib/ant-launcher.jar xalan2 servlet-2.3 jython js ${ANT_HOME}/lib/ant-junit.jar junit | |
18 | 13 | DEB_ANT_COMPILER := jikes |
19 | 14 | |
20 | 15 | DEB_ANT_BUILD_TARGET := compile javadocs |
16 | DEB_ANT_CHECK_TARGET := test | |
21 | 17 | |
22 | 18 | install/libbsf-java:: |
23 | 19 | install -m 644 build/lib/bsf.jar debian/libbsf-java/usr/share/java/bsf-$(UPSTREAM_VERSION).jar |