Update of /cvsroot/javaowl/Reasoner
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27952
Added Files:
build.xml
Log Message:
Added new reasoner files.
--- NEW FILE: build.xml ---
<project name="Reasoner" default="compile" basedir=".">
<!-- set global properties for this build -->
<property file="build.properties"/>
<property name="tests" location="tests"/>
<property name="src" location="src"/>
<property name="lib" location="lib"/>
<property name="build" location="build"/>
<property name="build.tests" location="build.tests"/>
<property name="doc" location="doc"/>
<property name="dist" location="dist"/>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
<mkdir dir="${build.tests}"/>
<mkdir dir="${doc}"/>
<mkdir dir="${dist}"/>
</target>
<path id="project.class.path">
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="compile" depends="init"
description="compile the source " >
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build}" source="1.4" debug="on">
<classpath refid="project.class.path"/>
</javac>
</target>
<target name="compile-tests" depends="init"
description="compile the tests">
<javac srcdir="${tests}" destdir="${build.tests}" source="1.4" debug="on">
<classpath>
<fileset dir="${lib}" includes="*.jar"/>
<pathelement location="${build}"/>
</classpath>
</javac>
</target>
<target name="javadoc" depends="compile"
description="generate documentation">
<!-- Generate the API documentation from ${src} into ${doc} -->
<javadoc sourcepath="${src}" destdir="${doc}" source="1.4" />
</target>
<target name="jar" depends="compile">
<jar jarfile="dist/model-editor.jar"
basedir="build"
includes="**"/>
</target>
<target name="run" depends="compile">
<java fork="yes" classname="org.javaowl.editor.swing.Editor">
<jvmarg value="-Xmx128m"/>
<jvmarg value="-Xms128m"/>
<jvmarg value="-verbose:gc"/>
<arg value="testdata/pru6o.n3"/>
<arg value="testdata/pru6d.prevayler"/>
<arg value="uri:pru6:o#"/>
<classpath>
<fileset dir="${lib}" includes="*.jar"/>
<pathelement location="${build}"/>
</classpath>
</java>
</target>
<target name="test" depends="compile, compile-tests">
<junit fork="yes" printsummary="yes">
<classpath>
<fileset dir="${lib}" includes="*.jar"/>
<pathelement location="${build}"/>
<pathelement location="${build.tests}"/>
</classpath>
<test name="org.javaowl.TestPackage"/>
</junit>
</target>
<target name="clean"
description="clean up" >
<!-- Delete the ${build}, ${doc} and ${dist} directory trees -->
<delete dir="${build.tests}"/>
<delete dir="${build}"/>
<delete dir="${doc}"/>
<delete dir="${dist}"/>
</target>
</project>
|