Just in case you don't want to use Maven ;). Eventually got some time to play with OS dev again (w00t).

Kev
<?xml version="1.0" encoding="UTF-8"?>
<!--
  =======================================================================
    Apache Commons-Exec build file

   Copyright (c) 2005 The Apache Software Foundation.  All rights
   reserved.

  =======================================================================
-->
<project name="exec" default="test" basedir=".">

	<!-- basic shared properties -->
	<property file="${basedir}/build.properties"/>

	<!-- jars required for compilation -->
	<path id="compile-time-jars">
		<fileset dir="${basedir}/${lib.dir}/junit/${junit.version}"
				 includes="junit.jar" />
		<fileset dir="${basedir}/${lib.dir}/log4j/${log4j.version}" 
				 includes="*.jar" />
	</path>

	<target name="clean"
			description="Removes previously built artefacts">
		<delete dir="${build.dir}" />
	</target>

	<target name="init" 
		    depends="clean"
		    description="Sets up working dirs and other tasks">
		<mkdir dir="${basedir}/${build.dir}" />
	</target>

	<target name="compile" 
		    depends="init"
		    description="Compiles application">
		<javac srcdir="${src.dir}" 
			   debug="${debug}" 
			   optimize="${optimize}" 
			   deprecation="${deprecation}" 
			   failonerror="${failonerror}" 
			   destdir="${build.dir}">

			<classpath>
				<path refid="compile-time-jars" />
			</classpath>
		</javac>
	</target>

	<target name="test" 
		    depends="init"
		    description="Runs unit tests">

	</target>
</project>
#compiler
build.compiler=jikes

#dirs
lib.dir=lib
src.dir=src
build.dir=build

#javac options
debug=true
optimze=false
deprecation=true
failonerror=true

#dependencies
log4j.version=1.2.8
junit.version=3.8.1
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to