-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
74 lines (63 loc) · 2.11 KB
/
build.xml
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
70
71
72
73
74
<?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/. -->
<!--
Build file for Rhino using Ant (see http://jakarta.apache.org/ant/index.html)
Requires Ant version 1.2
-->
<project name="src" default="compile" basedir="..">
<property file="build.properties"/>
<available property="jdk15"
classname="java.lang.reflect.ParameterizedType" />
<target name="compile" depends="compile-most,compile-jdk15">
</target>
<target name="shell" depends="compile">
<java classname="org.mozilla.javascript.tools.shell.Main"
classpath="${classes}"
fork="true">
<arg line="-version 170"/>
</java>
</target>
<target name="compile-most">
<javac srcdir="src"
destdir="${classes}"
includes="org/**/*.java"
excludes="org/**/jdk15/*.java"
deprecation="on"
debug="${debug}"
includeAntRuntime="false"
target="${target-jvm}"
source="${source-level}" />
<copy todir="${classes}">
<fileset dir="src" includes="org/**/*.properties" />
<filterset>
<filter token="IMPLEMENTATION.VERSION"
value="${implementation.version}"/>
</filterset>
</copy>
</target>
<target name="compile-jdk15" if="jdk15">
<javac srcdir="src"
destdir="${classes}"
includes="org/**/jdk15/*.java"
deprecation="on"
debug="${debug}"
includeAntRuntime="false"
target="${target-jvm}"
source="${source-level}" />
</target>
<target name="copy-source">
<mkdir dir="${dist.dir}/src"/>
<copy todir="${dist.dir}/src">
<fileset dir="src"
includes="**/*.java,**/*.properties,**/*.xml,manifest"/>
</copy>
</target>
<target name="clean">
<delete includeEmptyDirs="true">
<fileset dir="${classes}"
excludes="org/mozilla/javascript/tools/**"/>
</delete>
</target>
</project>