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