summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripting/examples/java/build.xml211
-rwxr-xr-xscripting/examples/java/makefile.mk70
-rwxr-xr-xscripting/examples/makefile.mk26
-rw-r--r--scripting/prj/build.lst5
4 files changed, 306 insertions, 6 deletions
diff --git a/scripting/examples/java/build.xml b/scripting/examples/java/build.xml
new file mode 100755
index 000000000000..4153ade097eb
--- /dev/null
+++ b/scripting/examples/java/build.xml
@@ -0,0 +1,211 @@
+<!--
+#*************************************************************************
+#
+# $RCSfile: build.xml,v $
+#
+# $Revision: 1.1 $
+#
+# last change: $Author: toconnor $ $Date: 2003-08-21 15:48:06 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (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.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+-->
+<project name="Scipting Framework Installer" default="buildexamples" basedir=".">
+
+ <!-- =================== Environmental Properties ======================= -->
+
+ <property name="prj" value="../.."/>
+ <property file="${prj}/java/build.env"/>
+ <property name="build.compiler" value="classic"/>
+ <property name="optimize" value="on"/>
+ <property name="debug" value="on"/>
+ <property name="installerclasses" value="${out}/class/sframeworkinstall"/>
+ <property name="jardir" value="${out}/class"/>
+ <property name="bindir" value="${out}/bin"/>
+ <property name="sfversion" value="0.3"/>
+ <property name="installerjarname" value="SFrameworkInstall.jar"/>
+ <property environment="env"/>
+
+ <!-- ==================== classpath setting ============================ -->
+ <path id="idlclasspath">
+ <pathelement location="${solar.jar}/unoil.jar"/>
+ <!-- <pathelement location="${prj}/../unoil/${inpath}/class/unoil.jar"/> -->
+ <pathelement location="${solar.jar}/jurt.jar"/>
+ <pathelement location="${solar.jar}/jut.jar"/>
+ <pathelement location="${solar.jar}/juh.jar"/>
+ <pathelement location="${solar.jar}/java_uno.jar"/>
+ <pathelement location="${solar.jar}/ridl.jar"/>
+ <pathelement location="${solar.jar}/sandbox.jar"/>
+ </path>
+ <path id="scriptexampleclasspath">
+ <pathelement location="${solar.jar}/unoil.jar"/>
+ <!-- pathelement location="${prj}/../unoil/${inpath}/class/unoil.jar"/ -->
+ <pathelement location="${solar.jar}/jurt.jar"/>
+ <pathelement location="${solar.jar}/jut.jar"/>
+ <pathelement location="${solar.jar}/juh.jar"/>
+ <pathelement location="${solar.jar}/java_uno.jar"/>
+ <pathelement location="${solar.jar}/ridl.jar"/>
+ <pathelement location="${solar.jar}/sandbox.jar"/>
+ <pathelement location="${out}/class/ScriptRuntimeForJava.jar"/>
+ </path>
+
+ <path id="debuggerclasspath">
+ <pathelement location="${out}/class/ScriptRuntimeForJava.jar"/>
+ <pathelement location="${solar.jar}/ridl.jar"/>
+ <pathelement location="${solar.jar}/unoil.jar"/>
+ <pathelement location="${out}/class/js.jar"/>
+ <pathelement location="${solar.jar}/bsh-1.2b7.jar"/>
+ </path>
+
+ <!-- ===================== Patch the Rhino js.jar ======================-->
+ <target name="patchesJS">
+ <unzip src="${solar.bin}/js.jar"
+ dest="${out}/class/jsjartmp"/>
+ <javac srcdir="${prj}/examples/java/debugger"
+ destdir="${out}/class/jsjartmp"
+ includes="rhino/Main.java" classpathref="debuggerclasspath"
+ debug="${debug}" optimize="${optimize}" deprecation="on"/>
+
+ <zip destfile="${out}/class/js.jar"
+ basedir="${out}/class/jsjartmp" includes="**"/>
+ </target>
+ <!-- ===================== Build the examples ========================= -->
+ <target name="buildexamples" depends="patchesJS">
+
+ <mkdir dir="${out}/class/examples/java/debugger"/>
+ <javac srcdir="${prj}/examples/java/debugger"
+ destdir="${out}/class/examples/java/debugger"
+ includes="*.java"
+ classpathref="debuggerclasspath"
+ debug="${debug}" optimize="${optimize}" deprecation="on"/>
+
+ <copy todir="${out}/class/examples/java/debugger">
+ <fileset dir="${prj}/examples/java/debugger">
+ <include name="**/*.java"/>
+ <include name="*.xml"/>
+ </fileset>
+ </copy>
+
+ <jar jarfile="${out}/class/examples/java/debugger/debugger.jar"
+ basedir="${out}/class/examples/java/debugger" includes="*.class">
+ <manifest>
+ <attribute name="Built-By" value="Sun Microsystems"/>
+ <attribute name="ScriptFramework-Version" value="${sfversion}"/>
+ </manifest>
+ </jar>
+
+ <delete>
+ <fileset dir="${out}/class/examples/java/debugger" includes="*.class"/>
+ </delete>
+
+ <mkdir dir="${out}/class/examples/java/Highlight"/>
+ <javac srcdir="${prj}/examples/java/" destdir="${out}/class/examples/java/Highlight/"
+ includes="**/Highlight*.java" classpathref="idlclasspath"
+ debug="${debug}" optimize="${optimize}" deprecation="on"/>
+ <copy todir="${out}/class/examples/java/Highlight/">
+ <fileset dir="${prj}/examples/java/">
+ <include name="**/Highlight*.java"/>
+ </fileset>
+ </copy>
+ <copy file="${prj}/examples/java/HighlightTextParcel.xml" tofile="${out}/class/examples/java/Highlight/parcel-descriptor.xml"/>
+ <jar jarfile="${out}/class/examples/java/Highlight/Highlight.jar"
+ basedir="${out}/class/examples/java/Highlight"
+ includes="**/*.java,**/*.class,**/*.xml"
+ excludes="${out}/class/examples/java/Highlight/Highlight.jar">
+ <manifest>
+ <attribute name="Built-By" value="Sun Microsystems"/>
+ <attribute name="ScriptFramework-Version" value="${sfversion}"/>
+ </manifest>
+ </jar>
+ <mkdir dir="${out}/class/examples/java/MemoryUsage"/>
+ <javac srcdir="${prj}/examples/java/" destdir="${out}/class/examples/java/MemoryUsage/"
+ includes="**/MemoryUsage.java" classpathref="idlclasspath"
+ debug="${debug}" optimize="${optimize}" deprecation="on"/>
+ <copy file="${prj}/examples/java/MemoryUsage.java" todir="${out}/class/examples/java/MemoryUsage/"/>
+ <copy file="${prj}/examples/java/MemoryUsageParcel.xml" tofile="${out}/class/examples/java/MemoryUsage/parcel-descriptor.xml"/>
+ <copy file="${prj}/examples/java/MemoryUsage.java" todir="${out}/class/examples/java/MemoryUsage/"/>
+ <copy file="${prj}/examples/java/ExampleSpreadSheet.sxc" todir="${out}/class/examples/java/MemoryUsage/"/>
+
+ <mkdir dir="${out}/class/examples/java/ScriptFrmwrkHelper"/>
+ <javac srcdir="${prj}/examples/java/" destdir="${out}/class/examples/java/ScriptFrmwrkHelper/"
+ includes="**/ScriptFrmwrkHelper.java" classpathref="scriptexampleclasspath"
+ debug="${debug}" optimize="${optimize}" deprecation="on"/>
+ <copy todir="${out}/class/examples/java/ScriptFrmwrkHelper/">
+ <fileset dir="${prj}/examples/java/">
+ <include name="**/ScriptFrmwrkHelper.java"/>
+ </fileset>
+ </copy>
+ <copy file="${prj}/examples/java/ScriptFrameWkHelperParcel.xml" tofile="${out}/class/examples/java/ScriptFrmwrkHelper/parcel-descriptor.xml"/>
+ <jar jarfile="${out}/class/examples/java/ScriptFrmwrkHelper/ScriptFrmwrkHelper.jar"
+ basedir="${out}/class/examples/java/ScriptFrmwrkHelper"
+ includes="**/*.java,**/*.class,**/*.xml"
+ excludes="${out}/class/examples/java/ScriptFrmwrkHelper/ScriptFrmwrkHelper.jar">
+ <manifest>
+ <attribute name="Built-By" value="Sun Microsystems"/>
+ <attribute name="ScriptFramework-Version" value="${sfversion}"/>
+ </manifest>
+ </jar>
+ </target>
+
+ <!-- ====================== Clean Generated Files ===================== -->
+ <target name="clean">
+ <delete dir="${scriptingclasses}"/>
+ <delete dir="${storageclasses}"/>
+ <delete dir="${jardir}/${scriptingjarname}"/>
+ </target>
+
+ <!-- ========================= All In One Build ======================= -->
+ <target name="all" depends="clean,buildexamples"/>
+
+</project>
diff --git a/scripting/examples/java/makefile.mk b/scripting/examples/java/makefile.mk
new file mode 100755
index 000000000000..0f178c9e7db4
--- /dev/null
+++ b/scripting/examples/java/makefile.mk
@@ -0,0 +1,70 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1 $
+#
+# last change: $Author: toconnor $ $Date: 2003-08-21 15:48:06 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (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.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+
+PRJ=..$/..
+PRJNAME=scripting
+TARGET=javaexamples
+
+.INCLUDE : ant.mk
+
+ALLTAR : ANTBUILD
+
diff --git a/scripting/examples/makefile.mk b/scripting/examples/makefile.mk
index a00d9b54aaaa..75e377690458 100755
--- a/scripting/examples/makefile.mk
+++ b/scripting/examples/makefile.mk
@@ -2,9 +2,9 @@
#
# $RCSfile: makefile.mk,v $
#
-# $Revision: 1.1 $
+# $Revision: 1.2 $
#
-# last change: $Author: dfoster $ $Date: 2003-07-14 16:02:37 $
+# last change: $Author: toconnor $ $Date: 2003-08-21 15:48:05 $
#
# The Contents of this file are made available subject to the terms of
# either of the following licenses
@@ -63,8 +63,26 @@
PRJ=..
PRJNAME=scriptinginstaller
TARGET=scriptinginstaller
+no_common_build_zip=true
-.INCLUDE : ant.mk
+.INCLUDE : settings.mk
-ALLTAR : ANTBUILD
+ZIP1FLAGS=-r
+ZIP1TARGET=ScriptsJava
+ZIP1DIR=$(OUT)$/class/examples
+ZIP1LIST=java
+ZIP2FLAGS=-r
+ZIP2TARGET=ScriptsBeanShell
+ZIP2LIST=beanshell
+
+ZIP3FLAGS=-r
+ZIP3TARGET=ScriptsJavaScript
+ZIP3LIST=javascript
+
+ZIP4FLAGS=-r
+ZIP4TARGET=scriptbindinglib
+ZIP4DIR=$(PRJ)$/workben/bindings
+ZIP4LIST=*.xlb *.xdl *.xba
+
+.INCLUDE : target.mk
diff --git a/scripting/prj/build.lst b/scripting/prj/build.lst
index 2d304ba5e92d..7372d5ac159e 100644
--- a/scripting/prj/build.lst
+++ b/scripting/prj/build.lst
@@ -4,6 +4,7 @@ tc scripting\source\storage nmake - all tc_scriptingstorage NULL
tc scripting\source\provider nmake - all tc_scriptingprovider tc_scriptingstorage NULL
tc scripting\source\protocolhandler nmake - all tc_scriptingprotocolhandler tc_scriptingstorage tc_scriptingprovider NULL
tc scripting\java nmake - all tc_scriptingjava tc_scriptingstorage tc_scriptingprovider tc_scriptingprotocolhandler NULL
-tc scripting\examples nmake - all tc_scriptingexamples tc_scriptingjava NULL
-tc scripting\util nmake - all tc_scriptingutil tc_scriptingstorage tc_scriptingprovider tc_scriptingprotocolhandler tc_scriptingjava tc_scriptingexamples NULL
+tc scripting\examples\java nmake - all tc_scriptingexamplesjava tc_scriptingjava NULL
+tc scripting\examples nmake - all tc_scriptingexamples tc_scriptingexamplesjava NULL
+tc scripting\util nmake - all tc_scriptingutil tc_scriptingstorage tc_scriptingprovider tc_scriptingprotocolhandler tc_scriptingjava tc_scriptingexamplesjava tc_scriptingexamples NULL