-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
53 lines (46 loc) · 2.07 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
53
<?xml version="1.0" encoding="UTF-8"?>
<project name="iOS Artwork Analyzer" default="javadoc">
<property name="libraryVersion" value="1.0" />
<!-- Directories -->
<property name="librarySourceDir" value="source" />
<property name="dependenciesDir" value="dependencies" />
<property name="buildDir" value=".build" />
<property name="buildClassesDir" value="${buildDir}/classes" />
<property name="buildJavadocDir" value="${buildDir}/javadoc" />
<!-- Java switches -->
<property name="javaVersion" value="1.6" />
<property name="javaDebug" value="true" />
<property name="javaDebugLevel" value="lines,vars,source" />
<!-- Classpaths -->
<path id="compilationClasspath">
<fileset dir="${dependenciesDir}">
<include name="**/*.jar" />
</fileset>
</path>
<target name="compile" description="Compiles library code">
<mkdir dir="${buildClassesDir}" />
<echo message="Compiling..." />
<javac srcdir="${librarySourceDir}" destdir="${buildClassesDir}" source="${javaVersion}" target="${javaVersion}"
debug="${javaDebug}" debuglevel="${javaDebugLevel}">
<classpath refid="compilationClasspath"/>
</javac>
</target>
<target name="javadoc" description="Builds Javadoc">
<echo message="Building Javadoc..." />
<mkdir dir="${buildJavadocDir}" />
<javadoc destdir="${buildJavadocDir}" author="true" version="true" use="true" windowtitle="iOS Artwork Analyzer" access="public" linksource="yes">
<packageset dir="${librarySourceDir}" defaultexcludes="yes" />
<doctitle><![CDATA[<h1>iOS Artwork Analyzer ${libraryVersion}</h1>]]></doctitle>
<bottom><![CDATA[<i>iOS Artwork Analyzer ${libraryVersion}. Copyright © 2013 Mark Allen. All Rights Reserved.</i>]]></bottom>
<link href="http://docs.oracle.com/javase/7/docs/api/" />
<classpath refid="compilationClasspath"/>
</javadoc>
</target>
<target name="clean" description="Gets rid of build artifacts">
<echo message="Cleaning build artifacts..." />
<mkdir dir="${buildDir}" />
<delete includeEmptyDirs="true">
<fileset dir="${buildDir}" includes="**/*" />
</delete>
</target>
</project>