forked from cmadsen/vldocking
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
130 lines (103 loc) · 5 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<?xml version="1.0"?>
<!-- ===================================================================== -->
<!-- Copyright 2004-2013 Lilian Chamontin -->
<!-- THIS IS THE ANT BUILD FILE FOR THE VLDOCKING FRAMEWORK 3.0 -->
<!-- LGPL Licence -->
<!-- ===================================================================== -->
<project name="vldocking_3.0" default="jar" basedir=".">
<!-- ===================================================================== -->
<!-- PROPERTIES -->
<!-- ===================================================================== -->
<property name="classpath" value="" />
<property name="build.dir" value="build" />
<property name="jar.dir" value="jar" />
<property name="src.dir" value="src/main/java" />
<property name="resource.dir" value="src/main/resources" />
<property name="javadoc.dir" value="doc" />
<property name="vldocking.version" value="3.0.5-SNAPSHOT" />
<!-- ===================================================================== -->
<!-- PREPARE BUILD -->
<!-- ===================================================================== -->
<target name="prepare">
<mkdir dir="${build.dir}" />
<mkdir dir="${jar.dir}" />
<mkdir dir="${src.dir}" />
<mkdir dir="${resource.dir}" />
<mkdir dir="${javadoc.dir}" />
<copy todir="${build.dir}">
<fileset dir="${resource.dir}">
<patternset>
<include name="**/*.gif" />
<include name="**/*.png" />
<include name="**/*.jpg" />
</patternset>
</fileset>
</copy>
</target>
<!-- ===================================================================== -->
<!-- COMPILE -->
<!-- ===================================================================== -->
<target name="compile" depends="prepare">
<javac destdir="${build.dir}"
classpath="${classpath};"
debug="on" deprecation="off" optimize="on" includeantruntime="false">
<src path="${src.dir}"/>
<include name="com/vldocking/**"/>
</javac>
</target>
<!-- ===================================================================== -->
<!-- JAR FILE -->
<!-- ===================================================================== -->
<target name="jar" depends="compile">
<delete dir="${jar.dir}/vldocking-${vldocking.version}.jar" />
<jar jarfile="${jar.dir}/vldocking-${vldocking.version}.jar"
basedir="${build.dir}" >
<include name="com/vldocking/**"/>
<exclude name="**/doc-files/**"/>
</jar>
</target>
<!-- ===================================================================== -->
<!-- JAVADOC FOLDER & ZIP -->
<!-- ===================================================================== -->
<target name="javadoc" depends="prepare">
<javadoc destdir="${javadoc.dir}/gen"
author="false"
version="false"
use="true"
overview="${src.dir}/com/vldocking/swing/docking/overview.html"
link="http://java.sun.com/j2se/1.5.0/docs/api"
windowtitle="VLDocking Framework ${vldocking.version} API">
<classpath>
<pathelement path="${java.class.path}/"/>
</classpath>
<packageset dir="${src.dir}" >
<include name="com/vldocking/**" />
</packageset>
<bottom><![CDATA[<i>© Copyright 2004-2013 Lilian Chamontin. All Rights Reserved.]]></bottom>
</javadoc>
<copy todir="${javadoc.dir}/gen">
<fileset dir="${resource.dir}">
<patternset>
<include name="**/doc-files/**" />
</patternset>
</fileset>
</copy>
<zip destfile="${javadoc.dir}/vldocking-${vldocking.version}-doc.zip" basedir="${javadoc.dir}/gen" update="false" whenempty="fail" compress="true" />
</target>
<!-- =================================================================== -->
<!-- CLEAN -->
<!-- =================================================================== -->
<target name="clean">
<delete dir="${build.dir}" />
<delete dir="${jar.dir}" />
<delete dir="${javadoc.dir}" />
</target>
<!-- ===================================================================== -->
<!-- RELEASE GENERATOR -->
<!-- ===================================================================== -->
<target name="release" depends="compile,jar,javadoc">
<delete dir="${build.dir}" />
<delete dir="${javadoc.dir}/gen" />
</target>
</project>
<!-- End of build.xml -->