Kaydet (Commit) cef995bf authored tarafından Tomas O'Connor's avatar Tomas O'Connor

Rename ScriptRuntimeForRhino to ScriptRuntimeForJavaScript and replace

all references to language.
üst 6056ad6d
...@@ -20,7 +20,7 @@ public class DebugRunner { ...@@ -20,7 +20,7 @@ public class DebugRunner {
OOScriptDebugger debugger; OOScriptDebugger debugger;
String path = ""; String path = "";
if (language.equals("Rhino")) { if (language.equals("JavaScript")) {
debugger = new OORhinoDebugger(); debugger = new OORhinoDebugger();
} }
else if (language.equals("BeanShell")) { else if (language.equals("BeanShell")) {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<script language="Java"> <script language="Java">
<locale lang="en"> <locale lang="en">
<displayname value="Scripting Framework Debugger" /> <displayname value="Scripting Framework Debugger" />
<description>Script that starts debuggers for Rhino and BeanShell <description>Script that starts debuggers for JavaScript and BeanShell
</description> </description>
</locale> </locale>
<logicalname value="_$DebugRunner.Debug" /> <logicalname value="_$DebugRunner.Debug" />
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
# #
# $RCSfile: build.xml,v $ # $RCSfile: build.xml,v $
# #
# $Revision: 1.19 $ # $Revision: 1.20 $
# #
# last change: $Author: toconnor $ $Date: 2003-05-16 13:50:00 $ # last change: $Author: toconnor $ $Date: 2003-06-03 09:32:48 $
# #
# The Contents of this file are made available subject to the terms of # The Contents of this file are made available subject to the terms of
# either of the following licenses # either of the following licenses
...@@ -169,10 +169,10 @@ ...@@ -169,10 +169,10 @@
basedir="${scriptingclasses}"> basedir="${scriptingclasses}">
<exclude name="${netbeans.dir}/**/.*/*"/> <exclude name="${netbeans.dir}/**/.*/*"/>
<exclude name="**/beanshell/*"/> <exclude name="**/beanshell/*"/>
<exclude name="**/rhino/*"/> <exclude name="**/javascript/*"/>
<exclude name="**/security/*"/> <exclude name="**/security/*"/>
<exclude name="BeanShellRuntimeComponentRegistration.class"/> <exclude name="BeanShellRuntimeComponentRegistration.class"/>
<exclude name="RhinoRuntimeComponentRegistration.class"/> <exclude name="JavaScriptRuntimeComponentRegistration.class"/>
<manifest> <manifest>
<attribute name="Built-By" value="Sun Microsystems"/> <attribute name="Built-By" value="Sun Microsystems"/>
<attribute name="RegistrationClassName" value="ScriptRuntimeComponentRegistration"/> <attribute name="RegistrationClassName" value="ScriptRuntimeComponentRegistration"/>
...@@ -191,15 +191,15 @@ ...@@ -191,15 +191,15 @@
<include name="**/ScriptContext.class"/> <include name="**/ScriptContext.class"/>
</jar> </jar>
<jar jarfile="${jardir}/ScriptRuntimeForRhino.jar" <jar jarfile="${jardir}/ScriptRuntimeForJavaScript.jar"
basedir="${scriptingclasses}"> basedir="${scriptingclasses}">
<manifest> <manifest>
<attribute name="Built-By" value="Sun Microsystems"/> <attribute name="Built-By" value="Sun Microsystems"/>
<attribute name="RegistrationClassName" <attribute name="RegistrationClassName"
value="RhinoRuntimeComponentRegistration"/> value="JavaScriptRuntimeComponentRegistration"/>
</manifest> </manifest>
<include name="RhinoRuntimeComponentRegistration.class"/> <include name="JavaScriptRuntimeComponentRegistration.class"/>
<include name="**/ScriptRuntimeForRhino**.class"/> <include name="**/ScriptRuntimeForJavaScript**.class"/>
<include name="**/ScriptContext.class"/> <include name="**/ScriptContext.class"/>
</jar> </jar>
......
...@@ -234,7 +234,7 @@ end sub ...@@ -234,7 +234,7 @@ end sub
Sub ExecuteEditDebug() Sub ExecuteEditDebug()
locations = Array ( &quot;User&quot;, &quot;Share&quot;, &quot;Document&quot;, &quot;Filesystem&quot; ) locations = Array ( &quot;User&quot;, &quot;Share&quot;, &quot;Document&quot;, &quot;Filesystem&quot; )
languages = Array ( &quot;BeanShell&quot;, &quot;Rhino&quot; ) languages = Array ( &quot;BeanShell&quot;, &quot;JavaScript&quot; )
dialogName = &quot;EditDebug&quot; dialogName = &quot;EditDebug&quot;
initialiseFileExtensions() initialiseFileExtensions()
bindingDialog = LoadDialog( &quot;ScriptBindingLibrary&quot;, &quot;EditDebug&quot; ) bindingDialog = LoadDialog( &quot;ScriptBindingLibrary&quot;, &quot;EditDebug&quot; )
...@@ -280,16 +280,17 @@ Sub initialiseNavigationComboArrays() ...@@ -280,16 +280,17 @@ Sub initialiseNavigationComboArrays()
langCount = 1 langCount = 1
for index = 0 to ubound(svrArray) for index = 0 to ubound(svrArray)
iPos = inStr(svrArray(index), &quot;ScriptRuntimeFor&quot;) iPos = inStr(svrArray(index), &quot;ScriptRuntimeFor&quot;)
iJava = inStr(svrArray(index), &quot;ScriptRuntimeForJava&quot;)
if (iPos &gt; 0) then
if (iJava = 0) and (iPos &gt; 0) then lang = Mid(svrArray(index), iPos + Len(&quot;ScriptRuntimeFor&quot;)
lang = Mid(svrArray(index), iPos + Len(&quot;ScriptRuntimeFor&quot;)
if not (lang = &quot;Java&quot;) then
&apos;Add to language vector &apos;Add to language vector
ReDim Preserve languages(langCount) as String ReDim Preserve languages(langCount) as String
languages(langCount) = lang languages(langCount) = lang
langCount = langCount +1 langCount = langCount + 1
endif
endif endif
next index next index
initialiseFileExtensions() initialiseFileExtensions()
...@@ -2036,4 +2037,4 @@ end sub ...@@ -2036,4 +2037,4 @@ end sub
sub HelpOKButton() sub HelpOKButton()
helpDialog.endExecute() helpDialog.endExecute()
end sub end sub
</script:module> </script:module>
\ No newline at end of file
<!-- <!--
#************************************************************************* #*************************************************************************
# #
# $RCSfile: build.xml,v $ # $RCSfile: build.xml,v $
# #
# $Revision: 1.25 $ # $Revision: 1.26 $
# #
# last change: $Author: dfoster $ $Date: 2003-05-29 14:18:39 $ # last change: $Author: toconnor $ $Date: 2003-06-03 09:32:49 $
# #
# The Contents of this file are made available subject to the terms of # The Contents of this file are made available subject to the terms of
# either of the following licenses # either of the following licenses
# #
# - GNU Lesser General Public License Version 2.1 # - GNU Lesser General Public License Version 2.1
# - Sun Industry Standards Source License Version 1.1 # - Sun Industry Standards Source License Version 1.1
# #
# Sun Microsystems Inc., October, 2000 # Sun Microsystems Inc., October, 2000
# #
# GNU Lesser General Public License Version 2.1 # GNU Lesser General Public License Version 2.1
# ============================================= # =============================================
# Copyright 2000 by Sun Microsystems, Inc. # Copyright 2000 by Sun Microsystems, Inc.
# 901 San Antonio Road, Palo Alto, CA 94303, USA # 901 San Antonio Road, Palo Alto, CA 94303, USA
# #
# This library is free software; you can redistribute it and/or # This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public # modify it under the terms of the GNU Lesser General Public
# License version 2.1, as published by the Free Software Foundation. # License version 2.1, as published by the Free Software Foundation.
# #
# This library is distributed in the hope that it will be useful, # This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details. # Lesser General Public License for more details.
# #
# You should have received a copy of the GNU Lesser General Public # You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software # License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, # Foundation, Inc., 59 Temple Place, Suite 330, Boston,
# MA 02111-1307 USA # MA 02111-1307 USA
# #
# #
# Sun Industry Standards Source License Version 1.1 # Sun Industry Standards Source License Version 1.1
# ================================================= # =================================================
# The contents of this file are subject to the Sun Industry Standards # 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 # 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 # except in compliance with the License. You may obtain a copy of the
# License at http://www.openoffice.org/license.html. # License at http://www.openoffice.org/license.html.
# #
# Software provided under this License is provided on an "AS IS" basis, # Software provided under this License is provided on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, # WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, # WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. # MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
# See the License for the specific provisions governing your rights and # See the License for the specific provisions governing your rights and
# obligations concerning the Software. # obligations concerning the Software.
# #
# The Initial Developer of the Original Code is: Sun Microsystems, Inc. # The Initial Developer of the Original Code is: Sun Microsystems, Inc.
# #
# Copyright: 2000 by Sun Microsystems, Inc. # Copyright: 2000 by Sun Microsystems, Inc.
# #
# All Rights Reserved. # All Rights Reserved.
# #
# Contributor(s): _______________________________________ # Contributor(s): _______________________________________
# #
# #
# #
#************************************************************************* #*************************************************************************
--> -->
<project name="Scipting Framework Installer" default="jar" basedir="."> <project name="Scipting Framework Installer" default="jar" basedir=".">
<!-- =================== Environmental Properties ======================= --> <!-- =================== Environmental Properties ======================= -->
<property name="prj" value=".."/> <property name="prj" value=".."/>
<property file="${prj}/java/build.env"/> <property file="${prj}/java/build.env"/>
<property name="build.compiler" value="classic"/> <property name="build.compiler" value="classic"/>
<property name="optimize" value="on"/> <property name="optimize" value="on"/>
<property name="debug" value="on"/> <property name="debug" value="on"/>
<property name="installerclasses" value="${out}/class/sframeworkinstall"/> <property name="installerclasses" value="${out}/class/sframeworkinstall"/>
<property name="jardir" value="${out}/class"/> <property name="jardir" value="${out}/class"/>
<property name="bindir" value="${out}/bin"/> <property name="bindir" value="${out}/bin"/>
<property name="sfversion" value="0.3"/> <property name="sfversion" value="0.3"/>
<property name="installerjarname" value="SFrameworkInstall.jar"/> <property name="installerjarname" value="SFrameworkInstall.jar"/>
<property environment="env"/> <property environment="env"/>
<!-- ==================== classpath setting ============================ --> <!-- ==================== classpath setting ============================ -->
<path id="idlclasspath"> <path id="idlclasspath">
<pathelement location="${solar.jar}/unoil.jar"/> <pathelement location="${solar.jar}/unoil.jar"/>
<!-- <pathelement location="${prj}/../unoil/${inpath}/class/unoil.jar"/> --> <!-- <pathelement location="${prj}/../unoil/${inpath}/class/unoil.jar"/> -->
<pathelement location="${solar.jar}/jurt.jar"/> <pathelement location="${solar.jar}/jurt.jar"/>
<pathelement location="${solar.jar}/jut.jar"/> <pathelement location="${solar.jar}/jut.jar"/>
<pathelement location="${solar.jar}/juh.jar"/> <pathelement location="${solar.jar}/juh.jar"/>
<pathelement location="${solar.jar}/java_uno.jar"/> <pathelement location="${solar.jar}/java_uno.jar"/>
<pathelement location="${solar.jar}/ridl.jar"/> <pathelement location="${solar.jar}/ridl.jar"/>
<pathelement location="${solar.jar}/sandbox.jar"/> <pathelement location="${solar.jar}/sandbox.jar"/>
</path> </path>
<path id="scriptexampleclasspath"> <path id="scriptexampleclasspath">
<pathelement location="${solar.jar}/unoil.jar"/> <pathelement location="${solar.jar}/unoil.jar"/>
<!-- pathelement location="${prj}/../unoil/${inpath}/class/unoil.jar"/ --> <!-- pathelement location="${prj}/../unoil/${inpath}/class/unoil.jar"/ -->
<pathelement location="${solar.jar}/jurt.jar"/> <pathelement location="${solar.jar}/jurt.jar"/>
<pathelement location="${solar.jar}/jut.jar"/> <pathelement location="${solar.jar}/jut.jar"/>
<pathelement location="${solar.jar}/juh.jar"/> <pathelement location="${solar.jar}/juh.jar"/>
<pathelement location="${solar.jar}/java_uno.jar"/> <pathelement location="${solar.jar}/java_uno.jar"/>
<pathelement location="${solar.jar}/ridl.jar"/> <pathelement location="${solar.jar}/ridl.jar"/>
<pathelement location="${solar.jar}/sandbox.jar"/> <pathelement location="${solar.jar}/sandbox.jar"/>
<pathelement location="${out}/class/ScriptRuntimeForJava.jar"/> <pathelement location="${out}/class/ScriptRuntimeForJava.jar"/>
</path> </path>
<path id="debuggerclasspath"> <path id="debuggerclasspath">
<pathelement location="${out}/class/ScriptRuntimeForJava.jar"/> <pathelement location="${out}/class/ScriptRuntimeForJava.jar"/>
<pathelement location="${solar.jar}/ridl.jar"/> <pathelement location="${solar.jar}/ridl.jar"/>
<pathelement location="${solar.jar}/unoil.jar"/> <pathelement location="${solar.jar}/unoil.jar"/>
<pathelement location="${out}/class/jsruntime/skip_registration/js.jar"/> <pathelement location="${out}/class/jsruntime/skip_registration/js.jar"/>
<pathelement location="${install.dir}/bsh-1.2b7.jar"/> <pathelement location="${install.dir}/bsh-1.2b7.jar"/>
</path> </path>
<!-- ===================== Set up build conditionals ========================= --> <!-- ===================== Set up build conditionals ========================= -->
<target name="product.test"> <target name="product.test">
<condition property="noproext"> <condition property="noproext">
<equals arg1="$${env.PROEXT}" arg2="${env.PROEXT}"/> <equals arg1="$${env.PROEXT}" arg2="${env.PROEXT}"/>
</condition> </condition>
</target> </target>
<target name="nonproduct.set" if="noproext"> <target name="nonproduct.set" if="noproext">
<echo message="non-product build"/> <echo message="non-product build"/>
<property name="proext" value=""/> <property name="proext" value=""/>
</target> </target>
<target name="product.set" unless="noproext"> <target name="product.set" unless="noproext">
<echo message="product build"/> <echo message="product build"/>
<property name="proext" value="${env.PROEXT}"/> <property name="proext" value="${env.PROEXT}"/>
</target> </target>
<target name="build.conditions" depends="product.test,nonproduct.set,product.set"> <target name="build.conditions" depends="product.test,nonproduct.set,product.set">
<condition property="win9.build"> <condition property="win9.build">
<available file="${prj}/wntmsci9${proext}"/> <available file="${prj}/wntmsci9${proext}"/>
</condition> </condition>
<condition property="win8.build"> <condition property="win8.build">
<available file="${prj}/wntmsci8${proext}"/> <available file="${prj}/wntmsci8${proext}"/>
</condition> </condition>
<condition property="win7.build"> <condition property="win7.build">
<available file="${prj}/wntmsci7${proext}"/> <available file="${prj}/wntmsci7${proext}"/>
</condition> </condition>
<condition property="linx86.build"> <condition property="linx86.build">
<available file="${prj}/unxlngi5${proext}"/> <available file="${prj}/unxlngi5${proext}"/>
</condition> </condition>
<condition property="solsparc.build"> <condition property="solsparc.build">
<available file="${prj}/unxsols4${proext}"/> <available file="${prj}/unxsols4${proext}"/>
</condition> </condition>
<!-- <condition property="openoffice.build"> <!-- <condition property="openoffice.build">
</condition> --> </condition> -->
</target> </target>
<!-- ===================== Build the examples ========================= --> <!-- ===================== Build the examples ========================= -->
<target name="buildexamples"> <target name="buildexamples">
<mkdir dir="${out}/class/examples/java/debugger"/> <mkdir dir="${out}/class/examples/java/debugger"/>
<javac srcdir="${prj}/examples/java/debugger" <javac srcdir="${prj}/examples/java/debugger"
destdir="${out}/class/examples/java/debugger" destdir="${out}/class/examples/java/debugger"
includes="*.java" includes="*.java"
classpathref="debuggerclasspath" classpathref="debuggerclasspath"
debug="${debug}" optimize="${optimize}" deprecation="on"/> debug="${debug}" optimize="${optimize}" deprecation="on"/>
<copy todir="${out}/class/examples/java/debugger"> <copy todir="${out}/class/examples/java/debugger">
<fileset dir="${prj}/examples/java/debugger"> <fileset dir="${prj}/examples/java/debugger">
<include name="**/*.java"/> <include name="**/*.java"/>
<include name="*.xml"/> <include name="*.xml"/>
</fileset> </fileset>
</copy> </copy>
<jar jarfile="${out}/class/examples/java/debugger/debugger.jar" <jar jarfile="${out}/class/examples/java/debugger/debugger.jar"
basedir="${out}/class/examples/java/debugger" includes="*.class"> basedir="${out}/class/examples/java/debugger" includes="*.class">
<manifest> <manifest>
<attribute name="Built-By" value="Sun Microsystems"/> <attribute name="Built-By" value="Sun Microsystems"/>
<attribute name="ScriptFramework-Version" value="${sfversion}"/> <attribute name="ScriptFramework-Version" value="${sfversion}"/>
</manifest> </manifest>
</jar> </jar>
<delete> <delete>
<fileset dir="${out}/class/examples/java/debugger" includes="*.class"/> <fileset dir="${out}/class/examples/java/debugger" includes="*.class"/>
</delete> </delete>
<mkdir dir="${out}/class/examples/java/Highlight"/> <mkdir dir="${out}/class/examples/java/Highlight"/>
<javac srcdir="${prj}/examples/java/" destdir="${out}/class/examples/java/Highlight/" <javac srcdir="${prj}/examples/java/" destdir="${out}/class/examples/java/Highlight/"
includes="**/Highlight*.java" classpathref="idlclasspath" includes="**/Highlight*.java" classpathref="idlclasspath"
debug="${debug}" optimize="${optimize}" deprecation="on"/> debug="${debug}" optimize="${optimize}" deprecation="on"/>
<copy todir="${out}/class/examples/java/Highlight/"> <copy todir="${out}/class/examples/java/Highlight/">
<fileset dir="${prj}/examples/java/"> <fileset dir="${prj}/examples/java/">
<include name="**/Highlight*.java"/> <include name="**/Highlight*.java"/>
</fileset> </fileset>
</copy> </copy>
<copy file="${prj}/examples/java/HighlightTextParcel.xml" tofile="${out}/class/examples/java/Highlight/parcel-descriptor.xml"/> <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" <jar jarfile="${out}/class/examples/java/Highlight/Highlight.jar"
basedir="${out}/class/examples/java/Highlight" basedir="${out}/class/examples/java/Highlight"
includes="**/*.java,**/*.class,**/*.xml" includes="**/*.java,**/*.class,**/*.xml"
excludes="${out}/class/examples/java/Highlight/Highlight.jar"> excludes="${out}/class/examples/java/Highlight/Highlight.jar">
<manifest> <manifest>
<attribute name="Built-By" value="Sun Microsystems"/> <attribute name="Built-By" value="Sun Microsystems"/>
<attribute name="ScriptFramework-Version" value="${sfversion}"/> <attribute name="ScriptFramework-Version" value="${sfversion}"/>
</manifest> </manifest>
</jar> </jar>
<mkdir dir="${out}/class/examples/java/MemoryUsage"/> <mkdir dir="${out}/class/examples/java/MemoryUsage"/>
<javac srcdir="${prj}/examples/java/" destdir="${out}/class/examples/java/MemoryUsage/" <javac srcdir="${prj}/examples/java/" destdir="${out}/class/examples/java/MemoryUsage/"
includes="**/MemoryUsage.java" classpathref="idlclasspath" includes="**/MemoryUsage.java" classpathref="idlclasspath"
debug="${debug}" optimize="${optimize}" deprecation="on"/> debug="${debug}" optimize="${optimize}" deprecation="on"/>
<copy file="${prj}/examples/java/MemoryUsage.java" todir="${out}/class/examples/java/MemoryUsage/"/> <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/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/MemoryUsage.java" todir="${out}/class/examples/java/MemoryUsage/"/>
<copy file="${prj}/examples/java/ExampleSpreadSheet.sxc" 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"/> <mkdir dir="${out}/class/examples/java/ScriptFrmwrkHelper"/>
<javac srcdir="${prj}/examples/java/" destdir="${out}/class/examples/java/ScriptFrmwrkHelper/" <javac srcdir="${prj}/examples/java/" destdir="${out}/class/examples/java/ScriptFrmwrkHelper/"
includes="**/ScriptFrmwrkHelper.java" classpathref="scriptexampleclasspath" includes="**/ScriptFrmwrkHelper.java" classpathref="scriptexampleclasspath"
debug="${debug}" optimize="${optimize}" deprecation="on"/> debug="${debug}" optimize="${optimize}" deprecation="on"/>
<copy todir="${out}/class/examples/java/ScriptFrmwrkHelper/"> <copy todir="${out}/class/examples/java/ScriptFrmwrkHelper/">
<fileset dir="${prj}/examples/java/"> <fileset dir="${prj}/examples/java/">
<include name="**/ScriptFrmwrkHelper.java"/> <include name="**/ScriptFrmwrkHelper.java"/>
</fileset> </fileset>
</copy> </copy>
<copy file="${prj}/examples/java/ScriptFrameWkHelperParcel.xml" tofile="${out}/class/examples/java/ScriptFrmwrkHelper/parcel-descriptor.xml"/> <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" <jar jarfile="${out}/class/examples/java/ScriptFrmwrkHelper/ScriptFrmwrkHelper.jar"
basedir="${out}/class/examples/java/ScriptFrmwrkHelper" basedir="${out}/class/examples/java/ScriptFrmwrkHelper"
includes="**/*.java,**/*.class,**/*.xml" includes="**/*.java,**/*.class,**/*.xml"
excludes="${out}/class/examples/java/ScriptFrmwrkHelper/ScriptFrmwrkHelper.jar"> excludes="${out}/class/examples/java/ScriptFrmwrkHelper/ScriptFrmwrkHelper.jar">
<manifest> <manifest>
<attribute name="Built-By" value="Sun Microsystems"/> <attribute name="Built-By" value="Sun Microsystems"/>
<attribute name="ScriptFramework-Version" value="${sfversion}"/> <attribute name="ScriptFramework-Version" value="${sfversion}"/>
</manifest> </manifest>
</jar> </jar>
<mkdir dir="${out}/class/examples/beanshell"/> <mkdir dir="${out}/class/examples/beanshell"/>
<copy todir="${out}/class/examples/beanshell"> <copy todir="${out}/class/examples/beanshell">
<fileset dir="${prj}/examples/beanshell" includes="**"/> <fileset dir="${prj}/examples/beanshell" includes="**"/>
</copy> </copy>
</target> </target>
<!-- ===================== Build UNO package ========================= --> <!-- ===================== Build UNO package ========================= -->
<target name="buildunopackage_win9" depends="build.conditions" if="win9.build"> <target name="buildunopackage_win9" depends="build.conditions" if="win9.build">
<mkdir dir="${out}/class/sframeworkinstall/sframework"/> <mkdir dir="${out}/class/sframeworkinstall/sframework"/>
<mkdir dir="${out}/class/sframework"/> <mkdir dir="${out}/class/sframework"/>
<copy file="${solar.bin}/ScriptFramework.rdb" <copy file="${solar.bin}/ScriptFramework.rdb"
todir="${out}/class/sframework/"/> todir="${out}/class/sframework/"/>
<copy file="${out}/class/ScriptRuntimeForJava.jar" <copy file="${out}/class/ScriptRuntimeForJava.jar"
todir="${out}/class/sframework/"/> todir="${out}/class/sframework/"/>
<copy file="${out}/class/ScriptFramework.jar" <copy file="${out}/class/ScriptFramework.jar"
todir="${out}/class/sframework/"/> todir="${out}/class/sframework/"/>
<mkdir dir="${out}/class/sframework/windows.plt"/> <mkdir dir="${out}/class/sframework/windows.plt"/>
<copy todir="${out}/class/sframework/windows.plt"> <copy todir="${out}/class/sframework/windows.plt">
<fileset dir="${prj}/wntmsci9${proext}/bin/"> <fileset dir="${prj}/wntmsci9${proext}/bin/">
<include name="**/*.dll"/> <include name="**/*.dll"/>
</fileset> </fileset>
</copy> </copy>
<mkdir dir="${out}/class/sframework/skip_registration"/> <mkdir dir="${out}/class/sframework/skip_registration"/>
<copy file="${solar.jar}/unoil.jar" <copy file="${solar.jar}/unoil.jar"
todir="${out}/class/sframework/skip_registration"/> todir="${out}/class/sframework/skip_registration"/>
</target> </target>
<target name="buildunopackage_win8" depends="build.conditions" if="win8.build"> <target name="buildunopackage_win8" depends="build.conditions" if="win8.build">
<mkdir dir="${out}/class/sframeworkinstall/sframework"/> <mkdir dir="${out}/class/sframeworkinstall/sframework"/>
<mkdir dir="${out}/class/sframework"/> <mkdir dir="${out}/class/sframework"/>
<copy file="${solar.bin}/ScriptFramework.rdb" <copy file="${solar.bin}/ScriptFramework.rdb"
todir="${out}/class/sframework/"/> todir="${out}/class/sframework/"/>
<copy file="${out}/class/ScriptRuntimeForJava.jar" <copy file="${out}/class/ScriptRuntimeForJava.jar"
todir="${out}/class/sframework/"/> todir="${out}/class/sframework/"/>
<copy file="${out}/class/ScriptFramework.jar" <copy file="${out}/class/ScriptFramework.jar"
todir="${out}/class/sframework/"/> todir="${out}/class/sframework/"/>
<mkdir dir="${out}/class/sframework/windows.plt"/> <mkdir dir="${out}/class/sframework/windows.plt"/>
<copy todir="${out}/class/sframework/windows.plt"> <copy todir="${out}/class/sframework/windows.plt">
<fileset dir="${prj}/wntmsci8${proext}/bin/"> <fileset dir="${prj}/wntmsci8${proext}/bin/">
<include name="**/*.dll"/> <include name="**/*.dll"/>
</fileset> </fileset>
</copy> </copy>
<mkdir dir="${out}/class/sframework/skip_registration"/> <mkdir dir="${out}/class/sframework/skip_registration"/>
<copy file="${solar.jar}/unoil.jar" <copy file="${solar.jar}/unoil.jar"
todir="${out}/class/sframework/skip_registration"/> todir="${out}/class/sframework/skip_registration"/>
</target> </target>
<!-- <target name="buildunopackage_win7" depends="build.conditions" if="win7.build"> <!-- <target name="buildunopackage_win7" depends="build.conditions" if="win7.build">
<mkdir dir="${out}/class/sframeworkinstall/sframework"/> <mkdir dir="${out}/class/sframeworkinstall/sframework"/>
<mkdir dir="${out}/class/sframework"/> <mkdir dir="${out}/class/sframework"/>
<copy file="${solar.bin}/ScriptFramework.rdb" <copy file="${solar.bin}/ScriptFramework.rdb"
todir="${out}/class/sframework/"/> todir="${out}/class/sframework/"/>
<copy file="${out}/class/ScriptRuntimeForJava.jar" <copy file="${out}/class/ScriptRuntimeForJava.jar"
todir="${out}/class/sframework/"/> todir="${out}/class/sframework/"/>
<copy file="${out}/class/ScriptFramework.jar" <copy file="${out}/class/ScriptFramework.jar"
todir="${out}/class/sframework/"/> todir="${out}/class/sframework/"/>
<mkdir dir="${out}/class/sframework/windows.plt"/> <mkdir dir="${out}/class/sframework/windows.plt"/>
<copy todir="${out}/class/sframework/windows.plt"> <copy todir="${out}/class/sframework/windows.plt">
<fileset dir="${prj}/wntmsci7${proext}/bin/"> <fileset dir="${prj}/wntmsci7${proext}/bin/">
<include name="**/*.dll"/> <include name="**/*.dll"/>
</fileset> </fileset>
</copy> </copy>
<mkdir dir="${out}/class/sframework/skip_registration"/> <mkdir dir="${out}/class/sframework/skip_registration"/>
<copy file="${solar.jar}/unoil.jar" <copy file="${solar.jar}/unoil.jar"
todir="${out}/class/sframework/skip_registration"/> todir="${out}/class/sframework/skip_registration"/>
</target> --> </target> -->
<target name="buildunopackage_linux" depends="build.conditions" if="linx86.build"> <target name="buildunopackage_linux" depends="build.conditions" if="linx86.build">
<mkdir dir="${out}/class/sframeworkinstall/sframework"/> <mkdir dir="${out}/class/sframeworkinstall/sframework"/>
<mkdir dir="${out}/class/sframework"/> <mkdir dir="${out}/class/sframework"/>
<copy file="${solar.bin}/ScriptFramework.rdb" <copy file="${solar.bin}/ScriptFramework.rdb"
todir="${out}/class/sframework/"/> todir="${out}/class/sframework/"/>
<copy file="${out}/class/ScriptRuntimeForJava.jar" <copy file="${out}/class/ScriptRuntimeForJava.jar"
todir="${out}/class/sframework/"/> todir="${out}/class/sframework/"/>
<copy file="${out}/class/ScriptFramework.jar" <copy file="${out}/class/ScriptFramework.jar"
todir="${out}/class/sframework/"/> todir="${out}/class/sframework/"/>
<mkdir dir="${out}/class/sframework/linux_x86.plt"/> <mkdir dir="${out}/class/sframework/linux_x86.plt"/>
<copy todir="${out}/class/sframework/linux_x86.plt"> <copy todir="${out}/class/sframework/linux_x86.plt">
<fileset dir="${prj}/unxlngi5${proext}/lib/"> <fileset dir="${prj}/unxlngi5${proext}/lib/">
<include name="**/lib*.so"/> <include name="**/lib*.so"/>
</fileset> </fileset>
</copy> </copy>
<mkdir dir="${out}/class/sframework/skip_registration"/> <mkdir dir="${out}/class/sframework/skip_registration"/>
<copy file="${solar.jar}/unoil.jar" <copy file="${solar.jar}/unoil.jar"
todir="${out}/class/sframework/skip_registration"/> todir="${out}/class/sframework/skip_registration"/>
</target> </target>
<target name="buildunopackage_solaris" depends="build.conditions" if="solsparc.build"> <target name="buildunopackage_solaris" depends="build.conditions" if="solsparc.build">
<mkdir dir="${out}/class/sframeworkinstall/sframework"/> <mkdir dir="${out}/class/sframeworkinstall/sframework"/>
<mkdir dir="${out}/class/sframework"/> <mkdir dir="${out}/class/sframework"/>
<copy file="${solar.bin}/ScriptFramework.rdb" <copy file="${solar.bin}/ScriptFramework.rdb"
todir="${out}/class/sframework/"/> todir="${out}/class/sframework/"/>
<copy file="${out}/class/ScriptRuntimeForJava.jar" <copy file="${out}/class/ScriptRuntimeForJava.jar"
todir="${out}/class/sframework/"/> todir="${out}/class/sframework/"/>
<copy file="${out}/class/ScriptFramework.jar" <copy file="${out}/class/ScriptFramework.jar"
todir="${out}/class/sframework/"/> todir="${out}/class/sframework/"/>
<mkdir dir="${out}/class/sframework/solaris_sparc.plt"/> <mkdir dir="${out}/class/sframework/solaris_sparc.plt"/>
<copy todir="${out}/class/sframework/solaris_sparc.plt"> <copy todir="${out}/class/sframework/solaris_sparc.plt">
<fileset dir="${prj}/unxsols4${proext}/lib/"> <fileset dir="${prj}/unxsols4${proext}/lib/">
<include name="**/lib*.so"/> <include name="**/lib*.so"/>
</fileset> </fileset>
</copy> </copy>
<mkdir dir="${out}/class/sframework/skip_registration"/> <mkdir dir="${out}/class/sframework/skip_registration"/>
<copy file="${solar.jar}/unoil.jar" <copy file="${solar.jar}/unoil.jar"
todir="${out}/class/sframework/skip_registration"/> todir="${out}/class/sframework/skip_registration"/>
</target> </target>
<target name="buildunopackage" depends="buildunopackage_win8,buildunopackage_linux,buildunopackage_solaris"> <target name="buildunopackage" depends="buildunopackage_win8,buildunopackage_linux,buildunopackage_solaris">
<!-- <target name="buildunopackage" depends="buildunopackage_win9,buildunopackage_win7,buildunopackage_linux,buildunopackage_solaris"> --> <!-- <target name="buildunopackage" depends="buildunopackage_win9,buildunopackage_win7,buildunopackage_linux,buildunopackage_solaris"> -->
<copy file="installer/ProtocolHandler.xcu" <copy file="installer/ProtocolHandler.xcu"
todir="${out}/class/sframework/"/> todir="${out}/class/sframework/"/>
<zip zipfile="${out}/class/sframeworkinstall/sframework/ooscriptframe.zip" <zip zipfile="${out}/class/sframeworkinstall/sframework/ooscriptframe.zip"
basedir="${out}/class/sframework"> basedir="${out}/class/sframework">
</zip> </zip>
</target> </target>
<!-- ================== Build JavaScript UNO package ===================== --> <!-- ================== Build JavaScript UNO package ===================== -->
<target name="buildjsuno"> <target name="buildjsuno">
<mkdir dir="${out}/class/sframeworkinstall/sframework"/> <mkdir dir="${out}/class/sframeworkinstall/sframework"/>
<mkdir dir="${out}/class/jsruntime"/> <mkdir dir="${out}/class/jsruntime"/>
<mkdir dir="${out}/class/jsruntime/skip_registration"/> <mkdir dir="${out}/class/jsruntime/skip_registration"/>
<mkdir dir="${out}/class/jsruntimetmp"/> <mkdir dir="${out}/class/jsruntimetmp"/>
<copy file="${out}/class/ScriptRuntimeForRhino.jar" <copy file="${out}/class/ScriptRuntimeForJavaScript.jar"
todir="${out}/class/jsruntime/"/> todir="${out}/class/jsruntime/"/>
<copy file="installer/Scripting.Rhino.xcu" <copy file="installer/Scripting.JavaScript.xcu"
tofile="${out}/class/jsruntime/Scripting.xcu"/> tofile="${out}/class/jsruntime/Scripting.xcu"/>
<unzip src="${install.dir}/js.jar" <unzip src="${install.dir}/js.jar"
dest="${out}/class/jsruntimetmp"/> dest="${out}/class/jsruntimetmp"/>
<javac srcdir="${prj}/examples/java/debugger" <javac srcdir="${prj}/examples/java/debugger"
destdir="${out}/class/jsruntimetmp" destdir="${out}/class/jsruntimetmp"
includes="rhino/Main.java" classpathref="debuggerclasspath" includes="rhino/Main.java" classpathref="debuggerclasspath"
debug="${debug}" optimize="${optimize}" deprecation="on"/> debug="${debug}" optimize="${optimize}" deprecation="on"/>
<zip destfile="${out}/class/jsruntime/skip_registration/js.jar" <zip destfile="${out}/class/jsruntime/skip_registration/js.jar"
basedir="${out}/class/jsruntimetmp" includes="**"/> basedir="${out}/class/jsruntimetmp" includes="**"/>
<zip zipfile="${out}/class/sframeworkinstall/sframework/jsruntime.zip" <zip zipfile="${out}/class/sframeworkinstall/sframework/jsruntime.zip"
basedir="${out}/class/jsruntime"> basedir="${out}/class/jsruntime">
</zip> </zip>
</target> </target>
<!-- =================== Build BeanShell UNO package ===================== --> <!-- =================== Build BeanShell UNO package ===================== -->
<target name="buildbshuno"> <target name="buildbshuno">
<mkdir dir="${out}/class/bshruntime"/> <mkdir dir="${out}/class/bshruntime"/>
<copy file="${out}/class/ScriptRuntimeForBeanShell.jar" <copy file="${out}/class/ScriptRuntimeForBeanShell.jar"
todir="${out}/class/bshruntime/"/> todir="${out}/class/bshruntime/"/>
<copy file="installer/Scripting.BeanShell.xcu" <copy file="installer/Scripting.BeanShell.xcu"
tofile="${out}/class/bshruntime/Scripting.xcu"/> tofile="${out}/class/bshruntime/Scripting.xcu"/>
<mkdir dir="${out}/class/bshruntime/skip_registration"/> <mkdir dir="${out}/class/bshruntime/skip_registration"/>
<copy file="${install.dir}/bsh-1.2b7.jar" <copy file="${install.dir}/bsh-1.2b7.jar"
todir="${out}/class/bshruntime/skip_registration"/> todir="${out}/class/bshruntime/skip_registration"/>
<zip zipfile="${out}/class/sframeworkinstall/sframework/bshruntime.zip" <zip zipfile="${out}/class/sframeworkinstall/sframework/bshruntime.zip"
basedir="${out}/class/bshruntime"> basedir="${out}/class/bshruntime">
</zip> </zip>
</target> </target>
<!-- ========= Package schema, scripts, dialogs & examples =========== --> <!-- ========= Package schema, scripts, dialogs & examples =========== -->
<target name="packagedialogsandexamples" depends="buildexamples"> <target name="packagedialogsandexamples" depends="buildexamples">
<mkdir dir="${out}/class/sframeworkinstall/schema"/> <mkdir dir="${out}/class/sframeworkinstall/schema"/>
<copy file="installer/Scripting.xcs" <copy file="installer/Scripting.xcs"
todir="${out}/class/sframeworkinstall/schema/"/> todir="${out}/class/sframeworkinstall/schema/"/>
<mkdir dir="${out}/class/sframeworkinstall/bindingdialog"/> <mkdir dir="${out}/class/sframeworkinstall/bindingdialog"/>
<copy todir="${out}/class/sframeworkinstall/bindingdialog"> <copy todir="${out}/class/sframeworkinstall/bindingdialog">
<fileset dir="bindings/"> <fileset dir="bindings/">
<include name="**/*.x*"/> <include name="**/*.x*"/>
</fileset> </fileset>
</copy> </copy>
<mkdir dir="${out}/class/sframeworkinstall/examples"/> <mkdir dir="${out}/class/sframeworkinstall/examples"/>
<copy todir="${out}/class/sframeworkinstall/examples"> <copy todir="${out}/class/sframeworkinstall/examples">
<fileset dir="${out}/class/examples/"/> <fileset dir="${out}/class/examples/"/>
</copy> </copy>
</target> </target>
<!-- ===================== Package IDEs ================================== --> <!-- ===================== Package IDEs ================================== -->
<target name="packageide"> <target name="packageide">
<mkdir dir="${out}/class/sframeworkinstall/ide"/> <mkdir dir="${out}/class/sframeworkinstall/ide"/>
<copy todir="${out}/class/sframeworkinstall/ide"> <copy todir="${out}/class/sframeworkinstall/ide">
<fileset dir="${out}/class/"> <fileset dir="${out}/class/">
<include name="idesupport.jar"/> <include name="idesupport.jar"/>
<include name="office.jar"/> <include name="office.jar"/>
</fileset> </fileset>
</copy> </copy>
</target> </target>
<!-- ======================== Compile Classes ========================== --> <!-- ======================== Compile Classes ========================== -->
<target name="compileinstaller"> <target name="compileinstaller">
<mkdir dir="${installerclasses}"/> <mkdir dir="${installerclasses}"/>
<javac srcdir="installer/" destdir="${installerclasses}" <javac srcdir="installer/" destdir="${installerclasses}"
includes="**/*.java" classpathref="idlclasspath" includes="**/*.java" classpathref="idlclasspath"
debug="${debug}" optimize="${optimize}" deprecation="on"/> debug="${debug}" optimize="${optimize}" deprecation="on"/>
<copy file="installer/sidebar.jpg" todir="${out}/class/sframeworkinstall/installer"/> <copy file="installer/sidebar.jpg" todir="${out}/class/sframeworkinstall/installer"/>
</target> </target>
<!-- ===================== jar ========================= --> <!-- ===================== jar ========================= -->
<target name="jar" depends="buildunopackage,buildbshuno,buildjsuno,compileinstaller,packagedialogsandexamples,packageide"> <target name="jar" depends="buildunopackage,buildbshuno,buildjsuno,compileinstaller,packagedialogsandexamples,packageide">
<jar jarfile="${jardir}/${installerjarname}" <jar jarfile="${jardir}/${installerjarname}"
basedir="${installerclasses}"> basedir="${installerclasses}">
<manifest> <manifest>
<attribute name="Built-By" value="Sun Microsystems"/> <attribute name="Built-By" value="Sun Microsystems"/>
<attribute name="ScriptFramework-Version" value="${sfversion}"/> <attribute name="ScriptFramework-Version" value="${sfversion}"/>
<attribute name="Main-Class" value="installer.InstallWizard"/> <attribute name="Main-Class" value="installer.InstallWizard"/>
</manifest> </manifest>
</jar> </jar>
</target> </target>
<!-- ====================== Clean Generated Files ===================== --> <!-- ====================== Clean Generated Files ===================== -->
<target name="clean"> <target name="clean">
<delete dir="${scriptingclasses}"/> <delete dir="${scriptingclasses}"/>
<delete dir="${storageclasses}"/> <delete dir="${storageclasses}"/>
<delete dir="${jardir}/${scriptingjarname}"/> <delete dir="${jardir}/${scriptingjarname}"/>
</target> </target>
<!-- ========================= All In One Build ======================= --> <!-- ========================= All In One Build ======================= -->
<target name="all" depends="clean,jar"/> <target name="all" depends="clean,jar"/>
</project> </project>
<?xml version="1.0" encoding="UTF-8"?>
<oor:node xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="Scripting" oor:package="org.openoffice.Office">
<node oor:name="ScriptRuntimes">
<node oor:name="JavaScript" oor:op="replace">
<prop oor:name="SupportedFileExtensions">
<value xml:lang="en-US">js</value>
</prop>
</node>
</node>
</oor:node>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment