-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild.xml
More file actions
executable file
·49 lines (42 loc) · 1.61 KB
/
build.xml
File metadata and controls
executable file
·49 lines (42 loc) · 1.61 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
<?xml version="1.0" ?>
<!DOCTYPE project [
<!ENTITY common SYSTEM "../release-build/common.xml">
]>
<project default="main">
<!-- Include any common properties / declarations -->
&common;
<property name="release-package-name" value="bc-commons-system-utils"/>
<property name="release-dir" value="release/${common-release-package-version}"/>
<target name="main" depends="prepare, clean, local-prepare, compile, javadoc, release" description="Main target">
<echo>Full build complete.</echo>
</target>
<target name="local-prepare">
<mkdir dir="${release-dir}"/>
</target>
<target name="compile" description="Compilation target">
<echo>Compiling source code:</echo>
<javac debug="on" srcdir="src" destdir="bin" includes="**/*" includeantruntime="false">
<!-- <classpath refid="build.class.path" /> -->
</javac>
</target>
<target name="javadoc" description="JavaDoc target">
<javadoc packagenames="com.*"
sourcepath="src"
defaultexcludes="yes"
destdir="javadoc"
author="true"
version="true"
use="true"
windowtitle="${release-package-name} - v${common-release-package-version}">
<doctitle><![CDATA[<h1>com.brightcove.commons.system</h1>]]></doctitle>
<bottom><![CDATA[<i>http://opensource.brightcove.com/.</i>]]></bottom>
</javadoc>
</target>
<target name="release" description="Compression target">
<echo>Building jar file:</echo>
<jar jarfile="${release-dir}/${release-package-name}-${common-release-package-version}.jar" duplicate="fail" whenmanifestonly="fail">
<fileset dir="bin" includes="**/*"/>
<fileset dir="src" includes="**/*"/>
</jar>
</target>
</project>