Deprecated classes that are kept only for compatiblity is moved to a separated source tree to simplify their removal if necessary from compilation scope

git-svn-id: svn://10.0.0.236/trunk@167122 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
igor%mir2.org 2004-12-31 00:02:46 +00:00
parent d09ac44cdf
commit d4a246c42e
5 changed files with 38 additions and 8 deletions

View File

@ -38,10 +38,15 @@ Requires Ant version 1.2 or later
<antcall target="xmlimplsrc-compile" />
</target>
<target name="compile-all" depends="compile">
<ant antfile="deprecatedsrc/build.xml" target="compile"/>
</target>
<target name="copy-source" depends="init">
<ant antfile="src/build.xml" target="copy-source"/>
<ant antfile="toolsrc/build.xml" target="copy-source"/>
<antcall target="xmlimplsrc-copy-source" />
<ant antfile="deprecatedsrc/build.xml" target="copy-source"/>
<copy todir="${dist.dir}" file="build.xml"/>
<copy todir="${dist.dir}" file="build.properties"/>
<copy todir="${dist.dir}" file="apiClasses.properties"/>
@ -59,7 +64,7 @@ Requires Ant version 1.2 or later
<ant antfile="${xmlimplsrc-build-file}" target="copy-source"/>
</target>
<target name="jar" depends="compile">
<target name="jar" depends="compile-all">
<jar jarfile="${dist.dir}/${rhino.jar}"
basedir="${classes}"
manifest="src/manifest"
@ -85,12 +90,6 @@ Requires Ant version 1.2 or later
<exclude name="org/mozilla/javascript/JavaAdapter*.class"/>
<exclude name="org/mozilla/javascript/InterfaceAdapter*.class"/>
<!-- exclude deprecated classes -->
<exclude name="org/mozilla/javascript/NotAFunctionException.class"/>
<exclude name="org/mozilla/javascript/PropertyException.class"/>
<exclude name="org/mozilla/javascript/ClassDefinitionException.class"/>
<include name="org/mozilla/javascript/regexp/*.class"
unless="no-regexp"/>
@ -179,8 +178,13 @@ Requires Ant version 1.2 or later
clean remove all compiled classes and copied property files
compile compile all classes and copy all property files
compile compile classes and copy all property files
into ${classes} directory
excluding deprecated code
compile-all compile all classes and copy all property files
into ${classes} directory
including deprecated code
deepclean remove all generated files and directories

View File

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<project name="src" default="compile" basedir="..">
<property file="build.properties"/>
<target name="compile">
<javac srcdir="deprecatedsrc"
destdir="${classes}"
includes="org/**/*.java"
deprecation="on"
debug="${debug}"
target="${target-jvm}"
>
</javac>
</target>
<target name="copy-source">
<mkdir dir="${dist.dir}/src"/>
<copy todir="${dist.dir}/src">
<fileset dir="deprecatedsrc"
includes="**/*.java,**/*.properties,**/*.xml,manifest"/>
</copy>
</target>
</project>