2000-10-06 16:26:17 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
Build file for Rhino using Ant (see http://jakarta.apache.org/ant/index.html)
|
2000-11-01 18:43:55 +00:00
|
|
|
Requires Ant version 1.2
|
2000-10-06 16:26:17 +00:00
|
|
|
-->
|
2001-04-24 21:06:34 +00:00
|
|
|
<project name="Rhino" default="default" basedir=".">
|
2000-10-06 16:26:17 +00:00
|
|
|
|
|
|
|
<target name="properties">
|
|
|
|
<property name="name" value="rhino"/>
|
|
|
|
<property name="Name" value="Rhino"/>
|
2001-04-24 20:31:31 +00:00
|
|
|
<property name="version" value="1_5R2pre"/>
|
2000-10-06 16:26:17 +00:00
|
|
|
<property name="rhino.jar" value="js.jar"/>
|
|
|
|
|
|
|
|
<property name="build.compiler" value="classic"/>
|
|
|
|
<property name="debug" value="off"/>
|
|
|
|
|
2001-04-24 20:31:31 +00:00
|
|
|
<property name="src.dir" value="src"/>
|
|
|
|
<property name="toolsrc.dir" value="toolsrc"/>
|
|
|
|
<property name="src.examples" value="examples"/>
|
2000-10-06 16:26:17 +00:00
|
|
|
|
|
|
|
<property name="build.dir" value="./build"/>
|
|
|
|
<property name="build.dest" value="${build.dir}/classes"/>
|
|
|
|
|
2001-04-24 20:31:31 +00:00
|
|
|
<property name="dist.name" value="rhino${version}"/>
|
2000-10-06 16:26:17 +00:00
|
|
|
<property name="dist.dir" value="${build.dir}/${dist.name}"/>
|
|
|
|
<property name="dist.src" value="${dist.dir}/src"/>
|
2001-04-24 20:31:31 +00:00
|
|
|
<property name="dist.toolsrc" value="${dist.dir}/toolsrc"/>
|
2000-10-06 16:26:17 +00:00
|
|
|
<property name="dist.examples" value="${dist.dir}/examples"/>
|
|
|
|
<property name="dist.docs" value="${dist.dir}/docs"/>
|
|
|
|
<property name="dist.apidocs" value="${dist.docs}/apidocs"/>
|
2001-04-24 20:31:31 +00:00
|
|
|
<property name="dist.file" value="rhino${version}.zip"/>
|
2000-10-06 16:26:17 +00:00
|
|
|
|
|
|
|
<property file="apiClasses.properties"/>
|
2001-04-24 20:31:31 +00:00
|
|
|
<property name="docsrc.dir" value="docs"/>
|
2000-10-06 16:26:17 +00:00
|
|
|
<property name="dist.docsrc.dir" value="${src.dir}/docs"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="init" depends="properties">
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="prepare" depends="init">
|
|
|
|
<mkdir dir="${build.dir}"/>
|
|
|
|
<mkdir dir="${build.dest}"/>
|
|
|
|
<mkdir dir="${dist.dir}"/>
|
|
|
|
<mkdir dir="${dist.src}"/>
|
2001-04-24 20:31:31 +00:00
|
|
|
<mkdir dir="${dist.toolsrc}"/>
|
2000-10-06 16:26:17 +00:00
|
|
|
<mkdir dir="${dist.examples}"/>
|
|
|
|
<mkdir dir="${dist.docs}"/>
|
|
|
|
<mkdir dir="${dist.apidocs}"/>
|
|
|
|
</target>
|
|
|
|
|
2001-04-24 20:31:31 +00:00
|
|
|
<target name="compile-src" depends="prepare">
|
|
|
|
<ant dir="${src.dir}"/>
|
2000-11-27 15:00:45 +00:00
|
|
|
</target>
|
|
|
|
|
2001-04-24 20:31:31 +00:00
|
|
|
<target name="compile-toolsrc" depends="prepare">
|
|
|
|
<ant dir="${toolsrc.dir}"/>
|
2000-10-06 16:26:17 +00:00
|
|
|
</target>
|
|
|
|
|
2001-04-24 20:31:31 +00:00
|
|
|
<target name="compile" depends="compile-src,compile-toolsrc"/>
|
2000-10-06 16:26:17 +00:00
|
|
|
|
2001-04-24 20:31:31 +00:00
|
|
|
<target name="jar" depends="compile">
|
2000-10-06 16:26:17 +00:00
|
|
|
<jar jarfile="${dist.dir}/${rhino.jar}"
|
|
|
|
basedir="${build.dest}"
|
|
|
|
manifest="${src.dir}/manifest" />
|
|
|
|
</target>
|
|
|
|
|
2001-04-24 21:06:34 +00:00
|
|
|
<target name="jar-src" depends="compile-src">
|
|
|
|
<jar jarfile="${dist.dir}/${rhino.jar}"
|
|
|
|
basedir="${build.dest}"
|
|
|
|
manifest="${src.dir}/manifest" />
|
|
|
|
</target>
|
|
|
|
|
2000-10-06 16:26:17 +00:00
|
|
|
<target name="copy-examples" depends="prepare">
|
2000-11-01 18:43:55 +00:00
|
|
|
<copy todir="${dist.examples}">
|
|
|
|
<fileset dir="${src.examples}" includes="*.java,*.js,*.html" />
|
|
|
|
</copy>
|
2000-10-06 16:26:17 +00:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="copy-misc" depends="prepare">
|
2000-11-01 18:43:55 +00:00
|
|
|
<tstamp/>
|
|
|
|
<filter token="datestamp" value="${TODAY}"/>
|
|
|
|
<copy todir="${dist.dir}" filtering="yes">
|
2001-04-24 20:31:31 +00:00
|
|
|
<fileset dir=".">
|
2000-11-01 18:43:55 +00:00
|
|
|
<patternset>
|
|
|
|
<include name="build.xml"/>
|
|
|
|
<include name="apiClasses.properties"/>
|
2001-04-24 20:31:31 +00:00
|
|
|
<include name="build-date"/>
|
2000-11-01 18:43:55 +00:00
|
|
|
</patternset>
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
2000-10-06 16:26:17 +00:00
|
|
|
</target>
|
|
|
|
|
2001-04-24 20:31:31 +00:00
|
|
|
<target name="copy-all" depends="copy-examples,copy-misc">
|
2000-10-06 16:26:17 +00:00
|
|
|
</target>
|
|
|
|
|
2001-04-24 20:31:31 +00:00
|
|
|
<target name="copy-docs" depends="prepare">
|
|
|
|
<echo message="copy from ${docsrc.dir}"/>
|
2000-11-01 18:43:55 +00:00
|
|
|
<copy todir="${dist.docs}">
|
2001-04-24 20:31:31 +00:00
|
|
|
<fileset dir="${docsrc.dir}"
|
2000-11-01 18:43:55 +00:00
|
|
|
includes="**/*.html,**/*.jpg,**/*.gif" />
|
|
|
|
</copy>
|
2000-10-06 16:26:17 +00:00
|
|
|
</target>
|
|
|
|
|
2001-04-24 20:31:31 +00:00
|
|
|
<target name="javadoc" depends="compile,copy-docs">
|
2000-10-06 16:26:17 +00:00
|
|
|
<javadoc sourcefiles="${apiClasses}"
|
2001-04-25 00:24:18 +00:00
|
|
|
sourcepath="${src.dir}"
|
2000-10-06 16:26:17 +00:00
|
|
|
destdir="${dist.apidocs}"
|
|
|
|
overview="${dist.docs}/api.html"
|
|
|
|
version="true"
|
|
|
|
author="true"
|
|
|
|
public="true"
|
2001-04-25 17:11:34 +00:00
|
|
|
windowtitle="${Name}" />
|
2000-10-06 16:26:17 +00:00
|
|
|
</target>
|
|
|
|
|
2001-04-25 00:24:18 +00:00
|
|
|
<target name="dist" depends="copy-all,javadoc,jar">
|
2001-04-24 20:31:31 +00:00
|
|
|
<delete file="${dist.file}" />
|
|
|
|
<zip zipfile="${dist.file}"
|
2000-10-06 16:26:17 +00:00
|
|
|
basedir="${build.dir}"
|
|
|
|
includes="**"
|
|
|
|
excludes="classes/**" />
|
|
|
|
</target>
|
|
|
|
|
2001-04-24 21:06:34 +00:00
|
|
|
<target name="default">
|
2001-04-25 00:24:18 +00:00
|
|
|
<echo>
|
|
|
|
**** Building core only; for full distribution build, try "ant dist".
|
|
|
|
</echo>
|
2001-04-24 21:06:34 +00:00
|
|
|
<antcall target="jar-src"/>
|
|
|
|
</target>
|
|
|
|
|
2000-10-06 16:26:17 +00:00
|
|
|
</project>
|