Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

144 lines (109 sloc) 4.917 kB
<!-- Build file for jclasslib -->
<project name="jclasslib" default="compile">
<!-- Version -->
<property name="jclasslib.version" value="3.0"/>
<!-- Directory with miscellaneous files needed for the build process -->
<property name="service.dir" value="service"/>
<!-- Build properties -->
<property name="build.dir" value="build"/>
<property name="build.jar" value="${build.dir}/jclasslib.jar"/>
<property name="build.library.jar" value="${build.dir}/jclasslib-library.jar"/>
<property name="jar.manifest.filename" value="${service.dir}/jclasslib.mf"/>
<!-- Location of source code -->
<property name="src.dir" value="src"/>
<!-- Location of documentation -->
<property name="doc.dir" value="doc"/>
<property name="doc.src.dir" value="${doc.dir}/src"/>
<property name="doc.src.docbook.dir" value="${doc.src.dir}/docbook"/>
<property name="doc.javadoc.dir" value="${doc.dir}/api"/>
<!-- Distribution properties -->
<property name="dist.dir" value="dist"/>
<property name="dist.filename.prefix" value="jclasslib"/>
<!-- Location of external libraries required for compilation -->
<property name="lib-compile.dir" value="lib-compile"/>
<!-- Location of license file -->
<property name="license.file" value="license"/>
<property name="install4j.classpath" value="/opt/install4j/bin/install4j.jar:/Program Files/install4j/bin/install4j.jar:/Programme/install4j/bin/install4j.jar"/>
<!-- Make all standard directories -->
<target name="init">
<tstamp/>
<mkdir dir="${build.dir}"/>
<mkdir dir="${dist.dir}"/>
<mkdir dir="${doc.javadoc.dir}"/>
</target>
<target name="clean" description="Delete all generated files and directories">
<delete dir="${build.dir}"/>
<delete dir="${dist.dir}"/>
<delete dir="${doc.javadoc.dir}"/>
</target>
<target name="run" description="Run the bytecode viewer" depends="compile">
<java classname="org.gjt.jclasslib.browser.BrowserApplication">
<classpath>
<pathelement location="${build.dir}"/>
</classpath>
</java>
</target>
<target name="compile" depends="init" description="Compile source code">
<javac srcdir="${src.dir}" destdir="${build.dir}" target="1.4" source="1.4"/>
<copy todir="${build.dir}">
<fileset dir="${src.dir}">
<include name="**/*.gif"/>
<include name="**/*.png"/>
</fileset>
</copy>
</target>
<target name="jar" depends="compile" description="Assemble source code and images into jar file">
<jar jarfile="${build.jar}"
basedir="${build.dir}"
manifest="${jar.manifest.filename}"
compress="false">
<include name="org/**"/>
<exclude name="**/*.html"/>
</jar>
<jar jarfile="${build.library.jar}"
basedir="${build.dir}"
compress="false">
<include name="org/gjt/jclasslib/bytecode/**"/>
<include name="org/gjt/jclasslib/io/**"/>
<include name="org/gjt/jclasslib/structures/**"/>
<exclude name="**/*.html"/>
</jar>
</target>
<target name="dist" depends="clean,jar,doc,javadoc" description="Create distribution without install4j">
</target>
<target name="media" depends="clean,dist" description="Create media files with install4j">
<taskdef name="install4j"
classname="com.install4j.Install4JTask"
classpath="${install4j.classpath}"/>
<install4j projectfile="${service.dir}/jclasslib.install4j" release="${jclasslib.version}"/>
</target>
<target name="doc" description="Generate HTML help document from docbook source file">
<available file="${doc.src.docbook.dir}" property="docbook.available"/>
<antcall target="copyDocbook"/>
<style basedir="${doc.src.dir}"
destdir="${doc.dir}"
includes="*.xml"
extension=".html"
style="${doc.src.dir}/doc.xsl"/>
</target>
<!-- Helper target to copy docbook.zip to suitable location, if not already present -->
<target name="copyDocbook" unless="docbook.available">
<mkdir dir="${doc.src.docbook.dir}"/>
<unzip src="${lib-compile.dir}/docbook.zip" dest="${doc.src.docbook.dir}"/>
</target>
<target name="javadoc" depends="init" description="Generate javadoc">
<javadoc sourcepath="${src.dir}:"
destdir="${doc.javadoc.dir}"
packagenames="org.gjt.jclasslib.*"
overview="${doc.src.dir}/overview.html"
stylesheetfile="${doc.dir}/doc.css"
header="&lt;b&gt;&lt;a target='_blank' href='http://www.ej-technologies.com' &gt;ej-technologies&lt;/a&gt;&lt;/b&gt;"
windowtitle="jclasslib API documentation"
doctitle="&lt;a target='_blank' href='http://www.ej-technologies.com' &gt;&lt;img border='0' src='../images/ej-technologies.gif' &gt;&lt;/a&gt;"
>
<link offline="true"
href="http://java.sun.com/products/jdk/1.4/docs/api/"
packagelistLoc="${doc.src.dir}/offline-java"/>
</javadoc>
</target>
</project>
Jump to Line
Something went wrong with that request. Please try again.