-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathadm.xml
85 lines (73 loc) · 2.96 KB
/
adm.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
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="adm" default="all">
<!-- Uncomment the following property if no tests compilation is needed -->
<!--
<property name="skip.tests" value="true"/>
-->
<!-- Compiler options -->
<property name="compiler.debug" value="on"/>
<property name="compiler.generate.no.warnings" value="off"/>
<property name="compiler.args" value=""/>
<property name="compiler.max.memory" value="128m"/>
<patternset id="compiler.excluded"/>
<patternset id="compiler.resources">
<include name="**/?*.properties"/>
<include name="**/?*.xml"/>
<include name="**/?*.gif"/>
<include name="**/?*.png"/>
<include name="**/?*.jpeg"/>
<include name="**/?*.jpg"/>
<include name="**/?*.html"/>
<include name="**/?*.dtd"/>
<include name="**/?*.tld"/>
</patternset>
<!-- JDK definition -->
<property name="project.jdk.home" value="${java.home}"/>
<path id="jdk.classpath">
<fileset dir="${project.jdk.home}">
<include name="jre/lib/jce.jar"/>
<include name="jre/lib/javaws.jar"/>
<include name="jre/lib/jsse.jar"/>
<include name="jre/lib/deploy.jar"/>
<include name="jre/lib/charsets.jar"/>
<include name="jre/lib/plugin.jar"/>
<include name="jre/lib/rt.jar"/>
<include name="jre/lib/ext/sunjce_provider.jar"/>
<include name="jre/lib/ext/sunpkcs11.jar"/>
<include name="jre/lib/ext/dnsns.jar"/>
<include name="jre/lib/ext/localedata.jar"/>
</fileset>
</path>
<property name="project.jdk.classpath" value="jdk.classpath"/>
<!-- Project Libraries -->
<!-- Global Libraries -->
<import file="${basedir}/module_adm.xml"/>
<target name="tests" description="Perform tests on the environment">
<echo message="java.version: ${java.version}"/>
<condition property="javaVersionIs1.5">
<contains string="${java.version}" substring="1.5"/>
</condition>
<fail message="Java 1.5 required." unless="javaVersionIs1.5"/>
<echo message="java.vendor: ${java.vendor}"/>
<echo message="java.home: ${java.home}"/>
</target>
<target name="init" description="Build initialization">
<!-- Perform any build initialization in this target -->
</target>
<target name="clean" depends="clean.module.adm" description="cleanup all"/>
<target name="all" depends="tests, init, clean, compile.module.adm" description="build all"/>
<target name="run" depends="compile.module.adm" description="run adm">
<java classname="org.hamnett.adm.Main" fork="true">
<classpath>
<pathelement location="classes"/>
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
<fileset dir="native/swt/gtk-linux">
<include name="**/*.jar"/>
</fileset>
</classpath>
<jvmarg value="-Djava.library.path=/usr/lib/jni:${basedir}/native/swt/gtk-linux/HEAD"/>
</java>
</target>
</project>