summaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2004-04-05 14:49:14 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2004-04-05 14:49:14 +0000
commit707e08af67f99805c22b1890296052ea6b14e5d0 (patch)
tree5dc9340d58bceb0baeaa25391d0c422b225da52d /build.xml
parentd2ab0807aef8e006a2362396e12a25d3a0d55eb0 (diff)
downloadjavassist-707e08af67f99805c22b1890296052ea6b14e5d0.tar.gz
javassist-707e08af67f99805c22b1890296052ea6b14e5d0.zip
changed delimiters, etc.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@78 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml354
1 files changed, 177 insertions, 177 deletions
diff --git a/build.xml b/build.xml
index 004bb513..4068a7ce 100644
--- a/build.xml
+++ b/build.xml
@@ -1,177 +1,177 @@
-<?xml version="1.0"?>
-
-<!-- =================================================================== -->
-<!-- JBoss build file -->
-<!-- =================================================================== -->
-
-<project name="javassist" default="jar" basedir=".">
-
- <property name="dist-version" value="javassist-2.7"/>
-
- <property environment="env"/>
- <property name="target.jar" value="javassist.jar"/>
- <property name="src.dir" value="${basedir}/src/main"/>
- <property name="build.dir" value="${basedir}/build"/>
- <property name="build.classes.dir" value="${build.dir}/classes"/>
-
- <property name="run.dir" value="${build.classes.dir}"/>
-
- <!-- Build classpath -->
- <path id="classpath">
- <pathelement location="${build.classes.dir}"/>
- </path>
-
- <property name="build.classpath" refid="classpath"/>
-
- <!-- =================================================================== -->
- <!-- Prepares the build directory -->
- <!-- =================================================================== -->
- <target name="prepare" >
- <mkdir dir="${build.dir}"/>
- <mkdir dir="${build.classes.dir}"/>
- </target>
-
- <!-- =================================================================== -->
- <!-- Compiles the source code -->
- <!-- =================================================================== -->
- <target name="compile" depends="prepare">
- <javac srcdir="${src.dir}"
- destdir="${build.classes.dir}"
- debug="on"
- deprecation="on"
- optimize="off"
- includes="**">
- <classpath refid="classpath"/>
- </javac>
- </target>
-
- <target name="sample" depends="compile">
- <javac srcdir="${basedir}"
- destdir="${build.classes.dir}"
- debug="on"
- deprecation="on"
- optimize="off"
- includes="sample/**">
- <classpath refid="classpath"/>
- </javac>
- <copy file="sample/vector/Test.j"
- todir="${build.classes.dir}/sample/vector"/>
- <copy todir="${build.classes.dir}/sample/evolve">
- <fileset dir="sample/evolve"/>
- </copy>
- <echo>To run the sample programs, change the current directory
-to ${build.classes.dir}.</echo>
- </target>
-
- <target name="jar" depends="compile">
- <jar jarfile="${target.jar}" manifest="${src.dir}/META-INF/MANIFEST.MF">
- <fileset dir="${build.classes.dir}">
- <include name="**/*.class"/>
- </fileset>
- </jar>
- </target>
-
- <target name="javadocs">
- <javadoc packagenames="javassist.*"
- excludepackagenames="javassist.compiler.*,javassist.convert.*"
- sourcepath="src/main"
- defaultexcludes="yes"
- destdir="html"
- author="true"
- version="true"
- use="true"
- Locale="en_US"
- charset="iso-8859-1"
- Public="true"
- nohelp="true"
- windowtitle="Javassist API">
- <doctitle><![CDATA[<h1>Javassist</h1>]]></doctitle>
- <bottom><![CDATA[<i>Javassist, a Java-bytecode translator toolkit.
-Copyright (C) 1999-2004 Shigeru Chiba. All Rights Reserved.</i>]]></bottom>
- </javadoc>
- </target>
-
- <target name="dist" depends="jar,javadocs">
- <delete file="${dist-version}.zip"/>
- <zip zipfile="${dist-version}.zip">
- <zipfileset dir="${basedir}" prefix="${dist-version}">
- <include name="**"/>
- <exclude name="build/**"/>
- <exclude name="local/**"/>
- <exclude name="${dist-version}.zip"/>
- </zipfileset>
- </zip>
- </target>
-
- <target name="clean">
- <delete dir="build"/>
- <delete dir="html"/>
- <delete file="${target.jar}"/>
- <delete file="${dist-version}.zip"/>
- </target>
-
- <!-- =================================================================== -->
- <!-- Run samples -->
- <!-- =================================================================== -->
-
- <target name = "sample-all"
- depends="sample-test,sample-reflect,sample-duplicate,sample-vector">
- <echo>** please run sample-rmi and sample-evolve separately **</echo>
- </target>
-
- <target name = "sample-test" depends="sample" >
- <java fork="true" dir="${run.dir}" classname="sample.Test">
- <classpath refid="classpath"/>
- </java>
- </target>
-
- <target name = "sample-reflect" depends="sample" >
- <java fork="true" dir="${run.dir}" classname="javassist.reflect.Loader">
- <classpath refid="classpath"/>
- <arg line="sample.reflect.Main Joe" />
- </java>
- </target>
-
- <target name = "sample-duplicate" depends="sample" >
- <echo>run sample.duplicate.Viewer without reflection</echo>
- <java fork="true" dir="${run.dir}" classname="sample.duplicate.Viewer">
- <classpath refid="classpath"/>
- </java>
- <echo>run sample.duplicate.Viewer with reflection</echo>
- <java fork="true" dir="${run.dir}" classname="sample.duplicate.Main">
- <classpath refid="classpath"/>
- </java>
- </target>
-
- <target name = "sample-vector" depends="sample" >
- <echo>javassist.preproc.Compiler sample/vector/Test.j</echo>
- <java fork="true" dir="${run.dir}" classname="javassist.preproc.Compiler">
- <classpath refid="classpath"/>
- <arg line="sample/vector/Test.j"/>
- </java>
- <echo>javac sample/vector/Test.java</echo>
- <javac srcdir="${build.classes.dir}"
- destdir="${build.classes.dir}"
- includes="sample/vector/Test.java">
- <classpath refid="classpath"/>
- </javac>
- <java fork="true" dir="${run.dir}" classname="sample.vector.Test" />
- </target>
-
- <target name = "sample-rmi" depends="sample" >
- <echo>** Please open sample/rmi/webdemo.html with your browser **</echo>
- <java fork="true" dir="${run.dir}" classname="sample.rmi.Counter">
- <classpath refid="classpath"/>
- <arg value="5001" />
- </java>
- </target>
-
- <target name = "sample-evolve" depends="sample" >
- <echo>** Please open http://localhost:5003/demo.html with your browser **</echo>
- <java fork="true" dir="${run.dir}" classname="sample.evolve.DemoLoader">
- <classpath refid="classpath"/>
- <arg value="5003" />
- </java>
- </target>
-
-</project>
+<?xml version="1.0"?>
+
+<!-- =================================================================== -->
+<!-- JBoss build file -->
+<!-- =================================================================== -->
+
+<project name="javassist" default="jar" basedir=".">
+
+ <property name="dist-version" value="javassist-2.7"/>
+
+ <property environment="env"/>
+ <property name="target.jar" value="javassist.jar"/>
+ <property name="src.dir" value="${basedir}/src/main"/>
+ <property name="build.dir" value="${basedir}/build"/>
+ <property name="build.classes.dir" value="${build.dir}/classes"/>
+
+ <property name="run.dir" value="${build.classes.dir}"/>
+
+ <!-- Build classpath -->
+ <path id="classpath">
+ <pathelement location="${build.classes.dir}"/>
+ </path>
+
+ <property name="build.classpath" refid="classpath"/>
+
+ <!-- =================================================================== -->
+ <!-- Prepares the build directory -->
+ <!-- =================================================================== -->
+ <target name="prepare" >
+ <mkdir dir="${build.dir}"/>
+ <mkdir dir="${build.classes.dir}"/>
+ </target>
+
+ <!-- =================================================================== -->
+ <!-- Compiles the source code -->
+ <!-- =================================================================== -->
+ <target name="compile" depends="prepare">
+ <javac srcdir="${src.dir}"
+ destdir="${build.classes.dir}"
+ debug="on"
+ deprecation="on"
+ optimize="off"
+ includes="**">
+ <classpath refid="classpath"/>
+ </javac>
+ </target>
+
+ <target name="sample" depends="compile">
+ <javac srcdir="${basedir}"
+ destdir="${build.classes.dir}"
+ debug="on"
+ deprecation="on"
+ optimize="off"
+ includes="sample/**">
+ <classpath refid="classpath"/>
+ </javac>
+ <copy file="sample/vector/Test.j"
+ todir="${build.classes.dir}/sample/vector"/>
+ <copy todir="${build.classes.dir}/sample/evolve">
+ <fileset dir="sample/evolve"/>
+ </copy>
+ <echo>To run the sample programs, change the current directory
+to ${build.classes.dir}.</echo>
+ </target>
+
+ <target name="jar" depends="compile">
+ <jar jarfile="${target.jar}" manifest="${src.dir}/META-INF/MANIFEST.MF">
+ <fileset dir="${build.classes.dir}">
+ <include name="**/*.class"/>
+ </fileset>
+ </jar>
+ </target>
+
+ <target name="javadocs">
+ <javadoc packagenames="javassist.*"
+ excludepackagenames="javassist.compiler.*,javassist.convert.*"
+ sourcepath="src/main"
+ defaultexcludes="yes"
+ destdir="html"
+ author="true"
+ version="true"
+ use="true"
+ Locale="en_US"
+ charset="iso-8859-1"
+ Public="true"
+ nohelp="true"
+ windowtitle="Javassist API">
+ <doctitle><![CDATA[<h1>Javassist</h1>]]></doctitle>
+ <bottom><![CDATA[<i>Javassist, a Java-bytecode translator toolkit.
+Copyright (C) 1999-2004 Shigeru Chiba. All Rights Reserved.</i>]]></bottom>
+ </javadoc>
+ </target>
+
+ <target name="dist" depends="jar,javadocs">
+ <delete file="${dist-version}.zip"/>
+ <zip zipfile="${dist-version}.zip">
+ <zipfileset dir="${basedir}" prefix="${dist-version}">
+ <include name="**"/>
+ <exclude name="build/**"/>
+ <exclude name="local/**"/>
+ <exclude name="${dist-version}.zip"/>
+ </zipfileset>
+ </zip>
+ </target>
+
+ <target name="clean">
+ <delete dir="build"/>
+ <delete dir="html"/>
+ <delete file="${target.jar}"/>
+ <delete file="${dist-version}.zip"/>
+ </target>
+
+ <!-- =================================================================== -->
+ <!-- Run samples -->
+ <!-- =================================================================== -->
+
+ <target name = "sample-all"
+ depends="sample-test,sample-reflect,sample-duplicate,sample-vector">
+ <echo>** please run sample-rmi and sample-evolve separately **</echo>
+ </target>
+
+ <target name = "sample-test" depends="sample" >
+ <java fork="true" dir="${run.dir}" classname="sample.Test">
+ <classpath refid="classpath"/>
+ </java>
+ </target>
+
+ <target name = "sample-reflect" depends="sample" >
+ <java fork="true" dir="${run.dir}" classname="javassist.reflect.Loader">
+ <classpath refid="classpath"/>
+ <arg line="sample.reflect.Main Joe" />
+ </java>
+ </target>
+
+ <target name = "sample-duplicate" depends="sample" >
+ <echo>run sample.duplicate.Viewer without reflection</echo>
+ <java fork="true" dir="${run.dir}" classname="sample.duplicate.Viewer">
+ <classpath refid="classpath"/>
+ </java>
+ <echo>run sample.duplicate.Viewer with reflection</echo>
+ <java fork="true" dir="${run.dir}" classname="sample.duplicate.Main">
+ <classpath refid="classpath"/>
+ </java>
+ </target>
+
+ <target name = "sample-vector" depends="sample" >
+ <echo>javassist.preproc.Compiler sample/vector/Test.j</echo>
+ <java fork="true" dir="${run.dir}" classname="javassist.preproc.Compiler">
+ <classpath refid="classpath"/>
+ <arg line="sample/vector/Test.j"/>
+ </java>
+ <echo>javac sample/vector/Test.java</echo>
+ <javac srcdir="${build.classes.dir}"
+ destdir="${build.classes.dir}"
+ includes="sample/vector/Test.java">
+ <classpath refid="classpath"/>
+ </javac>
+ <java fork="true" dir="${run.dir}" classname="sample.vector.Test" />
+ </target>
+
+ <target name = "sample-rmi" depends="sample" >
+ <echo>** Please open sample/rmi/webdemo.html with your browser **</echo>
+ <java fork="true" dir="${run.dir}" classname="sample.rmi.Counter">
+ <classpath refid="classpath"/>
+ <arg value="5001" />
+ </java>
+ </target>
+
+ <target name = "sample-evolve" depends="sample" >
+ <echo>** Please open http://localhost:5003/demo.html with your browser **</echo>
+ <java fork="true" dir="${run.dir}" classname="sample.evolve.DemoLoader">
+ <classpath refid="classpath"/>
+ <arg value="5003" />
+ </java>
+ </target>
+
+</project>