| 1 |
<project name="lib-mnemonics" default="jar" basedir=".">
|
| 2 |
<description>
|
| 3 |
OmegaT lib-mnemonics library
|
| 4 |
</description>
|
| 5 |
<!-- set global properties for this build -->
|
| 6 |
<property name="src" location="src"/>
|
| 7 |
<property name="build" location="build"/>
|
| 8 |
<property name="jar" location="dist"/>
|
| 9 |
<property name="dist" location="dist"/>
|
| 10 |
|
| 11 |
<target name="init">
|
| 12 |
<!-- Create the time stamp -->
|
| 13 |
<tstamp/>
|
| 14 |
<!-- Create the build directory structure used by compile -->
|
| 15 |
<mkdir dir="${build}"/>
|
| 16 |
</target>
|
| 17 |
|
| 18 |
<target name="compile" depends="init"
|
| 19 |
description="compile the source " >
|
| 20 |
<!-- Compile the java code from ${src} into ${build} -->
|
| 21 |
<javac srcdir="${src}" destdir="${build}"/>
|
| 22 |
</target>
|
| 23 |
|
| 24 |
<target name="dist" depends="jar"/>
|
| 25 |
|
| 26 |
<target name="jar" depends="compile"
|
| 27 |
description="generate the distribution" >
|
| 28 |
<!-- Create the distribution directory -->
|
| 29 |
<mkdir dir="${dist}"/>
|
| 30 |
<copy todir="${build}" >
|
| 31 |
<fileset dir="${src}">
|
| 32 |
<include name="**/*.properties"/>
|
| 33 |
</fileset>
|
| 34 |
</copy>
|
| 35 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
| 36 |
<jar jarfile="${dist}/lib-mnemonics.jar"
|
| 37 |
basedir="${build}"
|
| 38 |
/>
|
| 39 |
</target>
|
| 40 |
|
| 41 |
<target name="clean"
|
| 42 |
description="clean up" >
|
| 43 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
| 44 |
<delete dir="${build}"/>
|
| 45 |
<delete dir="${dist}"/>
|
| 46 |
</target>
|
| 47 |
</project>
|