Fetching contributors…
Cannot retrieve contributors at this time
89 lines (72 sloc) 2.98 KB
<?xml version="1.0" encoding="UTF-8"?>
jTimeSched - A simple and lightweight time tracking tool
Copyright (C) 2010-2012 Dominik D. Geyer <>
See LICENSE.txt for details.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <>.
Example release of version 1.0 targeting Java 1.6
ant -Dversion=1.0
<project name="jTimeSched" default="zip" basedir=".">
<description>jTimeSched build file</description>
<property name="version" value="dev" />
<property name="src" location="src" />
<property name="build" location="build" />
<property name="dist" location="dist" />
<target name="init">
<mkdir dir="${build}" />
<target name="compile" depends="init" description="compile the source">
<javac srcdir="${src}" destdir="${build}" includeantruntime="false" />
<target name="data" depends="compile" description="copy resource files (integrated in JAR)">
<copy todir="${build}" failonerror="yes">
<fileset dir="${basedir}" includes="data/**" />
<target name="jar" depends="data" description="packs the jar">
<mkdir dir="${dist}" />
<jar jarfile="${dist}/jTimeSched.jar" basedir="${build}" manifest="Manifest.txt" compress="yes">
<section name="de/dominik_geyer/jtimesched/">
<attribute name="Implementation-Version" value="${version}" />
<chmod perm="a+x" file="${dist}/jTimeSched.jar" />
<target name="zip" depends="jar" description="generate the distribution">
<copy todir="${dist}" failonerror="yes">
<fileset dir="${basedir}" includes=" ChangeLog.txt LICENSE.txt" />
<fileset dir="${basedir}/launcher" includes=" jTimeSched.exe" />
<copy todir="${dist}/appicon" failonerror="yes">
<fileset dir="${basedir}/data/img/appicon" includes="jTimeSched_on_*.png" />
<fileset dir="${basedir}/launcher" includes="jTimeSched.ico" />
<chmod perm="a+x" file="${dist}/" />
<chmod perm="a+x" file="${dist}/jTimeSched.jar" />
<exec executable="zip" dir="${dist}" failonerror="yes" description="zipping">
<arg value="-q9R" />
<arg value="jTimeSched-${version}.zip" />
<arg value="*" />
<arg value="-x *.svn" />
<target name="clean" description="clean up">
<delete dir="${build}" />
<delete dir="${dist}" />