-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
33 lines (33 loc) · 1.3 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version = "1.0" encoding="UTF-8"?>
<project name="FRC Image Tools" default="compile.jar">
<property name="version" value="current"/>
<property file="${user.home}/wpilib/java/${version}/ant/build.properties"/>
<property name="build.dir" value="build"/>
<property name="src.dir" value="src"/>
<target name="compile.class"
description="Compile the source code.">
<echo message="Compiling FRC Image Tools..."/>
<mkdir dir="${build.dir}" />
<path id="classpath.path">
<fileset file="${opencv.jar}" />
</path>
<pathconvert property="classpathProp"
refid="classpath.path" />
<echo message="[athena-compile] Compiling ${src.dir} with classpath=${classpathProp} to ${build.dir}" />
<javac srcdir="${src.dir}"
destdir="${build.dir}"
includeAntRuntime="no"
includeJavaRuntime="no"
classpathref="classpath.path"
target="${ant.java.version}"
source="${ant.java.version}"
compiler="javac${ant.java.version}"
debug="true"></javac>
</target>
<target name="compile.jar" depends="compile.class">
<echo message="Compiling imgtools.jar..."/>
<jar destfile="imgtools.jar"
basedir="${build.dir}"
includes="org/team6204/frc/imgtools/*"/>
</target>
</project>