-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
88 lines (77 loc) · 3.37 KB
/
build.xml
File metadata and controls
88 lines (77 loc) · 3.37 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project name="jnami" basedir="." default="compile" xmlns:ivy="antlib:org.apache.ivy.ant">
<property name="src.dir" value="src" />
<property name="build.dir" value="build" />
<property name="lib.dir" value="lib" />
<property name="classes.dir" value="${build.dir}/classes" />
<property name="jar.dir" value="${build.dir}/jar" />
<!-- Grund-Konfiguration für Ivy -->
<path id="ivy.lib.path">
<fileset dir="${ant.library.dir}" includes="*.jar" />
<!--<fileset dir="/usr/share/java" includes="*.jar" />-->
</path>
<taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path" />
<ivy:settings file="ivysettings.xml" />
<path id="lib.path.id">
<!-- Classpath für Kompilierung -->
<fileset dir="${lib.dir}" excludes="ivy.run" erroronmissingdir="false" />
<files includes="/home/fabian/.java/libwallet/libwallet-0.9.1-fabian.jar" />
</path>
<path id="run.path.id">
<!-- Classpath für Ausführung -->
<path location="${classes.dir}" />
<path refid="lib.path.id" />
<files includes="/home/fabian/.java/libwallet/dbus-java/dbus-java-2.7/libdbus-java-2.7.jar" />
</path>
<target name="clean">
<delete dir="${classes.dir}" />
</target>
<!-- Ivy-Targets -->
<!-- Ivy-Ausführung nicht notwendig, wenn ivy.xml seit letzter Ausführung nicht verändert -->
<uptodate property="ivyRetrieve.notRequired" srcfile="ivy.xml" targetfile="${lib.dir}\ivy.run">
</uptodate>
<target name="resolve" description="retrieve dependencies with ivy" unless="ivyRetrieve.notRequired">
<ivy:retrieve sync="true" type="jar" />
<touch file="${lib.dir}/ivy.run" />
</target>
<target name="report" depends="resolve" description="--> generates a report of dependencies">
<ivy:resolve />
<ivy:report todir="${build.dir}" />
</target>
<!-- Compile-Target -->
<target name="compile" depends="resolve">
<mkdir dir="${classes.dir}" />
<javac srcdir="${src.dir}" destdir="${classes.dir}" classpathref="lib.path.id" includeAntRuntime="false" debug="true" includes="nami/**" />
<!-- Reports für JasperReports kompilieren -->
<taskdef name="jrc" classname="net.sf.jasperreports.ant.JRAntCompileTask" classpathref="lib.path.id" onerror="report" />
<jrc srcdir="${src.dir}/nami" destdir="${classes.dir}/nami">
<classpath refid="run.path.id"/>
<include name="**/*.jrxml"/>
</jrc>
<!-- Nicht kompilierte Dateien (Icons, Konfiguration, XSD, ...) kopieren -->
<sync todir="${classes.dir}">
<fileset dir="${src.dir}">
<exclude name="**/*.java" />
<exclude name="**/*.jrxml" />
</fileset>
<preserveintarget>
<include name="**/*.class"/>
<include name="**/*.jasper"/>
</preserveintarget>
</sync>
<!-- Ausführungs-Classpath in Datei schreiben (wird bei Ausführung von Shell-Skript eingelesen) -->
<property refid="run.path.id" name="classpath.property" />
<echo file="namicli.classpath" message="${classpath.property}" />
</target>
<target name="build" depends="compile">
<buildnumber file="${build.dir}/build.number" />
</target>
<target name="run" depends="compile" description="compile and run the project">
<java classpathref="run.path.id" classname="nami.cli.NamiCli" fork="true" failonerror="true">
<sysproperty key="java.library.path" value="/usr/local/lib/jni" />
</java>
</target>
<target name="echoproperties">
<echoproperties/>
</target>
</project>