Jriver/
Jriver/src/org/jriver/core/
Jriver/src/org/jriver/core/interactive/
Jriver/src/org/jriver/lib/
Jriver/src/org/jriver/lib/daemon/
Jriver/src/org/jriver/lib/events/
Jriver/src/org/jriver/lib/interfaces/
Jriver/src/org/jriver/lib/std/
Jriver/src/org/jriver/telnet/
Jriver/src/org/jriver/telnet/.svn/
Jriver/src/org/jriver/telnet/.svn/prop-base/
Jriver/src/org/jriver/telnet/.svn/text-base/
<?xml version="1.0"?>
<project name="JRiver" default="compile" basedir=".">
	<property name="src" value="."/>
	<property name="build" value="build"/>
	<property name="dist" value="dist"/>
	<!--<property name="security" value="-Djava.security.manager"/>-->
	<property name="security" value=""/>
	<property name="mainClass" value="org.jriver.core.MudDriver"/>

	<target name="init">
		<tstamp/>
		<mkdir dir="${build}"/>
	</target>

	<target name="compile" depends="init"
		description="Compile the source files">
		<javac srcdir="${src}" destdir="${build}"/>
	</target>

	<target name="dist" depends="compile"
        description="generate the distribution" >
        <mkdir dir="${dist}"/>

    	<!-- Put everything in build dir into the JRiver-${DSTAMP}.jar file -->
    	<jar jarfile="${dist}/JRiver-${DSTAMP}.jar" basedir="${build}" update="true">
    		<include name="**/*.class"/>
    		<include name="../*.properties"/>
    		<!-- Including the src code doesn't seem to work currently :( -->
    		<include name="../**/*.java"/>
    		<manifest>
    			<attribute name="Main-Class" value="${mainClass}"/>
    		</manifest>
    	</jar>
  	</target>

	<target name="clean"
		description="clean up" >
		<!-- Delete the ${build} and ${dist} directory trees -->
		<delete dir="${build}"/>
		<delete dir="${dist}"/>
	</target>
	
	<target name="startmud" depends="compile"
		description="Start running the driver" >
		<java classname="org.jriver.core.MudDriver" fork="true">
			<classpath>
				<pathelement path="${build}"/>
			</classpath>
			<!--<jvmarg value="${security}" />-->
		</java>
	</target>
</project>