Debian Codegraph @

rhino/src/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
7 <!--
8 Build file for Rhino using Ant (see http://jakarta.apache.org/ant/index.html)
9 Requires Ant version 1.2
10 -->
11 <project name="src" default="compile" basedir="..">
12
13 <property file="build.properties"/>
14
15 <available property="jdk15"
16 classname="java.lang.reflect.ParameterizedType" />
17
18 <target name="compile" depends="compile-most,compile-jdk15">
19 </target>
20
21 <target name="shell" depends="compile">
22 <java classname="org.mozilla.javascript.tools.shell.Main"
23 classpath="${classes}"
24 fork="true">
25 <arg line="-version 170"/>
26 </java>
27 </target>
28
29 <target name="compile-most">
30 <javac srcdir="src"
31 destdir="${classes}"
32 includes="org/**/*.java"
33 excludes="org/**/jdk15/*.java"
34 deprecation="on"
35 debug="${debug}"
36 includeAntRuntime="false"
37 encoding="UTF-8"
38 target="${target-jvm}"
39 source="${source-level}" />
40 <copy todir="${classes}">
41 <fileset dir="src" includes="org/**/*.properties" />
42 <filterset>
43 <filter token="IMPLEMENTATION.VERSION"
44 value="${implementation.version}"/>
45 </filterset>
46 </copy>
47 </target>
48
49 <target name="compile-jdk15" if="jdk15">
50 <javac srcdir="src"
51 destdir="${classes}"
52 includes="org/**/jdk15/*.java"
53 deprecation="on"
54 debug="${debug}"
55 includeAntRuntime="false"
56 encoding="UTF-8"
57 target="${target-jvm}"
58 source="${source-level}" />
59 </target>
60
61 <target name="copy-source">
62 <mkdir dir="${dist.dir}/src"/>
63 <copy todir="${dist.dir}/src">
64 <fileset dir="src"
65 includes="**/*.java,**/*.properties,**/*.xml,manifest"/>
66 </copy>
67 </target>
68
69 <target name="clean">
70 <delete includeEmptyDirs="true">
71 <fileset dir="${classes}"
72 excludes="org/mozilla/javascript/tools/**"/>
73 </delete>
74 </target>
75
76 </project>