Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
71 lines (60 sloc) 2.3 KB
<project name="doorsystemsignservice" default="tarball" basedir=".">
supervisor build file
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>
<property name="lib" location="lib"/>
<target name="init">
<!-- Create the time stamp -->
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
<target name="compile" depends="init"
description="compile the source " >
<javac debug="true" srcdir="${src}" destdir="${build}" target="1.5">
<fileset dir="${lib}">
<include name="**/*.jar"/>
<target name="jar" depends="compile"
description="generate the distribution" >
<!-- Create the distribution directory -->
<mkdir dir="${dist}/doorsystemsignservice"/>
<jar jarfile="${dist}/${}/dsss.jar" basedir="${build}">
<attribute name="Main-Class" value="org.capybara.dsss/DoorSystemSignService"/>
<target name="tarball" depends="jar" description="Creates the distribution tarball">
<copy file="" todir="${dist}/${}/" />
<copy file="" todir="${dist}/${}/" />
<mkdir dir="${dist}/${}/logs" />
<mkdir dir="${dist}/${}/bin" />
<mkdir dir="${dist}/${}/lib" />
<copy todir="${dist}/${}/init.d">
<fileset dir="init.d" includes="**" />
<copy todir="${dist}/${}/lib">
<fileset dir="lib" includes="**" />
<copy todir="${dist}/${}/bin">
<fileset dir="linux-i386-bin" includes="**" />
<chmod perm="0755" file="${dist}/${}/init.d/doorsignservice" />
<chmod perm="0755" file="${dist}/${}/bin/jsvc" />
<tar destfile="${dist}/${}.tar.gz" compression="gzip" basedir="${dist}" includes="${}/**" longfile="gnu"/>
<target name="clean"
description="clean up" >
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}"/>
<delete dir="${dist}"/>