Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

72 lines (61 sloc) 1.738 kb
<?xml version="1.0"?>
<project name="wordnik-oss" xmlns:ivy="antlib:org.apache.ivy.ant" default="build" basedir=".">
<target name="build" depends="resolve">
<delete quiet="true" file="build/*.jar" />
<mkdir dir="build" />
<mkdir dir="build/main" />
<mkdir dir="build/main/java" />
<javac srcdir="src/main/java" debug="true" destdir="build/main/java">
<classpath>
<fileset dir="lib">
<include name="*.jar" />
</fileset>
<pathelement location="build/main/java" />
</classpath>
</javac>
<jar jarfile="build/wordnik-oss.jar">
<fileset dir="build/main/java" />
</jar>
</target>
<target name="clean">
<delete dir="dist"/>
<delete dir="build" quiet="true"/>
</target>
<target name="dist" depends="clean,build">
<!-- make dist -->
<delete dir="dist"/>
<mkdir dir="dist"/>
<mkdir dir="dist/lib"/>
<!-- copy all jars -->
<copy todir="dist/lib">
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
<fileset dir="build">
<include name="*.jar"/>
</fileset>
</copy>
<!-- copy bin files -->
<copy todir="dist/bin">
<fileset dir="bin"/>
</copy>
<chmod perm="a+x">
<fileset dir="dist/bin">
<include name="*.sh"/>
</fileset>
</chmod>
<!-- clean up old dists -->
<delete quiet="true">
<fileset dir=".">
<include name="wordnik-oss-*.zip"/>
</fileset>
</delete>
<zip destfile="wordnik-oss-tools.zip">
<zipfileset dir="dist" prefix="wordnik-oss" includes="**/*"/>
</zip>
</target>
<!-- copies all dependencies into the lib folder -->
<target name="resolve" description="retreive dependencies with ivy">
<ivy:retrieve pattern="${basedir}/lib/[artifact]-[revision].[ext]" conf="build" />
</target>
</project>
Jump to Line
Something went wrong with that request. Please try again.