-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathbuild.xml
52 lines (43 loc) · 1.83 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="nssdk" default="all">
<dirname property="basedir" file="${ant.file}"/>
<property name="build.dir" value="${basedir}/build"/>
<property name="sdk.version" value="3.6"/>
<target name="clean">
<delete dir="${build.dir}"/>
</target>
<target name="compile">
<mkdir dir="${build.dir}/classes"/>
<javac srcdir="src" destdir="build/classes"/>
</target>
<target name="jar" depends="compile" description="Generate the jar file">
<mkdir dir="build/jar"/>
<jar destfile="${build.dir}/jar/NetStorageKit.jar" basedir="${build.dir}/classes" excludes="**/*Test.class CMS.class">
<manifest>
<section name="NetStorageKit">
<attribute name="Specification-Version" value="${sdk.version}"/>
<attribute name="Specification-Vendor" value="Akamai"/>
</section>
</manifest>
</jar>
</target>
<target name="doc" description="Generate the javadoc for the NetStorageKit">
<javadoc packagenames="com.akamai.netstorage.*"
sourcepath="src"
defaultexcludes="yes"
destdir="${build.dir}/docs"
author="true"
version="true"
use="true"
access="private"
windowtitle="NetStorageKit for Akamai HTTP CMS API">
<doctitle><![CDATA[<h1>NetStorageKit for Java</h1>]]></doctitle>
<bottom><![CDATA[<i>Copyright © 2014 Akamai Technologies, Inc. All Rights Reserved.</i>]]></bottom>
</javadoc>
</target>
<target name="cms" depends="compile">
<javac srcdir="example" destdir="build/classes"/>
<java classpath="${build.dir}/classes" classname="CMS" fork="true"/>
</target>
<target name="all" depends="clean,jar,doc"/>
</project>