Remove ancient Ant build scripts.

This commit is contained in:
Michael Bayne
2019-03-18 19:19:59 -07:00
parent a64d9ef42b
commit c8d062700d
2 changed files with 0 additions and 131 deletions
-36
View File
@@ -1,36 +0,0 @@
<project name="bootstrap" default="-extract-ooo-build">
<!--
Pulls in ooo-build from our maven repository to make our base build system available.
From http://ooo-maven.googlecode.com/hg/etc/bootstrap.xml
To use, copy this file into your project's directory and add
<property name="ooo-build.vers" value="1.3"/>
<ant antfile="bootstrap.xml"/>
<import file="${user.home}/.m2/ooo-build/${ooo-build.vers}/ooo-build.xml"/>
to the top level of your build.xml. Then you can depend on -init-ooo in your lowest level
target and pick up all the standard ooo ant tasks and macros.
-->
<property name="maven.dir" value="${user.home}/.m2"/>
<property name="ooo-build.path"
value="com/threerings/ooo-build/${ooo-build.vers}"/>
<property name="ooo-build.jar"
value="ooo-build-${ooo-build.vers}.jar"/>
<property name="ooo-build.local.dir" value="${maven.dir}/repository/${ooo-build.path}"/>
<property name="ooo-build.local.file" value="${ooo-build.local.dir}/${ooo-build.jar}"/>
<condition property="ooo-build.exists"><available file="${ooo-build.local.file}"/></condition>
<target name="-download-ooo-build" unless="ooo-build.exists">
<mkdir dir="${ooo-build.local.dir}"/>
<get src="http://ooo-maven.googlecode.com/hg/repository/${ooo-build.path}/${ooo-build.jar}"
dest="${ooo-build.local.file}" usetimestamp="true"/>
</target>
<property name="ooo-build.dir" value="${maven.dir}/ooo-build/${ooo-build.vers}"/>
<condition property="extracted.exists"><available file="${ooo-build.dir}/ooo-build.xml"/></condition>
<target name="-extract-ooo-build" depends="-download-ooo-build" unless="extracted.exists">
<mkdir dir="${ooo-build.dir}"/>
<unjar src="${ooo-build.local.file}" dest="${ooo-build.dir}"/>
</target>
</project>
-95
View File
@@ -1,95 +0,0 @@
<?xml version="1.0"?>
<project name="samskivert" default="compile" basedir="." xmlns:artifact="urn:maven-artifact-ant">
<property name="src.dir" value="src/main/java"/>
<property name="test.dir" value="src/test/java"/>
<property name="deploy.dir" value="target"/>
<property name="classes.dir" value="${deploy.dir}/classes"/>
<property name="tclasses.dir" value="${deploy.dir}/test-classes"/>
<property name="javadoc.dir" value="${deploy.dir}/docs"/>
<property name="ooo-build.vers" value="2.9"/>
<ant antfile="bootstrap.xml"/>
<import file="${user.home}/.m2/ooo-build/${ooo-build.vers}/ooo-build.xml"/>
<target name="-prepare" depends="-init-contrib">
<mkdir dir="${deploy.dir}"/>
<mavendep pom="pom.xml" scope="compile"/>
<mavendep pom="pom.xml" id="test" scope="test"/>
</target>
<target name="clean" description="Cleans out all build results.">
<delete dir="${deploy.dir}"/>
</target>
<target name="compile" depends="-prepare" description="Compiles main and test sources.">
<mkdir dir="${classes.dir}"/>
<copy todir="${classes.dir}"><fileset dir="src/main/resources" includes="**"/></copy>
<ooojavac srcdir="${src.dir}" destdir="${classes.dir}" version="1.5"
classpathref="pom.xml.path"/>
<mkdir dir="${tclasses.dir}"/>
<copy todir="${tclasses.dir}"><fileset dir="src/test/resources" includes="**"/></copy>
<path id="built.classpath">
<path refid="test.path"/>
<pathelement location="${classes.dir}"/>
</path>
<ooojavac srcdir="${test.dir}" destdir="${tclasses.dir}" version="1.5"
classpathref="built.classpath"/>
</target>
<target name="javadoc" depends="compile" description="Builds javadocs.">
<tstamp><format property="year" pattern="yyyy"/></tstamp>
<mkdir dir="${javadoc.dir}"/>
<javadoc windowtitle="${ant.project.name} API" doctitle="${ant.project.name} API"
overview="src/main/javadoc/overview.html" destdir="${javadoc.dir}"
additionalparam="-breakiterator">
<packageset dir="${src.dir}"/>
<bottom>Copyright &#169; 2000-${year} Michael Bayne, et al. All Rights Reserved.</bottom>
<classpath refid="built.classpath"/>
<link href="http://download.oracle.com/javase/6/docs/api/"/>
<link href="http://java.sun.com/products/javamail/javadocs/"/>
<link href="http://download.oracle.com/javaee/1.2.1/api/"/>
</javadoc>
</target>
<property name="test" value=""/>
<target name="tests" depends="compile"
description="Runs unit tests. Use -Dtest=Foo to run only FooTest.">
<taskdef name="unit" classpathref="test.path"
classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"/>
<mkdir dir="${deploy.dir}/test-reports"/>
<unit printsummary="off" haltonfailure="yes" fork="${junit.fork}">
<classpath>
<pathelement location="${classes.dir}"/>
<pathelement location="${tclasses.dir}"/>
<path refid="built.classpath"/>
<fileset dir="lib/test" includes="*.jar"/>
</classpath>
<formatter type="brief" usefile="false"/>
<formatter type="xml"/>
<batchtest todir="${deploy.dir}/test-reports">
<fileset dir="${test.dir}" includes="**/*${test}*Test.java"/>
</batchtest>
</unit>
</target>
<target name="package" depends="compile" description="Builds jar files.">
<!-- we export a small selection of classes for use by GWT -->
<copy todir="${classes.dir}">
<fileset dir="src/main/resources" includes="com/samskivert/Utils.gwt.xml"/>
<fileset dir="${src.dir}" includes="com/samskivert/text/MessageUtil.java"/>
<fileset dir="${src.dir}" includes="com/samskivert/util/ByteEnum.java"/>
<fileset dir="${src.dir}" includes="com/samskivert/util/ByteEnumUtil.java"/>
</copy>
<jar destfile="${deploy.dir}/${ant.project.name}.jar" basedir="${classes.dir}"/>
</target>
<target name="install" depends="package" description="Installs to local Maven repo.">
<maveninstall file="${deploy.dir}/${ant.project.name}.jar" pom="pom.xml"/>
</target>
<target name="deploy" depends="package,tests,javadoc" description="Deploys to remote Maven repo.">
<mavendeploy file="${deploy.dir}/${ant.project.name}.jar" pom="pom.xml"
srcdir="${src.dir}" docdir="${deploy.dir}/docs"/>
</target>
</project>