File apiguardian-build.xml of Package apiguardian (Revision 486bb6ec1ce14097949de38fff50b19c)
Currently displaying revision 486bb6ec1ce14097949de38fff50b19c , Show latest
xxxxxxxxxx
1
2
3
<project name="apiguardian-api" default="package" basedir=".">
4
5
<!-- ====================================================================== -->
6
<!-- Build environment properties -->
7
<!-- ====================================================================== -->
8
9
<property file="build.properties"/>
10
11
<property name="project.groupId" value="org.apiguardian"/>
12
<property name="project.artifactId" value="apiguardian-api"/>
13
<property name="project.version" value="1.0.0"/>
14
<property name="project.name" value="${project.groupId}:${project.artifactId}"/>
15
<property name="project.description" value="@API Guardian"/>
16
17
<property name="build.finalName" value="${project.artifactId}-${project.version}"/>
18
<property name="build.dir" value="target"/>
19
<property name="build.outputDir" value="${build.dir}/classes"/>
20
<property name="build.srcDir" value="src/main/java"/>
21
<property name="build.resourceDir" value="src/main/resources"/>
22
23
<property name="reporting.outputDirectory" value="${build.dir}/site"/>
24
25
<property name="compiler.source" value="1.8"/>
26
<property name="compiler.target" value="${compiler.source}"/>
27
28
<!-- ====================================================================== -->
29
<!-- Cleaning up target -->
30
<!-- ====================================================================== -->
31
32
<target name="clean" description="Clean the output directory">
33
<delete dir="${build.dir}"/>
34
</target>
35
36
<!-- ====================================================================== -->
37
<!-- Compilation target -->
38
<!-- ====================================================================== -->
39
40
<target name="compile" description="Compile the code">
41
<mkdir dir="${build.outputDir}"/>
42
<javac destdir="${build.outputDir}"
43
nowarn="false"
44
debug="true"
45
optimize="false"
46
deprecation="true"
47
target="${compiler.target}"
48
verbose="false"
49
fork="false"
50
source="${compiler.source}">
51
<src>
52
<pathelement location="${build.srcDir}"/>
53
</src>
54
</javac>
55
</target>
56
57
<!-- ====================================================================== -->
58
<!-- Javadoc target -->
59
<!-- ====================================================================== -->
60
61
<target name="javadoc" description="Generates the Javadoc of the application">
62
<javadoc sourcepath="${build.srcDir}"
63
packagenames="*"
64
destdir="${reporting.outputDirectory}/apidocs"
65
access="protected"
66
old="false"
67
verbose="false"
68
version="true"
69
use="true"
70
author="true"
71
splitindex="false"
72
nodeprecated="false"
73
nodeprecatedlist="false"
74
notree="false"
75
noindex="false"
76
nohelp="false"
77
nonavbar="false"
78
serialwarn="false"
79
source="${compiler.source}"
80
linksource="false"
81
breakiterator="false"/>
82
</target>
83
84
<!-- ====================================================================== -->
85
<!-- Package target -->
86
<!-- ====================================================================== -->
87
88
<target name="package" depends="compile" description="Package the application">
89
<jar jarfile="${build.dir}/${build.finalName}.jar"
90
compress="true"
91
index="false"
92
basedir="${build.outputDir}"
93
excludes="**/package.html">
94
<manifest>
95
<attribute name="Automatic-Module-Name" value="${project.artifactId}"/>
96
<attribute name="Implementation-Vendor" value="apiguardian.org"/>
97
<attribute name="Implementation-Version" value="${project.version}"/>
98
<attribute name="Specification-Title" value="${project.artifactId}"/>
99
<attribute name="Specification-Vendor" value="apiguardian.org"/>
100
<attribute name="Specification-Version" value="${project.version}"/>
101
<!-- OSGi metadata required by Eclipse -->
102
<attribute name="Bundle-ManifestVersion" value="2"/>
103
<attribute name="Bundle-SymbolicName" value="org.apiguardian"/>
104
<attribute name="Bundle-Version" value="${project.version}"/>
105
<attribute name="Export-Package" value="org.apiguardian.api;version="${project.version}""/>
106
</manifest>
107
</jar>
108
</target>
109
110
<!-- ====================================================================== -->
111
<!-- A dummy target for the package named after the type it creates -->
112
<!-- ====================================================================== -->
113
114
<target name="jar" depends="package" description="Builds the jar for the application"/>
115
116
</project>
117