forked from jidesoft/jide-oss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
143 lines (133 loc) · 6.98 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
131
132
133
134
135
136
137
138
139
140
141
142
143
<?xml version="1.0" encoding="UTF-8"?>
<project name="JIDE_${jide_version}" default="dist">
<!-- Default configuration and properties for script execution. If does not exist then uses ${basedir}/CM_build.properties. -->
<property file="${basedir}/build.properties"/>
<!-- *** TARGET: init *** -->
<target name="init" description="print out important settings on your system">
<!-- Echo system variables. -->
<echo message="Ant Version: ${ant.version}"/>
<echo message="Ant Home: ${ant.home}"/>
<echo message="--------------------------------"/>
<echo message="Java Vendor: ${java.vendor}"/>
<echo message="Java Version: ${java.version}"/>
<echo message="Java Home: ${java.home}"/>
<echo message="Java initial heap size: ${initheapsize}"/>
<echo message="Java max heap size: ${maxheapsize}"/>
<echo message="Debug: ${debug}"/>
<echo message="Deprecation: ${deprecation}."/>
<echo message="--------------------------------"/>
<echo message="User Name: ${user.name}"/>
<echo message="User Home: ${user.home}"/>
<echo message="Current Dir: ${user.dir}"/>
<echo message="--------------------------------"/>
<echo message="Base Dir: ${basedir}"/>
<echo message="Output Dir: ${output_dir}"/>
<echo message="JavaDoc Dir: ${javadoc_dir}"/>
<echo message="Source list: ${source_list}"/>
<tstamp/>
<!-- modify the default excludes -->
<defaultexcludes add="**/_svn"/>
<defaultexcludes add="**/_svn/**"/>
<defaultexcludes add="**/.DS_Store"/>
<defaultexcludes add="**/*.iml"/>
</target>
<target name="clean" depends="init" description="clean the compile output folder">
<!-- Delete the ${builddir} directory -->
<delete dir="${output_dir}"/>
<mkdir dir="${output_dir}"/>
</target>
<path id="standard_classpath">
<pathelement location="${basedir}\libs\ui.jar"/>
<pathelement location="${basedir}\libs\JavaRuntimeSupport.jar"/>
</path>
<target name="compile" depends="init" description="compile the source code">
<delete dir="${output_dir}"/>
<mkdir dir="${output_dir}"/>
<javac source="${source}" target="${target}" srcdir="${src_dir}"
destdir="${output_dir}"
fork="yes" memoryInitialSize="${initheapsize}" memoryMaximumSize="${maxheapsize}" verbose="no"
debug="${debug}" deprecation="${deprecation}">
<classpath refid="standard_classpath"/>
</javac>
<copy todir="${output_dir}">
<fileset dir="${src_dir}" includes="**/*.gif,**/*.jpg,**/*.png,**/*.properties,**/*.ttf,**/*.vm"/>
</copy>
</target>
<target name="javadoc" depends="compile" description="generate javadoc">
<mkdir dir="${javadoc_dir}"/>
<javadoc maxmemory="${maxheapsize}" sourcepath="${javadoc_source_list}"
packagenames="com.jidesoft.*" destdir="${javadoc_dir}"
header="JIDE Common Layer ${jide_version}">
<link href="http://java.sun.com/j2se/1.5.0/docs/api/"/>
<link href="http://java.sun.com/j2se/1.5.0/docs/api/"/>
</javadoc>
</target>
<target name="jar" depends="compile" description="create the distributation jar">
<delete file="${base_dir}/jide-oss-${jide_version}.jar"/>
<jar update="false" jarfile="${base_dir}/jide-oss-${jide_version}.jar" basedir="${output_dir}"
includes="com/jidesoft/**">
<manifest>
<attribute name="Company" value="${company_name}"/>
<attribute name="Build-Date" value="${DSTAMP}"/>
<attribute name="Build-Time" value="${TSTAMP}"/>
<attribute name="Jide-Version" value="${jide_version}"/>
<section name="com/jidesoft/swing/JideButton.class">
<attribute name="Java-Bean" value="True"/>
</section>
<section name="com/jidesoft/swing/JideToggleButton.class">
<attribute name="Java-Bean" value="True"/>
</section>
<section name="com/jidesoft/swing/JideSplitButton.class">
<attribute name="Java-Bean" value="True"/>
</section>
<section name="com/jidesoft/swing/JideToggleButton.class">
<attribute name="Java-Bean" value="True"/>
</section>
<section name="com/jidesoft/swing/JideToggleSplitButton.class">
<attribute name="Java-Bean" value="True"/>
</section>
<section name="com/jidesoft/swing/JideTabbedPane.class">
<attribute name="Java-Bean" value="True"/>
</section>
<section name="com/jidesoft/swing/AutoCompletionComboBox.class">
<attribute name="Java-Bean" value="True"/>
</section>
<section name="com/jidesoft/swing/AutoResizingTextArea.class">
<attribute name="Java-Bean" value="True"/>
</section>
<section name="com/jidesoft/swing/CheckBoxList.class">
<attribute name="Java-Bean" value="True"/>
</section>
<section name="com/jidesoft/swing/CheckBoxTree.class">
<attribute name="Java-Bean" value="True"/>
</section>
<section name="com/jidesoft/swing/JideScrollPane.class">
<attribute name="Java-Bean" value="True"/>
</section>
<section name="com/jidesoft/swing/LabeledTextField.class">
<attribute name="Java-Bean" value="True"/>
</section>
<section name="com/jidesoft/swing/RangeSlider.class">
<attribute name="Java-Bean" value="True"/>
</section>
<section name="com/jidesoft/swing/StyledLabel.class">
<attribute name="Java-Bean" value="True"/>
</section>
<section name="com/jidesoft/spinner/DateSpinner.class">
<attribute name="Java-Bean" value="True"/>
</section>
</manifest>
</jar>
</target>
<target name="source" depends="init" description="create the source code zip file">
<zip destfile="${base_dir}/jide-oss-src-${jide_version}.zip">
<fileset dir="${source_list}"></fileset>
</zip>
</target>
<target name="dist" depends="javadoc, jar, source"
description="build the distributation jar, generate javadoc and create the source code zip file">
</target>
<target name="dist-nojavadoc" depends="compile, jar, source"
description="build the distributation jar, and create the source code zip file">
</target>
</project>