-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
141 lines (131 loc) · 6.21 KB
/
build.xml
File metadata and controls
141 lines (131 loc) · 6.21 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<project name="netkeystore" default="default" xmlns:if="ant:if">
<property name="build.sysclasspath" value="ignore"/>
<property name="build.sysclasspath" value="ignore"/>
<property file="build.properties"/>
<property name="description" value="NetKeyStore"/>
<property name="dist" value="dist"/> <!-- where to build the Jars -->
<property name="classes.main" value="build/main"/> <!-- where to compile the classes -->
<property name="docs" value="docs"/>
<property name="src.main" value="src/main/java"/>
<property name="jar.client-zc" value="${dist}/netkeystore-client-${version}.jar"/>
<property name="jar.client-nozc" value="${dist}/netkeystore-client-nozeroconf-${version}.jar"/>
<property name="jar.server" value="${dist}/netkeystore-server-${version}.jar"/>
<path id="path.build">
<fileset dir="lib" includes="*.jar"/>
</path>
<path id="srcpath.client">
<fileset dir="" includes="*.jar"/>
</path>
<target name="clean">
<delete dir="${classes.main}" />
<delete dir="${dist}" />
<delete dir="${docs}" />
</target>
<target name="build">
<mkdir dir="${classes.main}"/>
<mkdir dir="${classes.main}/client"/>
<mkdir dir="${classes.main}/server"/>
<mkdir dir="${dist}"/>
<javac encoding="utf-8" debug="true" source="8" target="8" destdir="${classes.main}/client">
<src path="${src.main}"/>
<exclude name="com/bfo/netkeystore/server/**"/>
<compilerarg value="-Xlint:unchecked"/>
<compilerarg value="-Xlint:rawtypes"/>
<compilerarg value="-Xlint:deprecation"/>
<compilerarg value="-Xlint:finally"/>
<compilerarg value="-Xlint:overrides"/>
<classpath refid="path.build" />
</javac>
<copy todir="${classes.main}/client">
<fileset dir="${src.main}">
<exclude name="com/bfo/netkeystore/server/**"/>
<exclude name="**/*.java"/>
</fileset>
</copy>
<jar jarfile="${jar.client-zc}" update="false">
<fileset dir="${classes.main}/client" />
<zipgroupfileset file="lib/bfojson-2.1.jar"/>
<zipgroupfileset file="lib/zeroconf-1.0.2.jar"/>
<manifest>
<attribute name="Build-By" value="${user.name}/${java.version}"/>
<attribute name="Build-Host" value="${hostname}"/>
<attribute name="Implementation-Title" value="${ant.project.name}"/>
<attribute name="Implementation-Version" value="${version}"/>
<attribute name="Sealed" value="true"/>
<attribute name="Index" value="true"/>
<attribute name="Permissions" value="all-permissions"/>
<attribute name="Codebase" value="*"/>
<attribute name="Caller-Allowable-Codebase" value="*"/>
<attribute name="Application-Library-Allowable-Codebase" value="*"/>
</manifest>
</jar>
<jar jarfile="${jar.client-nozc}" update="false">
<fileset dir="${classes.main}/client" />
<zipgroupfileset file="lib/bfojson-2.1.jar"/>
<manifest>
<attribute name="Build-By" value="${user.name}/${java.version}"/>
<attribute name="Build-Host" value="${hostname}"/>
<attribute name="Implementation-Title" value="${ant.project.name}"/>
<attribute name="Implementation-Version" value="${version}"/>
<attribute name="Sealed" value="true"/>
<attribute name="Index" value="true"/>
<attribute name="Permissions" value="all-permissions"/>
<attribute name="Codebase" value="*"/>
<attribute name="Caller-Allowable-Codebase" value="*"/>
<attribute name="Application-Library-Allowable-Codebase" value="*"/>
</manifest>
</jar>
<javac encoding="utf-8" debug="true" source="8" target="8" destdir="${classes.main}/server">
<src path="${src.main}"/>
<exclude name="com/bfo/netkeystore/client/**"/>
<compilerarg value="-Xlint:unchecked"/>
<compilerarg value="-Xlint:rawtypes"/>
<compilerarg value="-Xlint:deprecation"/>
<compilerarg value="-Xlint:finally"/>
<compilerarg value="-Xlint:overrides"/>
<classpath refid="path.build" />
</javac>
<copy todir="${classes.main}/server">
<fileset dir="${src.main}">
<exclude name="com/bfo/netkeystore/client/**"/>
<exclude name="**/*.java"/>
</fileset>
</copy>
<jar jarfile="${jar.server}" update="false">
<fileset dir="${classes.main}/server" />
<zipgroupfileset file="lib/bfojson-2.1.jar"/>
<zipgroupfileset file="lib/zeroconf-1.0.2.jar"/>
<manifest>
<attribute name="Build-By" value="${user.name}/${java.version}"/>
<attribute name="Build-Host" value="${hostname}"/>
<attribute name="Main-Class" value="com.bfo.netkeystore.server.Server"/>
<attribute name="Implementation-Title" value="${ant.project.name}"/>
<attribute name="Implementation-Version" value="${version}"/>
<attribute name="Application-Name" value="NetKeyStore Server"/>
<attribute name="Sealed" value="true"/>
<attribute name="Index" value="true"/>
<attribute name="Permissions" value="all-permissions"/>
<attribute name="Codebase" value="*"/>
<attribute name="Caller-Allowable-Codebase" value="*"/>
<attribute name="Application-Library-Allowable-Codebase" value="*"/>
</manifest>
</jar>
</target>
<target name="javadoc">
<mkdir dir="${docs}"/>
<condition property="javadoc.additionalparam" value="-notimestamp"><matches pattern="^1.8" string="${java.version}"/></condition>
<property name="javadoc.additionalparam" value="-notimestamp --ignore-source-errors"/>
<javadoc destdir="${docs}" access="protected" author="false" version="false" windowtitle="${description} ${version}" charset="UTF-8" encoding="UTF-8" docencoding="UTF-8" additionalparam="${javadoc.additionalparam}" use="true" breakiterator="true">
<sourcefiles>
<fileset dir="${src.main}"/>
</sourcefiles>
<doctitle><![CDATA[${description} ${version}]]></doctitle>
<header><![CDATA[${description} ${version}]]></header>
<link href="https://docs.oracle.com/en/java/javase/11/docs/api/"/>
<link href="https://faceless2.github.io/json/docs/"/>
<link href="https://faceless2.github.io/zeroconf/docs/"/>
</javadoc>
</target>
<target name="default" depends="build, javadoc">
</target>
</project>