-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
96 lines (71 loc) · 2.89 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
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
93
94
95
96
<?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="src" location="src" />
<property name="lib" location="lib" />
<property name="build" location="build" />
<property name="dist" location="dist" />
<property name="launch4j.dir" location="../launch4j" />
<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 " >
<!--
<ivy:cachepath pathid="compile.path">
<dependency>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
<version>2.3.2</version>
</dependency>
</ivy:cachepath>
-->
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build}" debug="true" encoding="iso-8859-1" failonerror="false">
<classpath>
<pathelement path="lib/gral-core-0.11.jar"/>
<pathelement path="lib/junit-4.13.2.jar"/>
</classpath>
</javac>
<copy todir="${build}/icons">
<fileset dir="${src}/icons"/>
</copy>
<copy todir="${build}/images">
<fileset dir="${src}/images"/>
</copy>
</target>
<target name="exe">
<taskdef name="launch4j" classname="net.sf.launch4j.ant.Launch4jTask" classpath="${launch4j.dir}/launch4j.jar
:${launch4j.dir}/lib/xstream.jar" />
<launch4j configFile="./l4j.xml" />
</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="Master"/>
<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>