Debian Codegraph @

rhino/xmlimplsrc/build.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
3 - License, v. 2.0. If a copy of the MPL was not distributed with this
4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
5
6 <project name="xmlimplsrc" basedir=".." default="compile">
7 <!--
8 Properties which affect this build file:
9
10 no-e4x: Will cause E4X not to be built
11 -->
12
13 <property file="build.local.properties"/>
14 <property file="build.properties"/>
15
16 <!--
17 Provide support for the old name for skipping E4X compilation, in case someone is still using it
18 -->
19 <condition property="no-e4x">
20 <isset property="without-xmlimpl" />
21 </condition>
22
23 <target name="compile" unless="no-e4x">
24 <antcall target="e4x-compile" />
25 <antcall target="no-e4x-compile" />
26 </target>
27
28 <available property="jdk1.5?" classname="java.lang.ProcessBuilder" />
29
30 <target name="e4x-compile" if="jdk1.5?">
31 <javac
32 srcdir="xmlimplsrc"
33 destdir="${classes}"
34 deprecation="on"
35 debug="${debug}"
36 includeAntRuntime="false"
37 target="${target-jvm}"
38 source="${source-level}"
39 />
40 </target>
41
42 <target name="no-e4x-compile" unless="jdk1.5?">
43 <echo>
44 Skipping DOM E4X implementation; JDK 1.5+ currently required for compilation.
45 <!--
46 If the compiler is outfitted with DOM3 using the endorsed standards
47 override mechanism, presumably the code could be built under 1.4.
48 Not tested.
49 -->
50 </echo>
51 </target>
52
53 <target name="copy-source">
54 <mkdir dir="${dist.dir}/xmlimplsrc"/>
55 <copy todir="${dist.dir}/xmlimplsrc">
56 <fileset dir="xmlimplsrc"
57 includes="**/*.java,**/*.properties,**/*.xml"
58 />
59 </copy>
60 </target>
61
62 <target name="clean">
63 <delete includeEmptyDirs="true">
64 <fileset dir="${classes}"
65 includes="org/mozilla/javascript/xmlimpl/**"
66 />
67 </delete>
68 </target>
69 </project>