| <?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="toolsrc" default="compile" basedir=".."> | |
| <target name="properties"> | |
| <property file="build.properties"/> | |
| </target> | |
| <target name="compile" depends="properties"> | |
| <javac srcdir="toolsrc" | |
| destdir="${classes}" | |
| includes="org/**/*.java" | |
| deprecation="on" | |
| debug="${debug}" | |
| includeAntRuntime="false" | |
| encoding="UTF-8" | |
| target="${target-jvm}" | |
| source="${source-level}" | |
| > | |
| </javac> | |
| <copy todir="${classes}"> | |
| <fileset dir="toolsrc" includes="org/**/*.properties" /> | |
| </copy> | |
| </target> | |
| <target name="copy-source" depends="properties"> | |
| <mkdir dir="${dist.dir}/toolsrc"/> | |
| <copy todir="${dist.dir}/toolsrc"> | |
| <fileset dir="toolsrc" | |
| includes="**/*.java,**/*.properties,**/*.xml" /> | |
| </copy> | |
| </target> | |
| <target name="clean" depends="properties"> | |
| <delete includeEmptyDirs="true"> | |
| <fileset dir="${classes}" | |
| includes="org/mozilla/javascript/tools/**"/> | |
| </delete> | |
| </target> | |
| </project> |