1
<?xml version="1.0" encoding="utf-8"?>
2
<!-- ***** BEGIN LICENSE BLOCK *****
3
- Version: MPL 1.1/GPL 2.0
5
- The contents of this file are subject to the Mozilla Public License Version
6
- 1.1 (the "License"); you may not use this file except in compliance with
7
- the License. You may obtain a copy of the License at
8
- http://www.mozilla.org/MPL/
10
- Software distributed under the License is distributed on an "AS IS" basis,
11
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12
- for the specific language governing rights and limitations under the
15
- The Original Code is Rhino code, released May 6, 1999.
17
- The Initial Developer of the Original Code is
18
- Netscape Communications Corporation.
19
- Portions created by the Initial Developer are Copyright (C) 1997-1999
20
- the Initial Developer. All Rights Reserved.
24
- Alternatively, the contents of this file may be used under the terms of
25
- the GNU General Public License Version 2 or later (the "GPL"), in which
26
- case the provisions of the GPL are applicable instead of those above. If
27
- you wish to allow use of your version of this file only under the terms of
28
- the GPL and not to allow others to use your version of this file under the
29
- MPL, indicate your decision by deleting the provisions above and replacing
30
- them with the notice and other provisions required by the GPL. If you do
31
- not delete the provisions above, a recipient may use your version of this
32
- file under either the MPL or the GPL.
34
- ***** END LICENSE BLOCK ***** -->
38
Build file for Rhino using Ant (see http://jakarta.apache.org/ant/index.html)
39
Requires Ant version 1.2
41
<project name="toolsrc" default="compile" basedir="..">
43
<target name="properties">
44
<property file="build.properties"/>
45
<property name="debugger"
46
value="org/mozilla/javascript/tools/debugger"/>
49
<target name="compile" depends="properties">
50
<javac srcdir="toolsrc"
52
includes="org/**/*.java"
53
excludes="org/**/debugger/*.java"
56
target="${target-jvm}"
57
source="${source-level}"
60
<copy todir="${classes}">
61
<fileset dir="toolsrc" includes="org/**/*.properties" />
65
<target name="copy-source" depends="properties">
66
<mkdir dir="${dist.dir}/toolsrc"/>
67
<copy todir="${dist.dir}/toolsrc">
68
<fileset dir="toolsrc"
69
includes="**/*.java,**/*.properties,**/*.xml"
70
excludes="${debugger}/downloaded/**" />
74
<target name="download-debugger" depends="properties">
75
<ant dir="toolsrc/${debugger}" target="download"/>
78
<target name="compile-debugger" depends="download-debugger">
79
<mkdir dir="classes"/>
80
<javac srcdir="toolsrc"
82
includes="org/**/debugger/*.java,org/**/debugger/downloaded/*.java"
85
target="${target-jvm}"
86
source="${source-level}"/>
87
<copy todir="classes">
88
<fileset dir="toolsrc" includes="org/**/*.properties" />
96
<target name="clean" depends="properties">
97
<delete includeEmptyDirs="true">
98
<fileset dir="${classes}"
99
includes="org/mozilla/javascript/tools/**"/>