-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.xml
More file actions
90 lines (64 loc) · 2.4 KB
/
Copy pathbuild.xml
File metadata and controls
90 lines (64 loc) · 2.4 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="dist"
name="Create Runnable Jar for Project Onyx" xmlns:ivy="antlib:org.apache.ivy.ant">
<property name="javac.release" value="9"/>
<property name="src" location="src" />
<property name="lib" location="lib" />
<property name="build" location="build" />
<property name="dist" location="dist" />
<available classname="org.apache.ivy.Main" property="ivy.installed"/>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init"
description="compile the source " >
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build}" debug="true" release="${javac.release}" encoding="iso-8859-1" includeantruntime="false" failonerror="true">
<classpath>
<pathelement path="lib/gral-core-0.11.jar"/>
<pathelement path="lib/junit-4.13.2.jar"/>
<pathelement path="lib/xchart-3.8.8.jar"/>
</classpath>
</javac>
<copy todir="${build}/icons">
<fileset dir="${src}/icons"/>
</copy>
<copy todir="${build}/images">
<fileset dir="${src}/images"/>
</copy>
<copy todir="${build}/data">
<fileset dir="${src}/data"/>
</copy>
<copy todir="${build}/i18n">
<fileset dir="${src}/i18n" includes="*.properties"/>
</copy>
</target>
<!--this file was created by Eclipse Runnable JAR Export Wizard-->
<!--ANT 1.7 is required -->
<target name="dist" depends="compile">
<echo>Delete old JAR file</echo>
<delete file="./onyx.jar"/>
<echo>Updating version number in build.num</echo>
<property name="version.num" value="1.0"/>
<buildnumber file="build.num"/>
<tstamp>
<format property="TODAY" pattern="yyyy-MM-dd HH:mm:ss" />
</tstamp>
<echo>Creating JAR</echo>
<jar destfile="${dist}/onyx.jar" filesetmanifest="mergewithoutmain" includes="**/*.class">
<manifest>
<attribute name="Built-By" value="Andreas Brandmaier"/>
<attribute name="Main-Class" value="Main"/>
<attribute name="Class-Path" value="."/>
<attribute name="Implementation-Version"
value="${version.num}-b${build.number}"/>
<attribute name="Built-Date" value="${TODAY}"/>
</manifest>
<fileset dir="${build}"
excludes="test" />
</jar>
</target>
</project>