Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tree: 5d91c45f5a
Fetching contributors…

Cannot retrieve contributors at this time

65 lines (53 sloc) 2.2 KB
<project name="IRCCat" default="dist" basedir=".">
<property name="src.dir" location="src"/>
<property name="lib.dir" location="libs"/>
<property name="build.dir" location="build"/>
<property name="dist.dir" location="dist"/>
<property name="example.dir" location="examples" />
<property name="" value="irccat" />
<path id="classpath">
<fileset dir="${lib.dir}" includes="**/*.jar"/>
<fileset dir="${dist.dir}" includes="**/*.jar"/>
<target name="init">
<mkdir dir="${build.dir}"/>
<mkdir dir="${dist.dir}"/>
<target name="compile" depends="init">
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src.dir}" destdir="${build.dir}" classpathref="classpath" debug="on"/>
<target name="jar" depends="compile">
<mkdir dir="${dist.dir}"/>
<jar jarfile="${dist.dir}/${}.jar" basedir="${build.dir}"/>
<target name="tgz" depends="jar">
<tar destfile="${dist.dir}/${}.tar">
<tarfileset file="${basedir}/README" prefix="${}" />
<tarfileset file="${basedir}/" filemode="755" prefix="${}" />
<tarfileset file="${dist.dir}/${}.jar" prefix="${}" />
<tarfileset file="${example.dir}/irccat.xml" prefix="${}" />
<tarfileset dir="${lib.dir}" includes="*.jar" prefix="${}/libs" />
<gzip src="${dist.dir}/${}.tar" zipfile="${dist.dir}/${}.tar.gz" />
<delete file="${dist.dir}/${}.tar" />
<target name="dist" depends="jar,tgz">
<target name="clean"
description="clean up" >
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build.dir}"/>
<delete dir="${dist.dir}"/>
<target name="run">
<java fork="false" classname="fm.last.irccat.IRCCat">
<path refid="classpath"/>
<path location="${dist.dir}/${}.jar"/>
<arg value="${configfile}" />
Jump to Line
Something went wrong with that request. Please try again.