forked from rapid7/nexpose_java_api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
73 lines (71 loc) · 3.06 KB
/
build.xml
File metadata and controls
73 lines (71 loc) · 3.06 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
<?xml version="1.0"?>
<!--========================================================================
COPYRIGHT (C) 2007, Rapid7 LLC, Boston, MA, USA. All rights reserved.
This material contains unpublished, copyrighted work including
confidential and proprietary information of Rapid7.
$Id: build.xml,v 1.0 2009/12/29 10:23:00 lvarela Exp $
Top level build file for the API client project.
=========================================================================-->
<project basedir="." default="jar" name="api-client">
<!-- Set the build date before importing the properties file -->
<tstamp>
<format property="api-client.build.date" pattern="yyyy-MM-dd"/>
</tstamp>
<property environment="env"/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.6"/>
<property name="source" value="1.6"/>
<path id="api-client.classpath">
<pathelement location="bin"/>
</path>
<!--inits the compilation by creating the bin directory-->
<target name="init">
<mkdir dir="bin"/>
<copy includeemptydirs="false" todir="bin">
<fileset dir="." excludes="**/*.launch, **/*.java, **/*.classpath, **/*.project, .git/**, .settings/**, , **/*build.xml, **/*.jar"/>
</copy>
</target>
<!-- deletes the bin directory -->
<target name="clean">
<delete dir="bin"/>
</target>
<!-- compiles the code -->
<target depends="init" name="compile">
<echo message="${ant.project.name}: ${ant.file} : ${api-client.build.date}"/>
<javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}">
<src path="."/>
<classpath refid="api-client.classpath"/>
</javac>
</target>
<!-- creates a jar file-->
<target depends="compile" name="jar">
<jar destfile="api-client.jar">
<fileset dir="bin"/>
<manifest>
<!-- Who is building this jar? -->
<attribute name="Built-By" value="${user.name}"/>
<!-- Information about the program itself -->
<attribute name="Implementation-Vendor" value="Rapid7 LLC."/>
<attribute name="Implementation-Title" value="API-Client to access NeXpose through the API"/>
<attribute name="Implementation-Version" value="1.0"/>
</manifest>
</jar>
</target>
<!-- creates the javadoc for the project -->
<target name="javadoc" depends="compile" description="Build the javadocs for the source code.">
<property name="doc" value="doc"/>
<javadoc destdir="${doc}"
classpathref="api-client.classpath"
packagenames="org.rapid7.nexpose.api.*"
sourcepath="."
Author="true" version="true" Use="true" noindex="true"
Windowtitle="API client"
Doctitle="API Client"
bottom="Created by Rapid7 LLC.">
<arg line="-private" />
<fileset dir=".">
<include name="**/*.java"/>
</fileset>
</javadoc>
</target>
</project>