-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
92 lines (72 loc) · 3.01 KB
/
Copy pathbuild.xml
File metadata and controls
92 lines (72 loc) · 3.01 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!--
$Id: jgraphx-build.xml,v 1.2 2013/09/25 15:59:15 gaudenz Exp $
Copyright (c) 2008 Gaudenz Alder
-->
<!-- ===================== Project Properties =========================== -->
<project name="expline" default="all" basedir="." xmlns:artifact="antlib:org.apache.maven.artifact.ant">
<property name="product.name" value="ExpLine"/>
<property name="product.version" value="0.1.0"/>
<property name="product.description" value="Expline is a tool to model experiment lines"/>
<property name="all.jar" value="expline.jar"/>
<property name="sources.jar" value="jgraphx.jar"/>
<!-- ===================== Project Environment =========================== -->
<property name="source.home" value="${basedir}/src"/>
<!-- ==================== Compilation Options ==================== -->
<property name="compile.debug" value="false"/>
<property name="compile.deprecation" value="false"/>
<property name="compile.optimize" value="true"/>
<!-- ==================== All ==================== -->
<target name="all" depends="build"
description="Clean up and build the project"/>
<!-- ==================== Clean ==================== -->
<target name="clean" description="Deletes all generated files and directories">
<delete dir="${basedir}/classes"/>
<delete dir="${basedir}/jar"/>
</target>
<!-- ==================== Init ==================== -->
<target name="init" description="Initializes the build">
<tstamp/>
<mkdir dir="${basedir}/classes"/>
<mkdir dir="${basedir}/lib"/>
</target>
<!-- ==================== Compile ==================== -->
<target name="compile" depends="init" description="Compiles the source tree">
<javac srcdir="${source.home}"
debug="${compile.debug}"
deprecation="${compile.deprecation}"
optimize="${compile.optimize}"
destdir="${basedir}/classes">
<classpath>
<pathelement path="${basedir}/classes"/>
<pathelement path="${basedir}/lib/${sources.jar}"/>
</classpath>
</javac>
</target>
<!-- ==================== Build ==================== -->
<target name="build" depends="compile" description="Builds all Java archives (JARs)">
<jar jarfile="${basedir}/jar/${all.jar}">
<manifest>
<attribute name="Vendor" value="UFRJ/COPPE"/>
<attribute name="Bundle-Version" value="${product.version}"/>
<attribute name="Bundle-SymbolicName" value="br.ufrj.cos.expline"/>
<attribute name="Main-Class" value="br.ufrj.cos.expline.main.Main"/>
</manifest>
<fileset dir="${source.home}">
<exclude name="**/*.java"/>
</fileset>
<fileset dir="${basedir}/classes">
<include name="br/ufrj/**"/>
</fileset>
</jar>
<delete dir="${basedir}/classes"/>
</target>
<!-- ==================== Run ==================== -->
<target name="run" depends="build" description="Runs the ExpLine">
<java fork="true" classname="br.ufrj.cos.expline.main.Main">
<classpath>
<pathelement path="${basedir}/jar/${all.jar}"/>
<pathelement path="${basedir}/lib/${sources.jar}"/>
</classpath>
</java>
</target>
</project>