-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
49 lines (44 loc) · 1.47 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="org.lejos.ev3.example" default="upload">
<property file="local.properties" />
<property file="build.properties" />
<path id="libraries.path">
<fileset dir="${ev3.home}/lib">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="clean" description="delete old files">
<delete dir="${build.dir}"/>
</target>
<target name="compile" depends="clean" description="compile the source ">
<!-- Compile the java code from ${source.dir} to ${classes.dir} -->
<mkdir dir="${classes.dir}" />
<javac
srcdir="${source.dir}"
source="${source.version}"
target="${target.version}"
destdir="${classes.dir}"
debug="true"
includeAntRuntime="false"
includeJavaRuntime="false"
verbose="false"
>
<classpath refid="libraries.path" />
<!-- enable warnings -->
<!--<compilerarg value="-Xlint:${source.warn}" />-->
</javac>
</target>
<target name="jar" depends="compile">
<jar destfile="${output.jar}" basedir="${classes.dir}">
<manifest>
<attribute name="Main-Class" value="${main.class}"/>
<attribute name="Class-Path" value="${class.path}"/>
</manifest>
</jar>
</target>
<target name="upload" depends="jar">
<scp todir="${credentials}@${ev3.host}:${programs.dir}" trust="true">
<fileset file="${output.jar}"/>
</scp>
</target>
</project>