[Commit] CairoJava/src build.xml,NONE,1.1

Soorya Kuloor commit at keithp.com
Wed Aug 6 12:54:06 PDT 2003


Committed by: skuloor

Update of /local/src/CVS/CairoJava/src
In directory home.keithp.com:/tmp/cvs-serv20525/src

Added Files:
	build.xml 
Log Message:
Initial checkin

--- 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="Cairo"/>
    <property name="version" value="0.15"/>
    <property name="fullname" value="${title}-${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-2.1.1/plugins/org.eclipse.swt.gtk_2.1.1"/>
    
    <path id="classPath">
	  <pathelement location="${swtDir}/ws/gtk/swt.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">
    </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}/${fullname}.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="private"
       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 Commit mailing list