-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.xml
57 lines (50 loc) · 1.77 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
50
51
52
53
54
55
56
57
<?xml version="1.0" encoding="UTF-8"?>
<project name="waveform-generator" default="build-full" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant">
<property file="build.properties"/>
<target name="resolve">
<ivy:configure />
<ivy:resolve file="ivy.xml" />
<ivy:retrieve pattern="lib/[artifact]-[revision].[ext]" />
</target>
<property name="source.dir" value="src"/>
<path id="classpath">
<fileset dir="./lib">
<include name="*.jar"/>
</fileset>
</path>
<target name="build">
<delete dir="tmp/classes" />
<mkdir dir="tmp/classes" />
<mkdir dir="dist"/>
<javac srcdir="${source.dir}" destdir="tmp/classes" target="1.7" debug="true" debuglevel="lines,vars,source">
<classpath refid="classpath" />
</javac>
<copy todir="tmp/classes">
<fileset dir="src">
<include name="**/*.properties"/>
<include name="**/*.xml"/>
</fileset>
</copy>
<jar destfile="dist/waveform-generator-${version}.jar" basedir="tmp/classes">
<manifest>
<section name="Waveform Generator">
<attribute name="Specification-Title" value="Wavefomr Generator ${version}"/>
</section>
</manifest>
</jar>
<delete dir="tmp" />
</target>
<target name="javadoc">
<javadoc packagenames="org.electronism.*"
sourcepath="src"
defaultexcludes="yes"
destdir="documentation"
author="true"
version="true"
use="true"
windowtitle="Waveform Generator Api">
</javadoc>
</target>
<target name="build-full" depends="build, javadoc">
</target>
</project>