[cairo-commit] CairoJava/test build.xml,NONE,1.1
Charles Tuckey
commit at pdx.freedesktop.org
Thu Nov 25 10:13:29 PST 2004
Committed by: ctuckey
Update of /cvs/cairo/CairoJava/test
In directory gabe:/tmp/cvs-serv4748
Added Files:
build.xml
Log Message:
Add build.xml file to facilitate building test programs.
--- NEW FILE: build.xml ---
<project name="Cairo" default="all" basedir=".">
<description>
ANT Build file for the Cairo jar
</description>
<target name="init">
<property name="title" value="CairoJava"/>
<property name="version" value="0.1.0"/>
<property name="jarname" value="${CairoJava}-${version}"/>
<property name="classesDir" value="../bin"/>
<property name="docsDir" value="../docs"/>
<property name="buildDir" value="${classesDir}"/>
<property name="jarDir" value="../lib"/>
<property name="javadocDir" value="${docsDir}/javadoc/${title}"/>
</target>
<target name="setupClassPath">
<property name="swtDir" value="/opt/eclipse/plugins/org.eclipse.swt.gtk_3.0.1"/>
<path id="classPath">
<pathelement location="${swtDir}/ws/gtk/swt.jar"/>
<pathelement location="${swtDir}/ws/gtk/swt-pi.jar"/>
</path>
</target>
<target name="compile" description="Compile source code" depends="init, setupClassPath">
<echo message="Compiling ${title}"/>
<mkdir dir="${buildDir}"/>
<javac srcdir="." destdir="${buildDir}" classpathref="classPath" optimize="on">
</javac>
</target>
<target name="jar" description="Compile and then make jar" depends="compile">
<echo message="Creating jar for ${title}"/>
<mkdir dir="${jarDir}"/>
<jar basedir="${buildDir}" destfile="${jarDir}/${jarname}.jar"/>
</target>
<target name="clean" description="Clean build directory" depends="init">
<echo message="Cleaning ${title}"/>
<delete dir="${buildDir}"/>
</target>
<target name="doc" description="Create javadoc" depends="init, setupClassPath">
<echo message="Creating javadoc for ${title}"/>
<mkdir dir="${javadocDir}"/>
<property name="windowtitletext" value="${title} API V.${version}"/>
<tstamp>
<format property="fulltime" pattern="MMM dd, yyyy 'at' HHmm z" locale="en"/>
</tstamp>
<javadoc
access="public"
classpathref="classPath"
packagenames="org.cairographics.cairo.*"
destdir="${javadocDir}"
author="true"
version="true"
use="true"
windowtitle="${windowtitletext}"
additionalparam="-linksource -breakiterator"
>
<link href="http://java.sun.com/j2se/1.4.2/docs/api"/>
<link href="http://www.eclipse.org/documentation/html/plugins/org.eclipse.platform.doc.isv/doc/reference/api/"/>
<sourcepath>
<pathelement path="."/>
</sourcepath>
<doctitle><![CDATA[<h1> Cairo Graphics ${windowtitletext}</h1>]]></doctitle>
<header><![CDATA[Cairo Graphics 2D API<br>Version ${version}<br>Generated on ${fulltime}]]></header>
<footer><![CDATA[Cairo Graphics 2D API<br>Version ${version}<br>Generated on ${fulltime}]]></footer>
<bottom><![CDATA[]]></bottom>
</javadoc>
</target>
<target name="all" description="Run clean, jar and doc targets on ${title}" depends="clean, jar, doc"/>
</project>
More information about the cairo-commit
mailing list