1*b1cdbd2cSJim Jagielski<!--*********************************************************** 2*b1cdbd2cSJim Jagielski * 3*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one 4*b1cdbd2cSJim Jagielski * or more contributor license agreements. See the NOTICE file 5*b1cdbd2cSJim Jagielski * distributed with this work for additional information 6*b1cdbd2cSJim Jagielski * regarding copyright ownership. The ASF licenses this file 7*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the 8*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance 9*b1cdbd2cSJim Jagielski * with the License. You may obtain a copy of the License at 10*b1cdbd2cSJim Jagielski * 11*b1cdbd2cSJim Jagielski * http://www.apache.org/licenses/LICENSE-2.0 12*b1cdbd2cSJim Jagielski * 13*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing, 14*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an 15*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*b1cdbd2cSJim Jagielski * KIND, either express or implied. See the License for the 17*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations 18*b1cdbd2cSJim Jagielski * under the License. 19*b1cdbd2cSJim Jagielski * 20*b1cdbd2cSJim Jagielski ***********************************************************--> 21*b1cdbd2cSJim Jagielski 22*b1cdbd2cSJim Jagielski 23*b1cdbd2cSJim Jagielski<project name="Scipting Framework Installer" default="jar" basedir="."> 24*b1cdbd2cSJim Jagielski 25*b1cdbd2cSJim Jagielski <!-- =================== Environmental Properties ======================= --> 26*b1cdbd2cSJim Jagielski 27*b1cdbd2cSJim Jagielski <property name="prj" value=".."/> 28*b1cdbd2cSJim Jagielski <property file="${prj}/java/build.env"/> 29*b1cdbd2cSJim Jagielski <property name="build.compiler" value="modern"/> 30*b1cdbd2cSJim Jagielski <property name="optimize" value="on"/> 31*b1cdbd2cSJim Jagielski <property name="debug" value="on"/> 32*b1cdbd2cSJim Jagielski <property name="installerclasses" value="${out}/class/sframeworkinstall"/> 33*b1cdbd2cSJim Jagielski <property name="jardir" value="${out}/class"/> 34*b1cdbd2cSJim Jagielski <property name="bindir" value="${out}/bin"/> 35*b1cdbd2cSJim Jagielski <property name="sfversion" value="0.3"/> 36*b1cdbd2cSJim Jagielski <property name="installerjarname" value="SFrameworkInstall.jar"/> 37*b1cdbd2cSJim Jagielski <property environment="env"/> 38*b1cdbd2cSJim Jagielski 39*b1cdbd2cSJim Jagielski <!-- ==================== classpath setting ============================ --> 40*b1cdbd2cSJim Jagielski <path id="idlclasspath"> 41*b1cdbd2cSJim Jagielski <pathelement location="${solar.jar}/unoil.jar"/> 42*b1cdbd2cSJim Jagielski <!-- <pathelement location="${prj}/../unoil/${inpath}/class/unoil.jar"/> --> 43*b1cdbd2cSJim Jagielski <pathelement location="${solar.jar}/jurt.jar"/> 44*b1cdbd2cSJim Jagielski <pathelement location="${solar.jar}/juh.jar"/> 45*b1cdbd2cSJim Jagielski <pathelement location="${solar.jar}/java_uno.jar"/> 46*b1cdbd2cSJim Jagielski <pathelement location="${solar.jar}/ridl.jar"/> 47*b1cdbd2cSJim Jagielski </path> 48*b1cdbd2cSJim Jagielski <path id="scriptexampleclasspath"> 49*b1cdbd2cSJim Jagielski <pathelement location="${solar.jar}/unoil.jar"/> 50*b1cdbd2cSJim Jagielski <!-- pathelement location="${prj}/../unoil/${inpath}/class/unoil.jar"/ --> 51*b1cdbd2cSJim Jagielski <pathelement location="${solar.jar}/jurt.jar"/> 52*b1cdbd2cSJim Jagielski <pathelement location="${solar.jar}/juh.jar"/> 53*b1cdbd2cSJim Jagielski <pathelement location="${solar.jar}/java_uno.jar"/> 54*b1cdbd2cSJim Jagielski <pathelement location="${solar.jar}/ridl.jar"/> 55*b1cdbd2cSJim Jagielski <pathelement location="${out}/class/ScriptRuntimeForJava.jar"/> 56*b1cdbd2cSJim Jagielski </path> 57*b1cdbd2cSJim Jagielski 58*b1cdbd2cSJim Jagielski <path id="debuggerclasspath"> 59*b1cdbd2cSJim Jagielski <pathelement location="${out}/class/ScriptRuntimeForJava.jar"/> 60*b1cdbd2cSJim Jagielski <pathelement location="${solar.jar}/ridl.jar"/> 61*b1cdbd2cSJim Jagielski <pathelement location="${solar.jar}/unoil.jar"/> 62*b1cdbd2cSJim Jagielski <pathelement location="${out}/class/jsruntime/skip_registration/js.jar"/> 63*b1cdbd2cSJim Jagielski <pathelement location="${install.dir}/bsh-1.2b7.jar"/> 64*b1cdbd2cSJim Jagielski </path> 65*b1cdbd2cSJim Jagielski <!-- ===================== Set up build conditionals ========================= --> 66*b1cdbd2cSJim Jagielski <target name="product.test"> 67*b1cdbd2cSJim Jagielski <condition property="noproext"> 68*b1cdbd2cSJim Jagielski <equals arg1="$${env.PROEXT}" arg2="${env.PROEXT}"/> 69*b1cdbd2cSJim Jagielski </condition> 70*b1cdbd2cSJim Jagielski </target> 71*b1cdbd2cSJim Jagielski <target name="nonproduct.set" if="noproext"> 72*b1cdbd2cSJim Jagielski <echo message="non-product build"/> 73*b1cdbd2cSJim Jagielski <property name="proext" value=""/> 74*b1cdbd2cSJim Jagielski </target> 75*b1cdbd2cSJim Jagielski <target name="product.set" unless="noproext"> 76*b1cdbd2cSJim Jagielski <echo message="product build"/> 77*b1cdbd2cSJim Jagielski <property name="proext" value="${env.PROEXT}"/> 78*b1cdbd2cSJim Jagielski </target> 79*b1cdbd2cSJim Jagielski <target name="build.conditions" depends="product.test,nonproduct.set,product.set"> 80*b1cdbd2cSJim Jagielski <condition property="win9.build"> 81*b1cdbd2cSJim Jagielski <available file="${prj}/wntmsci9${proext}"/> 82*b1cdbd2cSJim Jagielski </condition> 83*b1cdbd2cSJim Jagielski <condition property="win8.build"> 84*b1cdbd2cSJim Jagielski <available file="${prj}/wntmsci8${proext}"/> 85*b1cdbd2cSJim Jagielski </condition> 86*b1cdbd2cSJim Jagielski <condition property="win7.build"> 87*b1cdbd2cSJim Jagielski <available file="${prj}/wntmsci7${proext}"/> 88*b1cdbd2cSJim Jagielski </condition> 89*b1cdbd2cSJim Jagielski <condition property="linx86.build"> 90*b1cdbd2cSJim Jagielski <available file="${prj}/unxlngi5${proext}"/> 91*b1cdbd2cSJim Jagielski </condition> 92*b1cdbd2cSJim Jagielski <condition property="solsparc.build"> 93*b1cdbd2cSJim Jagielski <available file="${prj}/unxsols4${proext}"/> 94*b1cdbd2cSJim Jagielski </condition> 95*b1cdbd2cSJim Jagielski <!-- <condition property="openoffice.build"> 96*b1cdbd2cSJim Jagielski </condition> --> 97*b1cdbd2cSJim Jagielski </target> 98*b1cdbd2cSJim Jagielski <!-- ===================== Build the examples ========================= --> 99*b1cdbd2cSJim Jagielski <target name="buildexamples"> 100*b1cdbd2cSJim Jagielski 101*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/examples/java/debugger"/> 102*b1cdbd2cSJim Jagielski <javac srcdir="${prj}/examples/java/debugger" 103*b1cdbd2cSJim Jagielski destdir="${out}/class/examples/java/debugger" 104*b1cdbd2cSJim Jagielski includes="*.java" 105*b1cdbd2cSJim Jagielski classpathref="debuggerclasspath" 106*b1cdbd2cSJim Jagielski debug="${debug}" optimize="${optimize}" deprecation="on"/> 107*b1cdbd2cSJim Jagielski 108*b1cdbd2cSJim Jagielski <copy todir="${out}/class/examples/java/debugger"> 109*b1cdbd2cSJim Jagielski <fileset dir="${prj}/examples/java/debugger"> 110*b1cdbd2cSJim Jagielski <include name="**/*.java"/> 111*b1cdbd2cSJim Jagielski <include name="*.xml"/> 112*b1cdbd2cSJim Jagielski </fileset> 113*b1cdbd2cSJim Jagielski </copy> 114*b1cdbd2cSJim Jagielski 115*b1cdbd2cSJim Jagielski <jar jarfile="${out}/class/examples/java/debugger/debugger.jar" 116*b1cdbd2cSJim Jagielski basedir="${out}/class/examples/java/debugger" includes="*.class"> 117*b1cdbd2cSJim Jagielski <manifest> 118*b1cdbd2cSJim Jagielski <attribute name="Built-By" value="Sun Microsystems"/> 119*b1cdbd2cSJim Jagielski <attribute name="ScriptFramework-Version" value="${sfversion}"/> 120*b1cdbd2cSJim Jagielski </manifest> 121*b1cdbd2cSJim Jagielski </jar> 122*b1cdbd2cSJim Jagielski 123*b1cdbd2cSJim Jagielski <delete> 124*b1cdbd2cSJim Jagielski <fileset dir="${out}/class/examples/java/debugger" includes="*.class"/> 125*b1cdbd2cSJim Jagielski </delete> 126*b1cdbd2cSJim Jagielski 127*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/examples/java/Highlight"/> 128*b1cdbd2cSJim Jagielski <javac srcdir="${prj}/examples/java/" destdir="${out}/class/examples/java/Highlight/" 129*b1cdbd2cSJim Jagielski includes="**/Highlight*.java" classpathref="idlclasspath" 130*b1cdbd2cSJim Jagielski debug="${debug}" optimize="${optimize}" deprecation="on"/> 131*b1cdbd2cSJim Jagielski <copy todir="${out}/class/examples/java/Highlight/"> 132*b1cdbd2cSJim Jagielski <fileset dir="${prj}/examples/java/"> 133*b1cdbd2cSJim Jagielski <include name="**/Highlight*.java"/> 134*b1cdbd2cSJim Jagielski </fileset> 135*b1cdbd2cSJim Jagielski </copy> 136*b1cdbd2cSJim Jagielski <copy file="${prj}/examples/java/HighlightTextParcel.xml" tofile="${out}/class/examples/java/Highlight/parcel-descriptor.xml"/> 137*b1cdbd2cSJim Jagielski <jar jarfile="${out}/class/examples/java/Highlight/Highlight.jar" 138*b1cdbd2cSJim Jagielski basedir="${out}/class/examples/java/Highlight" 139*b1cdbd2cSJim Jagielski includes="**/*.java,**/*.class,**/*.xml" 140*b1cdbd2cSJim Jagielski excludes="${out}/class/examples/java/Highlight/Highlight.jar"> 141*b1cdbd2cSJim Jagielski <manifest> 142*b1cdbd2cSJim Jagielski <attribute name="Built-By" value="Sun Microsystems"/> 143*b1cdbd2cSJim Jagielski <attribute name="ScriptFramework-Version" value="${sfversion}"/> 144*b1cdbd2cSJim Jagielski </manifest> 145*b1cdbd2cSJim Jagielski </jar> 146*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/examples/java/MemoryUsage"/> 147*b1cdbd2cSJim Jagielski <javac srcdir="${prj}/examples/java/" destdir="${out}/class/examples/java/MemoryUsage/" 148*b1cdbd2cSJim Jagielski includes="**/MemoryUsage.java" classpathref="idlclasspath" 149*b1cdbd2cSJim Jagielski debug="${debug}" optimize="${optimize}" deprecation="on"/> 150*b1cdbd2cSJim Jagielski <copy file="${prj}/examples/java/MemoryUsage.java" todir="${out}/class/examples/java/MemoryUsage/"/> 151*b1cdbd2cSJim Jagielski <copy file="${prj}/examples/java/MemoryUsageParcel.xml" tofile="${out}/class/examples/java/MemoryUsage/parcel-descriptor.xml"/> 152*b1cdbd2cSJim Jagielski <copy file="${prj}/examples/java/MemoryUsage.java" todir="${out}/class/examples/java/MemoryUsage/"/> 153*b1cdbd2cSJim Jagielski <copy file="${prj}/examples/java/ExampleSpreadSheet.sxc" todir="${out}/class/examples/java/MemoryUsage/"/> 154*b1cdbd2cSJim Jagielski 155*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/examples/java/ScriptFrmwrkHelper"/> 156*b1cdbd2cSJim Jagielski <javac srcdir="${prj}/examples/java/" destdir="${out}/class/examples/java/ScriptFrmwrkHelper/" 157*b1cdbd2cSJim Jagielski includes="**/ScriptFrmwrkHelper.java" classpathref="scriptexampleclasspath" 158*b1cdbd2cSJim Jagielski debug="${debug}" optimize="${optimize}" deprecation="on"/> 159*b1cdbd2cSJim Jagielski <copy todir="${out}/class/examples/java/ScriptFrmwrkHelper/"> 160*b1cdbd2cSJim Jagielski <fileset dir="${prj}/examples/java/"> 161*b1cdbd2cSJim Jagielski <include name="**/ScriptFrmwrkHelper.java"/> 162*b1cdbd2cSJim Jagielski </fileset> 163*b1cdbd2cSJim Jagielski </copy> 164*b1cdbd2cSJim Jagielski <copy file="${prj}/examples/java/ScriptFrameWkHelperParcel.xml" tofile="${out}/class/examples/java/ScriptFrmwrkHelper/parcel-descriptor.xml"/> 165*b1cdbd2cSJim Jagielski <jar jarfile="${out}/class/examples/java/ScriptFrmwrkHelper/ScriptFrmwrkHelper.jar" 166*b1cdbd2cSJim Jagielski basedir="${out}/class/examples/java/ScriptFrmwrkHelper" 167*b1cdbd2cSJim Jagielski includes="**/*.java,**/*.class,**/*.xml" 168*b1cdbd2cSJim Jagielski excludes="${out}/class/examples/java/ScriptFrmwrkHelper/ScriptFrmwrkHelper.jar"> 169*b1cdbd2cSJim Jagielski <manifest> 170*b1cdbd2cSJim Jagielski <attribute name="Built-By" value="Sun Microsystems"/> 171*b1cdbd2cSJim Jagielski <attribute name="ScriptFramework-Version" value="${sfversion}"/> 172*b1cdbd2cSJim Jagielski </manifest> 173*b1cdbd2cSJim Jagielski </jar> 174*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/examples/beanshell"/> 175*b1cdbd2cSJim Jagielski <copy todir="${out}/class/examples/beanshell"> 176*b1cdbd2cSJim Jagielski <fileset dir="${prj}/examples/beanshell" includes="**"/> 177*b1cdbd2cSJim Jagielski </copy> 178*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/examples/javascript"/> 179*b1cdbd2cSJim Jagielski <copy todir="${out}/class/examples/javascript"> 180*b1cdbd2cSJim Jagielski <fileset dir="${prj}/examples/javascript" includes="**"/> 181*b1cdbd2cSJim Jagielski </copy> 182*b1cdbd2cSJim Jagielski </target> 183*b1cdbd2cSJim Jagielski 184*b1cdbd2cSJim Jagielski <!-- ===================== Build UNO package ========================= --> 185*b1cdbd2cSJim Jagielski <target name="buildunopackage_win9" depends="build.conditions" if="win9.build"> 186*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/sframeworkinstall/sframework"/> 187*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/sframework"/> 188*b1cdbd2cSJim Jagielski <copy file="${solar.bin}/ScriptFramework.rdb" 189*b1cdbd2cSJim Jagielski todir="${out}/class/sframework/"/> 190*b1cdbd2cSJim Jagielski <copy file="${out}/class/ScriptRuntimeForJava.jar" 191*b1cdbd2cSJim Jagielski todir="${out}/class/sframework/"/> 192*b1cdbd2cSJim Jagielski <copy file="${out}/class/ScriptFramework.jar" 193*b1cdbd2cSJim Jagielski todir="${out}/class/sframework/"/> 194*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/sframework/windows.plt"/> 195*b1cdbd2cSJim Jagielski <copy todir="${out}/class/sframework/windows.plt"> 196*b1cdbd2cSJim Jagielski <fileset dir="${prj}/wntmsci9${proext}/bin/"> 197*b1cdbd2cSJim Jagielski <include name="**/*.dll"/> 198*b1cdbd2cSJim Jagielski </fileset> 199*b1cdbd2cSJim Jagielski </copy> 200*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/sframework/skip_registration"/> 201*b1cdbd2cSJim Jagielski <copy file="${solar.jar}/unoil.jar" 202*b1cdbd2cSJim Jagielski todir="${out}/class/sframework/skip_registration"/> 203*b1cdbd2cSJim Jagielski </target> 204*b1cdbd2cSJim Jagielski <target name="buildunopackage_win8" depends="build.conditions" if="win8.build"> 205*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/sframeworkinstall/sframework"/> 206*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/sframework"/> 207*b1cdbd2cSJim Jagielski <copy file="${solar.bin}/ScriptFramework.rdb" 208*b1cdbd2cSJim Jagielski todir="${out}/class/sframework/"/> 209*b1cdbd2cSJim Jagielski <copy file="${out}/class/ScriptRuntimeForJava.jar" 210*b1cdbd2cSJim Jagielski todir="${out}/class/sframework/"/> 211*b1cdbd2cSJim Jagielski <copy file="${out}/class/ScriptFramework.jar" 212*b1cdbd2cSJim Jagielski todir="${out}/class/sframework/"/> 213*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/sframework/windows.plt"/> 214*b1cdbd2cSJim Jagielski <copy todir="${out}/class/sframework/windows.plt"> 215*b1cdbd2cSJim Jagielski <fileset dir="${prj}/wntmsci8${proext}/bin/"> 216*b1cdbd2cSJim Jagielski <include name="**/*.dll"/> 217*b1cdbd2cSJim Jagielski </fileset> 218*b1cdbd2cSJim Jagielski </copy> 219*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/sframework/skip_registration"/> 220*b1cdbd2cSJim Jagielski <copy file="${solar.jar}/unoil.jar" 221*b1cdbd2cSJim Jagielski todir="${out}/class/sframework/skip_registration"/> 222*b1cdbd2cSJim Jagielski </target> 223*b1cdbd2cSJim Jagielski<!-- <target name="buildunopackage_win7" depends="build.conditions" if="win7.build"> 224*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/sframeworkinstall/sframework"/> 225*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/sframework"/> 226*b1cdbd2cSJim Jagielski <copy file="${solar.bin}/ScriptFramework.rdb" 227*b1cdbd2cSJim Jagielski todir="${out}/class/sframework/"/> 228*b1cdbd2cSJim Jagielski <copy file="${out}/class/ScriptRuntimeForJava.jar" 229*b1cdbd2cSJim Jagielski todir="${out}/class/sframework/"/> 230*b1cdbd2cSJim Jagielski <copy file="${out}/class/ScriptFramework.jar" 231*b1cdbd2cSJim Jagielski todir="${out}/class/sframework/"/> 232*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/sframework/windows.plt"/> 233*b1cdbd2cSJim Jagielski <copy todir="${out}/class/sframework/windows.plt"> 234*b1cdbd2cSJim Jagielski <fileset dir="${prj}/wntmsci7${proext}/bin/"> 235*b1cdbd2cSJim Jagielski <include name="**/*.dll"/> 236*b1cdbd2cSJim Jagielski </fileset> 237*b1cdbd2cSJim Jagielski </copy> 238*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/sframework/skip_registration"/> 239*b1cdbd2cSJim Jagielski <copy file="${solar.jar}/unoil.jar" 240*b1cdbd2cSJim Jagielski todir="${out}/class/sframework/skip_registration"/> 241*b1cdbd2cSJim Jagielski </target> --> 242*b1cdbd2cSJim Jagielski <target name="buildunopackage_linux" depends="build.conditions" if="linx86.build"> 243*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/sframeworkinstall/sframework"/> 244*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/sframework"/> 245*b1cdbd2cSJim Jagielski <copy file="${solar.bin}/ScriptFramework.rdb" 246*b1cdbd2cSJim Jagielski todir="${out}/class/sframework/"/> 247*b1cdbd2cSJim Jagielski <copy file="${out}/class/ScriptRuntimeForJava.jar" 248*b1cdbd2cSJim Jagielski todir="${out}/class/sframework/"/> 249*b1cdbd2cSJim Jagielski <copy file="${out}/class/ScriptFramework.jar" 250*b1cdbd2cSJim Jagielski todir="${out}/class/sframework/"/> 251*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/sframework/linux_x86.plt"/> 252*b1cdbd2cSJim Jagielski <copy todir="${out}/class/sframework/linux_x86.plt"> 253*b1cdbd2cSJim Jagielski <fileset dir="${prj}/unxlngi5${proext}/lib/"> 254*b1cdbd2cSJim Jagielski <include name="**/lib*.so"/> 255*b1cdbd2cSJim Jagielski </fileset> 256*b1cdbd2cSJim Jagielski </copy> 257*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/sframework/skip_registration"/> 258*b1cdbd2cSJim Jagielski <copy file="${solar.jar}/unoil.jar" 259*b1cdbd2cSJim Jagielski todir="${out}/class/sframework/skip_registration"/> 260*b1cdbd2cSJim Jagielski </target> 261*b1cdbd2cSJim Jagielski <target name="buildunopackage_solaris" depends="build.conditions" if="solsparc.build"> 262*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/sframeworkinstall/sframework"/> 263*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/sframework"/> 264*b1cdbd2cSJim Jagielski <copy file="${solar.bin}/ScriptFramework.rdb" 265*b1cdbd2cSJim Jagielski todir="${out}/class/sframework/"/> 266*b1cdbd2cSJim Jagielski <copy file="${out}/class/ScriptRuntimeForJava.jar" 267*b1cdbd2cSJim Jagielski todir="${out}/class/sframework/"/> 268*b1cdbd2cSJim Jagielski <copy file="${out}/class/ScriptFramework.jar" 269*b1cdbd2cSJim Jagielski todir="${out}/class/sframework/"/> 270*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/sframework/solaris_sparc.plt"/> 271*b1cdbd2cSJim Jagielski <copy todir="${out}/class/sframework/solaris_sparc.plt"> 272*b1cdbd2cSJim Jagielski <fileset dir="${prj}/unxsols4${proext}/lib/"> 273*b1cdbd2cSJim Jagielski <include name="**/lib*.so"/> 274*b1cdbd2cSJim Jagielski </fileset> 275*b1cdbd2cSJim Jagielski </copy> 276*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/sframework/skip_registration"/> 277*b1cdbd2cSJim Jagielski <copy file="${solar.jar}/unoil.jar" 278*b1cdbd2cSJim Jagielski todir="${out}/class/sframework/skip_registration"/> 279*b1cdbd2cSJim Jagielski </target> 280*b1cdbd2cSJim Jagielski <target name="buildunopackage" depends="buildunopackage_win8,buildunopackage_linux,buildunopackage_solaris"> 281*b1cdbd2cSJim Jagielski <!-- <target name="buildunopackage" depends="buildunopackage_win9,buildunopackage_win7,buildunopackage_linux,buildunopackage_solaris"> --> 282*b1cdbd2cSJim Jagielski <copy file="installer/ProtocolHandler.xcu" 283*b1cdbd2cSJim Jagielski todir="${out}/class/sframework/"/> 284*b1cdbd2cSJim Jagielski <zip zipfile="${out}/class/sframeworkinstall/sframework/ooscriptframe.zip" 285*b1cdbd2cSJim Jagielski basedir="${out}/class/sframework"> 286*b1cdbd2cSJim Jagielski </zip> 287*b1cdbd2cSJim Jagielski </target> 288*b1cdbd2cSJim Jagielski 289*b1cdbd2cSJim Jagielski <!-- ================== Build JavaScript UNO package ===================== --> 290*b1cdbd2cSJim Jagielski <target name="buildjsuno"> 291*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/sframeworkinstall/sframework"/> 292*b1cdbd2cSJim Jagielski 293*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/jsruntime"/> 294*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/jsruntime/skip_registration"/> 295*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/jsruntimetmp"/> 296*b1cdbd2cSJim Jagielski 297*b1cdbd2cSJim Jagielski <copy file="${out}/class/ScriptRuntimeForJavaScript.jar" 298*b1cdbd2cSJim Jagielski todir="${out}/class/jsruntime/"/> 299*b1cdbd2cSJim Jagielski <copy file="installer/Scripting.JavaScript.xcu" 300*b1cdbd2cSJim Jagielski tofile="${out}/class/jsruntime/Scripting.xcu"/> 301*b1cdbd2cSJim Jagielski 302*b1cdbd2cSJim Jagielski <unzip src="${install.dir}/js.jar" 303*b1cdbd2cSJim Jagielski dest="${out}/class/jsruntimetmp"/> 304*b1cdbd2cSJim Jagielski 305*b1cdbd2cSJim Jagielski <javac srcdir="${prj}/examples/java/debugger" 306*b1cdbd2cSJim Jagielski destdir="${out}/class/jsruntimetmp" 307*b1cdbd2cSJim Jagielski includes="rhino/Main.java" classpathref="debuggerclasspath" 308*b1cdbd2cSJim Jagielski debug="${debug}" optimize="${optimize}" deprecation="on"/> 309*b1cdbd2cSJim Jagielski 310*b1cdbd2cSJim Jagielski <zip destfile="${out}/class/jsruntime/skip_registration/js.jar" 311*b1cdbd2cSJim Jagielski basedir="${out}/class/jsruntimetmp" includes="**"/> 312*b1cdbd2cSJim Jagielski 313*b1cdbd2cSJim Jagielski <zip zipfile="${out}/class/sframeworkinstall/sframework/jsruntime.zip" 314*b1cdbd2cSJim Jagielski basedir="${out}/class/jsruntime"> 315*b1cdbd2cSJim Jagielski </zip> 316*b1cdbd2cSJim Jagielski </target> 317*b1cdbd2cSJim Jagielski 318*b1cdbd2cSJim Jagielski <!-- =================== Build BeanShell UNO package ===================== --> 319*b1cdbd2cSJim Jagielski <target name="buildbshuno"> 320*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/bshruntime"/> 321*b1cdbd2cSJim Jagielski <copy file="${out}/class/ScriptRuntimeForBeanShell.jar" 322*b1cdbd2cSJim Jagielski todir="${out}/class/bshruntime/"/> 323*b1cdbd2cSJim Jagielski <copy file="installer/Scripting.BeanShell.xcu" 324*b1cdbd2cSJim Jagielski tofile="${out}/class/bshruntime/Scripting.xcu"/> 325*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/bshruntime/skip_registration"/> 326*b1cdbd2cSJim Jagielski <copy file="${install.dir}/bsh-1.2b7.jar" 327*b1cdbd2cSJim Jagielski todir="${out}/class/bshruntime/skip_registration"/> 328*b1cdbd2cSJim Jagielski <zip zipfile="${out}/class/sframeworkinstall/sframework/bshruntime.zip" 329*b1cdbd2cSJim Jagielski basedir="${out}/class/bshruntime"> 330*b1cdbd2cSJim Jagielski </zip> 331*b1cdbd2cSJim Jagielski </target> 332*b1cdbd2cSJim Jagielski 333*b1cdbd2cSJim Jagielski <!-- ========= Package schema, scripts, dialogs & examples =========== --> 334*b1cdbd2cSJim Jagielski <target name="packagedialogsandexamples" depends="buildexamples"> 335*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/sframeworkinstall/schema"/> 336*b1cdbd2cSJim Jagielski <copy file="installer/Scripting.xcs" 337*b1cdbd2cSJim Jagielski todir="${out}/class/sframeworkinstall/schema/"/> 338*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/sframeworkinstall/bindingdialog"/> 339*b1cdbd2cSJim Jagielski <copy todir="${out}/class/sframeworkinstall/bindingdialog"> 340*b1cdbd2cSJim Jagielski <fileset dir="bindings/"> 341*b1cdbd2cSJim Jagielski <include name="**/*.x*"/> 342*b1cdbd2cSJim Jagielski </fileset> 343*b1cdbd2cSJim Jagielski </copy> 344*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/sframeworkinstall/examples"/> 345*b1cdbd2cSJim Jagielski <copy todir="${out}/class/sframeworkinstall/examples"> 346*b1cdbd2cSJim Jagielski <fileset dir="${out}/class/examples/"/> 347*b1cdbd2cSJim Jagielski </copy> 348*b1cdbd2cSJim Jagielski </target> 349*b1cdbd2cSJim Jagielski 350*b1cdbd2cSJim Jagielski <!-- ===================== Package IDEs ================================== --> 351*b1cdbd2cSJim Jagielski <target name="packageide"> 352*b1cdbd2cSJim Jagielski <mkdir dir="${out}/class/sframeworkinstall/ide"/> 353*b1cdbd2cSJim Jagielski <copy todir="${out}/class/sframeworkinstall/ide"> 354*b1cdbd2cSJim Jagielski <fileset dir="${out}/class/"> 355*b1cdbd2cSJim Jagielski <include name="idesupport.jar"/> 356*b1cdbd2cSJim Jagielski <include name="office.jar"/> 357*b1cdbd2cSJim Jagielski </fileset> 358*b1cdbd2cSJim Jagielski </copy> 359*b1cdbd2cSJim Jagielski </target> 360*b1cdbd2cSJim Jagielski 361*b1cdbd2cSJim Jagielski <!-- ======================== Compile Classes ========================== --> 362*b1cdbd2cSJim Jagielski <target name="compileinstaller"> 363*b1cdbd2cSJim Jagielski <mkdir dir="${installerclasses}"/> 364*b1cdbd2cSJim Jagielski <javac srcdir="installer/" destdir="${installerclasses}" 365*b1cdbd2cSJim Jagielski includes="**/*.java" classpathref="idlclasspath" 366*b1cdbd2cSJim Jagielski debug="${debug}" optimize="${optimize}" deprecation="on"/> 367*b1cdbd2cSJim Jagielski <copy file="installer/sidebar.jpg" todir="${out}/class/sframeworkinstall/installer"/> 368*b1cdbd2cSJim Jagielski </target> 369*b1cdbd2cSJim Jagielski 370*b1cdbd2cSJim Jagielski <!-- ===================== jar ========================= --> 371*b1cdbd2cSJim Jagielski <target name="jar" depends="buildunopackage,buildbshuno,buildjsuno,compileinstaller,packagedialogsandexamples,packageide"> 372*b1cdbd2cSJim Jagielski <jar jarfile="${jardir}/${installerjarname}" 373*b1cdbd2cSJim Jagielski basedir="${installerclasses}"> 374*b1cdbd2cSJim Jagielski <manifest> 375*b1cdbd2cSJim Jagielski <attribute name="Built-By" value="Sun Microsystems"/> 376*b1cdbd2cSJim Jagielski <attribute name="ScriptFramework-Version" value="${sfversion}"/> 377*b1cdbd2cSJim Jagielski <attribute name="Main-Class" value="installer.InstallWizard"/> 378*b1cdbd2cSJim Jagielski </manifest> 379*b1cdbd2cSJim Jagielski </jar> 380*b1cdbd2cSJim Jagielski </target> 381*b1cdbd2cSJim Jagielski 382*b1cdbd2cSJim Jagielski <!-- ====================== Clean Generated Files ===================== --> 383*b1cdbd2cSJim Jagielski <target name="clean"> 384*b1cdbd2cSJim Jagielski <delete dir="${scriptingclasses}"/> 385*b1cdbd2cSJim Jagielski <delete dir="${storageclasses}"/> 386*b1cdbd2cSJim Jagielski <delete dir="${jardir}/${scriptingjarname}"/> 387*b1cdbd2cSJim Jagielski </target> 388*b1cdbd2cSJim Jagielski 389*b1cdbd2cSJim Jagielski <!-- ========================= All In One Build ======================= --> 390*b1cdbd2cSJim Jagielski <target name="all" depends="clean,jar"/> 391*b1cdbd2cSJim Jagielski 392*b1cdbd2cSJim Jagielski 393*b1cdbd2cSJim Jagielski</project> 394