2007-10-25 14:56:28 +02:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<project name="Energy Assessment Demo" default="help" basedir=".">
|
|
|
|
<property name="java" location="src"/>
|
|
|
|
<property name="build" location="build"/>
|
|
|
|
<property name="lib" location="lib"/>
|
2007-11-01 18:34:36 +01:00
|
|
|
<property name="dist" location="dist"/>
|
2007-10-25 14:56:28 +02:00
|
|
|
<property name="args" value=""/>
|
|
|
|
|
|
|
|
<target name="init">
|
|
|
|
<tstamp/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="help">
|
|
|
|
<echo>
|
|
|
|
Examples:
|
|
|
|
|
|
|
|
> ant run -Dargs="com1"
|
|
|
|
Starts demo application listening on COM1 and tracking the first node.
|
|
|
|
|
|
|
|
</echo>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="compile" depends="init">
|
|
|
|
<mkdir dir="${build}"/>
|
|
|
|
<javac srcdir="${java}" destdir="${build}" debug="on">
|
|
|
|
<classpath>
|
|
|
|
<pathelement path="."/>
|
|
|
|
<pathelement path="${lib}/jfreechart-1.0.6.jar"/>
|
|
|
|
<pathelement path="${lib}/jcommon-1.0.10.jar"/>
|
|
|
|
</classpath>
|
|
|
|
</javac>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="clean" depends="init">
|
|
|
|
<delete dir="${build}"/>
|
2007-11-01 18:34:36 +01:00
|
|
|
<delete dir="${dist}"/>
|
2007-10-25 14:56:28 +02:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="run" depends="init, compile">
|
|
|
|
<java fork="yes" dir="${build}" classname="Demo">
|
|
|
|
<arg line="${args}"/>
|
|
|
|
<classpath>
|
|
|
|
<pathelement path="${build}"/>
|
|
|
|
<pathelement path="${lib}/jfreechart-1.0.6.jar"/>
|
|
|
|
<pathelement path="${lib}/jcommon-1.0.10.jar"/>
|
|
|
|
</classpath>
|
|
|
|
</java>
|
|
|
|
</target>
|
|
|
|
|
2007-11-01 18:34:36 +01:00
|
|
|
<target name="jar" depends="clean, init, compile">
|
|
|
|
<mkdir dir="${dist}"/>
|
|
|
|
<jar destfile="${dist}/energest.jar" basedir="${build}">
|
|
|
|
<fileset dir="${build}"/>
|
|
|
|
<manifest>
|
|
|
|
<attribute name="Main-Class" value="Demo"/>
|
|
|
|
<attribute name="Class-Path" value=". jcommon-1.0.10.jar jfreechart-1.0.6.jar"/>
|
|
|
|
</manifest>
|
|
|
|
</jar>
|
|
|
|
<mkdir dir="${dist}"/>
|
|
|
|
<copy todir="${dist}">
|
|
|
|
<fileset dir="${lib}"/>
|
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
|
2007-10-25 14:56:28 +02:00
|
|
|
</project>
|