harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r788102 - in /harmony/enhanced/classlib/branches/java6: depends/files/ depends/jars/ modules/script/ modules/script/META-INF/ modules/script/make/
Date Wed, 24 Jun 2009 18:03:55 GMT
Author: hindessm
Date: Wed Jun 24 18:03:55 2009
New Revision: 788102

URL: http://svn.apache.org/viewvc?rev=788102&view=rev
Log:
Adding javax.script module using the implementation from Apache Jakarta BSF.
Sadly it doesn't work because the implementation relies on
javax.imageio.spi.ServiceRegistry which is not implemented yet.

Added:
    harmony/enhanced/classlib/branches/java6/modules/script/
    harmony/enhanced/classlib/branches/java6/modules/script/META-INF/
    harmony/enhanced/classlib/branches/java6/modules/script/META-INF/MANIFEST.MF   (with props)
    harmony/enhanced/classlib/branches/java6/modules/script/build.xml   (with props)
    harmony/enhanced/classlib/branches/java6/modules/script/make/
    harmony/enhanced/classlib/branches/java6/modules/script/make/depends.properties   (with
props)
Modified:
    harmony/enhanced/classlib/branches/java6/depends/files/bootclasspath.properties
    harmony/enhanced/classlib/branches/java6/depends/jars/   (props changed)

Modified: harmony/enhanced/classlib/branches/java6/depends/files/bootclasspath.properties
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/depends/files/bootclasspath.properties?rev=788102&r1=788101&r2=788102&view=diff
==============================================================================
--- harmony/enhanced/classlib/branches/java6/depends/files/bootclasspath.properties (original)
+++ harmony/enhanced/classlib/branches/java6/depends/files/bootclasspath.properties Wed Jun
24 18:03:55 2009
@@ -205,3 +205,5 @@
 #bootclasspath.source.packageroot.49=/
 
 bootclasspath.50=asm-3.1/asm-3.1.jar
+
+bootclasspath.51=bsf-3.0-beta3/bsf-api.jar

Propchange: harmony/enhanced/classlib/branches/java6/depends/jars/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Wed Jun 24 18:03:55 2009
@@ -10,3 +10,4 @@
 asm-3.1
 icu4j_4.0
 xmlsec_1.4.0
+bsf-3.0-beta3

Added: harmony/enhanced/classlib/branches/java6/modules/script/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/script/META-INF/MANIFEST.MF?rev=788102&view=auto
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/script/META-INF/MANIFEST.MF (added)
+++ harmony/enhanced/classlib/branches/java6/modules/script/META-INF/MANIFEST.MF Wed Jun 24
18:03:55 2009
@@ -0,0 +1,12 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Harmony BSF
+Bundle-SymbolicName: org.apache.harmony.bsf
+Bundle-Version: 3.0-beta3
+Bundle-ClassPath: bsf-api.jar
+Eclipse-JREBundle: true
+Export-Package: javax.script
+Import-Package: java.io,
+  java.lang.reflect,
+  java.util,
+  javax.imageio.spi

Propchange: harmony/enhanced/classlib/branches/java6/modules/script/META-INF/MANIFEST.MF
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/classlib/branches/java6/modules/script/build.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/script/build.xml?rev=788102&view=auto
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/script/build.xml (added)
+++ harmony/enhanced/classlib/branches/java6/modules/script/build.xml Wed Jun 24 18:03:55
2009
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    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.
+-->
+
+<project name="SCRIPT Build" default="build" basedir=".">
+    <description>Build for SCRIPT component</description>
+
+    <property name="hy.hdk" location="${basedir}/../../deploy" />
+    <property name="hy.jdk" location="${hy.hdk}/jdk" />
+    <property name="depends.dir" location="${basedir}/../../depends" />
+    <import file="${hy.hdk}/build/ant/properties.xml" />
+    <import file="${hy.hdk}/build/ant/depends.xml" />
+
+    <target name="build" depends="check-depends, -copy-jars" />
+
+    <target name="check-depends"
+            depends="-check-depends,-extract-props,-extract" />
+
+    <target name="-check-depends">
+        <check-one-file src="${bsf.url}" dest="${bsf.zip}" />
+    </target>
+
+    <target name="-extract-props">
+        <uptodate property="bsf.uptodate"
+                  srcfile="${bsf.zip}"
+                  targetfile="${bsf.jar}" />
+    </target>
+
+    <target name="-extract" unless="bsf.uptodate">
+        <unzip src="${bsf.zip}" dest="${bsf.dir}.tmp" />
+        <copy 
+             file="${bsf.dir}.tmp/bsf-${bsf.version}/lib/bsf-api-${bsf.version}.jar"
+             tofile="${bsf.jar}"  />
+        <delete dir="${bsf.dir}.tmp" />
+        <touch file="${bsf.jar}" />
+    </target>
+        
+    <target name="fetch-depends">
+
+        <mkdir dir="${bsf.dir}" />
+        <download-one-file src="${bsf.url}" dest="${bsf.zip}"
+                           md5="${bsf.md5}" />
+
+    </target>
+
+    <target name="-copy-jars">
+        <copy todir="${hy.jdk}/jre/lib/boot">
+            <fileset dir="${depends.jars}">
+                <patternset includes="bsf-${bsf.version}/*.jar" />
+            </fileset>
+        </copy>
+        <copy todir="${hy.jdk}/jre/lib/boot/bsf-${bsf.version}/META-INF">
+            <fileset dir="META-INF" />
+        </copy>
+    </target>
+
+    <target name="test" />
+
+    <target name="clean">
+        <delete dir="${hy.jdk}/jre/lib/boot/bsf-${bsf.version}" />
+    </target>
+
+</project>

Propchange: harmony/enhanced/classlib/branches/java6/modules/script/build.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/classlib/branches/java6/modules/script/make/depends.properties
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/script/make/depends.properties?rev=788102&view=auto
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/script/make/depends.properties (added)
+++ harmony/enhanced/classlib/branches/java6/modules/script/make/depends.properties Wed Jun
24 18:03:55 2009
@@ -0,0 +1,25 @@
+# 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.
+
+depends.jars=${depends.dir}/jars
+apache.base=http://www.apache.org/dist
+bsf.base=${apache.base}/jakarta/bsf/binaries
+
+bsf.version=3.0-beta3
+bsf.dir=${depends.jars}/bsf-${bsf.version}
+bsf.zip=${bsf.dir}/bsf.zip
+bsf.jar=${bsf.dir}/bsf-api.jar
+bsf.url=${bsf.base}/bsf-3.0-beta3-bin.zip
+bsf.md5=f863e0e68c109d957d60257baefc1748

Propchange: harmony/enhanced/classlib/branches/java6/modules/script/make/depends.properties
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message