-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.xml
65 lines (57 loc) · 1.75 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
58
59
60
61
62
63
64
65
<?xml version="1.0" encoding="UTF-8"?>
<project name = "Paquete análisis BGP-4" default = "rebuild">
<property name = "outputdir" value = "."/>
<property name = "classdir" value = "./bin" />
<property name = "sourcedir" value = "./src" />
<property name = "debug" value = "false" />
<property name = "mrt.main.class" value = "org.java-mrt.progs.route_btoa" />
<target name = "cleansrc" description = "Borra los backups">
<tstamp/>
<delete verbose="true">
<fileset dir = "${sourcedir}"
defaultexcludes="no"
includes = "**/*~" />
</delete>
</target>
<target name = "clean"
depends="cleansrc"
description = "Borra las clases">
<tstamp/>
<delete dir = "${classdir}"/>
</target>
<target name = "distclean"
depends = "clean"
description = "Borra el jar y los directorios">
<tstamp/>
<!-- delete dir = "${outputdir}"/ -->
<delete verbose="true">
<fileset dir="${outputdir}">
<include name="mrt.jar" />
</fileset>
</delete>
</target>
<target name = "jar"
depends = "compile"
description = "Create .jar for command line utils">
<mkdir dir="${outputdir}" />
<jar jarfile = "${outputdir}/mrt.jar"
basedir ="${classdir}"
update = "yes">
<manifest>
<attribute name="Main-Class" value="${mrt.main.class}" />
</manifest>
</jar>
</target>
<target name = "compile"
description = "Compile the org.mrt library">
<mkdir dir = "${classdir}"/>
<javac srcdir ="${sourcedir}/org/javamrt"
includes="**/*.java"
includeantruntime="false"
destdir = "${classdir}"
debug="${debug}">
</javac>
</target>
<target name = "rebuild" depends = "distclean,jar" />
<target name = "all" depends = "jar" />
</project>