build.xml (cdf0e10c) build.xml (9ef65f0e)
1<!--
2
3 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
5 Copyright 2000, 2010 Oracle and/or its affiliates.
6
7 OpenOffice.org - a multi-platform office productivity suite
8

--- 31 unchanged lines hidden (view full) ---

40
41 <!-- Change this property if you are building NetBeans editor support jar.
42 Not needed in default build -->
43 <property name="netbeans.install.path" value="/export/home/netbeans"/>
44
45 <property environment="env"/>
46 <property name="env.BSH_JAR" value="${solar.jar}/bsh.jar"/>
47
1<!--
2
3 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
5 Copyright 2000, 2010 Oracle and/or its affiliates.
6
7 OpenOffice.org - a multi-platform office productivity suite
8

--- 31 unchanged lines hidden (view full) ---

40
41 <!-- Change this property if you are building NetBeans editor support jar.
42 Not needed in default build -->
43 <property name="netbeans.install.path" value="/export/home/netbeans"/>
44
45 <property environment="env"/>
46 <property name="env.BSH_JAR" value="${solar.jar}/bsh.jar"/>
47
48 <target name="eval_environment">
49 <condition property="with_rhino">
50 <equals arg1="${env.ENABLE_JAVASCRIPT}" arg2="YES" />
51 </condition>
52 <condition property="with_beanshell">
53 <equals arg1="${env.ENABLE_BEANSHELL}" arg2="YES" />
54 </condition>
55 </target>
56
48 <!-- ==================== classpath setting ============================ -->
49 <path id="idlclasspath">
50 <pathelement location="${solar.jar}/jurt.jar"/>
51 <pathelement location="${solar.jar}/unoil.jar"/>
52 <pathelement location="${solar.jar}/juh.jar"/>
53 <pathelement location="${solar.jar}/java_uno.jar"/>
54 <pathelement location="${solar.jar}/ridl.jar"/>
55 <pathelement location="${env.BSH_JAR}"/>

--- 34 unchanged lines hidden (view full) ---

90 <path id="my.bootstrap.classpath" refID="${boot_refID}"/>
91
92 <!-- ===================== Prepare Directories ========================= -->
93 <target name="prepare">
94 <mkdir dir="${jardir}"/>
95 </target>
96
97 <!-- ======================== Compile Classes ========================== -->
57 <!-- ==================== classpath setting ============================ -->
58 <path id="idlclasspath">
59 <pathelement location="${solar.jar}/jurt.jar"/>
60 <pathelement location="${solar.jar}/unoil.jar"/>
61 <pathelement location="${solar.jar}/juh.jar"/>
62 <pathelement location="${solar.jar}/java_uno.jar"/>
63 <pathelement location="${solar.jar}/ridl.jar"/>
64 <pathelement location="${env.BSH_JAR}"/>

--- 34 unchanged lines hidden (view full) ---

99 <path id="my.bootstrap.classpath" refID="${boot_refID}"/>
100
101 <!-- ===================== Prepare Directories ========================= -->
102 <target name="prepare">
103 <mkdir dir="${jardir}"/>
104 </target>
105
106 <!-- ======================== Compile Classes ========================== -->
98 <target name="compile" depends="prepare">
107 <target name="compile" depends="prepare, eval_environment">
99 <javac srcdir="com" destdir="${jardir}"
100 includes="**/*.java" classpathref="idlclasspath"
101 debug="${debug}" optimize="${optimize}" deprecation="off">
108 <javac srcdir="com" destdir="${jardir}"
109 includes="**/*.java" classpathref="idlclasspath"
110 debug="${debug}" optimize="${optimize}" deprecation="off">
111 <exclude name="**/provider/javascript/*.java" unless="with_rhino" />
112 <exclude name="**/provider/beanshell/*.java" unless="with_beanshell" />
102 <compilerarg value="-Xbootclasspath:${toString:my.bootstrap.classpath}"/>
103 </javac>
104 <javac srcdir="Framework/" destdir="${jardir}"
105 includes="**/*.java" classpathref="idlclasspath" debug="${debug}"
106 optimize="${optimize}" deprecation="off">
107 <compilerarg value="-Xbootclasspath:${toString:my.bootstrap.classpath}"/>
108 </javac>
109 </target>

--- 41 unchanged lines hidden (view full) ---

151 <fileset dir=".">
152 <include name="org/openoffice/netbeans/editor/OOo.jcs"/>
153 <include name="org/openoffice/netbeans/editor/OOo.jcb"/>
154 </fileset>
155 </jar>
156 </target>
157
158 <!-- ===================== jar ========================= -->
113 <compilerarg value="-Xbootclasspath:${toString:my.bootstrap.classpath}"/>
114 </javac>
115 <javac srcdir="Framework/" destdir="${jardir}"
116 includes="**/*.java" classpathref="idlclasspath" debug="${debug}"
117 optimize="${optimize}" deprecation="off">
118 <compilerarg value="-Xbootclasspath:${toString:my.bootstrap.classpath}"/>
119 </javac>
120 </target>

--- 41 unchanged lines hidden (view full) ---

162 <fileset dir=".">
163 <include name="org/openoffice/netbeans/editor/OOo.jcs"/>
164 <include name="org/openoffice/netbeans/editor/OOo.jcb"/>
165 </fileset>
166 </jar>
167 </target>
168
169 <!-- ===================== jar ========================= -->
159 <target name="jar" depends="compile">
170 <target name="jar.provider.java" depends="compile">
160 <jar jarfile="${jardir}/ScriptProviderForJava.jar"
161 basedir="${jardir}">
162 <manifest>
163 <attribute name="Built-By" value="Sun Microsystems"/>
164 <attribute name="RegistrationClassName"
165 value="com.sun.star.script.framework.provider.java.ScriptProviderForJava"/>
166 <attribute name="Class-Path" value="ScriptFramework.jar"/>
167 <attribute name="UNO-Type-Path" value=""/>
168 </manifest>
169 <include name="**/provider/java/*.class"/>
170 </jar>
171 <jar jarfile="${jardir}/ScriptProviderForJava.jar"
172 basedir="${jardir}">
173 <manifest>
174 <attribute name="Built-By" value="Sun Microsystems"/>
175 <attribute name="RegistrationClassName"
176 value="com.sun.star.script.framework.provider.java.ScriptProviderForJava"/>
177 <attribute name="Class-Path" value="ScriptFramework.jar"/>
178 <attribute name="UNO-Type-Path" value=""/>
179 </manifest>
180 <include name="**/provider/java/*.class"/>
181 </jar>
182 </target>
171
183
184 <target name="jar.provider.beanshell" depends="compile" if="with_beanshell">
172 <jar jarfile="${jardir}/ScriptProviderForBeanShell.jar"
173 basedir="${jardir}">
174 <manifest>
175 <attribute name="Built-By" value="Sun Microsystems"/>
176 <attribute name="RegistrationClassName"
177 value="com.sun.star.script.framework.provider.beanshell.ScriptProviderForBeanShell"/>
178 <attribute name="Class-Path" value="ScriptFramework.jar bsh.jar"/>
179 <attribute name="UNO-Type-Path" value=""/>
180 </manifest>
181 <include name="**/provider/beanshell/*.class"/>
182 <fileset dir=".">
183 <include name="**/provider/beanshell/*.bsh"/>
184 </fileset>
185 </jar>
185 <jar jarfile="${jardir}/ScriptProviderForBeanShell.jar"
186 basedir="${jardir}">
187 <manifest>
188 <attribute name="Built-By" value="Sun Microsystems"/>
189 <attribute name="RegistrationClassName"
190 value="com.sun.star.script.framework.provider.beanshell.ScriptProviderForBeanShell"/>
191 <attribute name="Class-Path" value="ScriptFramework.jar bsh.jar"/>
192 <attribute name="UNO-Type-Path" value=""/>
193 </manifest>
194 <include name="**/provider/beanshell/*.class"/>
195 <fileset dir=".">
196 <include name="**/provider/beanshell/*.bsh"/>
197 </fileset>
198 </jar>
199 </target>
186
200
201 <target name="jar.provider.javascript" depends="compile" if="with_rhino">
187 <jar jarfile="${jardir}/ScriptProviderForJavaScript.jar"
188 basedir="${jardir}">
189 <manifest>
190 <attribute name="Built-By" value="Sun Microsystems"/>
191 <attribute name="RegistrationClassName"
192 value="com.sun.star.script.framework.provider.javascript.ScriptProviderForJavaScript"/>
193 <attribute name="Class-Path" value="ScriptFramework.jar js.jar"/>
194 <attribute name="UNO-Type-Path" value=""/>
195 </manifest>
196 <include name="**/provider/javascript/*.class"/>
197 <fileset dir=".">
198 <include name="**/provider/javascript/*.js"/>
199 </fileset>
200 </jar>
202 <jar jarfile="${jardir}/ScriptProviderForJavaScript.jar"
203 basedir="${jardir}">
204 <manifest>
205 <attribute name="Built-By" value="Sun Microsystems"/>
206 <attribute name="RegistrationClassName"
207 value="com.sun.star.script.framework.provider.javascript.ScriptProviderForJavaScript"/>
208 <attribute name="Class-Path" value="ScriptFramework.jar js.jar"/>
209 <attribute name="UNO-Type-Path" value=""/>
210 </manifest>
211 <include name="**/provider/javascript/*.class"/>
212 <fileset dir=".">
213 <include name="**/provider/javascript/*.js"/>
214 </fileset>
215 </jar>
216 </target>
201
217
218 <target name="jar.scriptframework" depends="compile">
202 <jar jarfile="${jardir}/ScriptFramework.jar"
203 basedir="${jardir}">
204 <manifest>
205 <attribute name="Built-By" value="Sun Microsystems"/>
206 <attribute name="RegistrationClassName"
207 value="com.sun.star.script.framework.security.SecurityDialog"/>
208 <attribute name="UNO-Type-Path" value=""/>
209 </manifest>
210 <include name="**/security/*"/>
211 <include name="**/log/*.class"/>
212 <include name="**/provider/*.class"/>
213 <include name="**/browse/*.class"/>
214 <include name="**/container/*.class"/>
215 <include name="**/io/*.class"/>
216 </jar>
219 <jar jarfile="${jardir}/ScriptFramework.jar"
220 basedir="${jardir}">
221 <manifest>
222 <attribute name="Built-By" value="Sun Microsystems"/>
223 <attribute name="RegistrationClassName"
224 value="com.sun.star.script.framework.security.SecurityDialog"/>
225 <attribute name="UNO-Type-Path" value=""/>
226 </manifest>
227 <include name="**/security/*"/>
228 <include name="**/log/*.class"/>
229 <include name="**/provider/*.class"/>
230 <include name="**/browse/*.class"/>
231 <include name="**/container/*.class"/>
232 <include name="**/io/*.class"/>
233 </jar>
234 </target>
217
235
236 <target name="jar" depends="jar.provider.java,jar.provider.beanshell,jar.provider.javascript,jar.scriptframework">
218 </target>
219
220 <target name="idesupport.jar" depends="idesupport.compile">
221 <jar jarfile="${jardir}/idesupport.jar">
222 <fileset dir="${jardir}">
223 <include name="${idesupport.dir}/**/*.class"/>
224 <include name="CommandLineTools*"/>
225 <exclude name="${idesupport.dir}/localoffice/*.class"/>

--- 60 unchanged lines hidden ---
237 </target>
238
239 <target name="idesupport.jar" depends="idesupport.compile">
240 <jar jarfile="${jardir}/idesupport.jar">
241 <fileset dir="${jardir}">
242 <include name="${idesupport.dir}/**/*.class"/>
243 <include name="CommandLineTools*"/>
244 <exclude name="${idesupport.dir}/localoffice/*.class"/>

--- 60 unchanged lines hidden ---