+ Added RPiTemperatureSensor + Updated pi4j-1.0 to pi4j-1.1-SNAPSHOT that includes support for 1-Wire communication and various sensors. Former-commit-id: 6db4193283bf3fc604fcf250d7a321ba8b70b6a4
79 lines
2.7 KiB
XML
Executable file
79 lines
2.7 KiB
XML
Executable file
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project name="Hal" default="" >
|
|
|
|
<!-- ________________________ PROPERTIES AND SETTINGS ________________________ -->
|
|
|
|
<!--common properties-->
|
|
<property name="gitRoot" value="." />
|
|
<property name="srcDir" value="${gitRoot}/src" />
|
|
<property name="testDir" value="${gitRoot}/test" />
|
|
<property name="libDir" value="${gitRoot}/lib" />
|
|
<property name="buildDir" value="${gitRoot}/build" />
|
|
|
|
<!--define standard arduments for javac-->
|
|
<presetdef name="javac">
|
|
<javac includeantruntime="false" />
|
|
</presetdef>
|
|
|
|
<!-- ________________________ CLASSPATHS ________________________ -->
|
|
|
|
<!--classpath included when building-->
|
|
<path id="classpath.build">
|
|
<pathelement location="${libDir}/*" />
|
|
</path>
|
|
|
|
<!-- ________________________ PUBLIC TARGETS ________________________ -->
|
|
|
|
<target name="run-remote-sensor" depends="">
|
|
<java fork="true" failonerror="true" classname="se.hal.plugin.tellstick.TelstickSerialCommTest">
|
|
<classpath>
|
|
<pathelement path="${buildDir}/hal.jar"/> <!--wildcard may not be platform independent, ok?-->
|
|
<pathelement path="${libDir}/*"/> <!--wildcard may not be platform independent, ok?-->
|
|
</classpath>
|
|
</java>
|
|
</target>
|
|
|
|
<target name="run-main-server" depends="">
|
|
<java fork="true" failonerror="true" classname="se.hal.HalServer">
|
|
<classpath>
|
|
<pathelement path="${buildDir}/hal.jar"/> <!--wildcard may not be platform independent, ok?-->
|
|
<pathelement path="${libDir}/*"/> <!--wildcard may not be platform independent, ok?-->
|
|
</classpath>
|
|
</java>
|
|
</target>
|
|
|
|
<target name="clear-aggr-data-from-db" depends="">
|
|
<exec executable="sqlite3">
|
|
<arg line="hal.db 'DELETE FROM sensor_data_aggr'" />
|
|
</exec>
|
|
</target>
|
|
|
|
<!--clean all build paths-->
|
|
<target name="clean">
|
|
<delete includeemptydirs="true" failonerror="false">
|
|
<fileset dir="${buildDir}" includes="**/*"/>
|
|
</delete>
|
|
</target>
|
|
|
|
<!--build product code-->
|
|
<target name="build" depends="build-dependencies">
|
|
<mkdir dir="${buildDir}" />
|
|
<javac srcdir="${srcDir}" destdir="${buildDir}" fork="yes">
|
|
<include name="**/*.java" />
|
|
<exclude name="se/hal/tts/GoogleTTSClient.java" />
|
|
<classpath refid="classpath.build" />
|
|
</javac>
|
|
<javac srcdir="${testDir}" destdir="${buildDir}" fork="yes">
|
|
<include name="**/*.java" />
|
|
<exclude name="se/hal/test/JarvisSyntersizerTest.java" />
|
|
<classpath refid="classpath.build" />
|
|
</javac>
|
|
<jar destfile="${buildDir}/hal.jar" basedir="${buildDir}" excludes="hal.jar" />
|
|
</target>
|
|
|
|
<target name="build-dependencies">
|
|
<mkdir dir="${buildDir}" />
|
|
<get src="http://repo.koc.se/zutil-java.git/blob/master/Zutil.jar" dest="${libDir}" verbose="true" usetimestamp="true"/>
|
|
</target>
|
|
|
|
</project>
|