Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a2b06b52cf
Fetching contributors…

Cannot retrieve contributors at this time

65 lines (53 sloc) 2.248 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="project.name" value="irccat" />
<path id="classpath">
<fileset dir="${lib.dir}" includes="**/*.jar"/>
<fileset dir="${dist.dir}" includes="**/*.jar"/>
</path>
<target name="init">
<tstamp/>
<mkdir dir="${build.dir}"/>
<mkdir dir="${dist.dir}"/>
</target>
<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>
<target name="jar" depends="compile">
<mkdir dir="${dist.dir}"/>
<jar jarfile="${dist.dir}/${project.name}.jar" basedir="${build.dir}"/>
</target>
<target name="tgz" depends="jar">
<tar destfile="${dist.dir}/${project.name}.tar">
<tarfileset file="${basedir}/README" prefix="${project.name}" />
<tarfileset file="${basedir}/irccat.sh" filemode="755" prefix="${project.name}" />
<tarfileset file="${dist.dir}/${project.name}.jar" prefix="${project.name}" />
<tarfileset file="${example.dir}/irccat.xml" prefix="${project.name}" />
<tarfileset dir="${lib.dir}" includes="*.jar" prefix="${project.name}/libs" />
</tar>
<gzip src="${dist.dir}/${project.name}.tar" zipfile="${dist.dir}/${project.name}.tar.gz" />
<delete file="${dist.dir}/${project.name}.tar" />
</target>
<target name="dist" depends="jar,tgz">
</target>
<target name="clean"
description="clean up" >
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build.dir}"/>
<delete dir="${dist.dir}"/>
</target>
<target name="run">
<java fork="false" classname="fm.last.irccat.IRCCat">
<classpath>
<path refid="classpath"/>
<path location="${dist.dir}/${project.name}.jar"/>
</classpath>
<arg value="${configfile}" />
</java>
</target>
</project>
Jump to Line
Something went wrong with that request. Please try again.