File: build.xml

package info (click to toggle)
libmicroba-java 1:0.4.4.3-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 552 kB
  • ctags: 1,026
  • sloc: java: 5,286; xml: 177; sh: 23; makefile: 13
file content (130 lines) | stat: -rw-r--r-- 4,174 bytes parent folder | download | duplicates (2)
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
<project name="microba" default="mix_release">


	<property name="version" value="0.4.4.3" />
	<property name="src-pack" value="microba-${version}-sources.jar" />
	<property name="bin-pack" value="microba-${version}.jar" />
	<property name="doc-pack" value="microba-${version}-javadoc.jar" />
	<property name="all-pack" value="microba-${version}-full.zip" />
	<property name="maven-pack" value="microba-${version}-maven.jar" />

	<path id="compile-classpath">
		<pathelement location="/usr/share/java/jgraph.jar" />
	</path>

	<target name="src_release">
		<mkdir dir="redist" />

		<jar destfile="redist\${src-pack}">
			<fileset dir="." includes="src/**/*.*" />
			<fileset dir="." includes="lib-compiletime/**/*.txt" />
			<fileset dir="." includes="license.txt" />
			<fileset dir="." includes="readme.txt" />
			<fileset dir="." includes="change.log.txt" />
			<fileset dir="." includes="build.xml" />
		</jar>
	</target>

	<target name="bin_release">
		<condition property="javamail.complete">
			<and>
				<available classname="javax.activation.DataHandler" />
				<available classname="javax.mail.Transport" />
			</and>
		</condition>


		<mkdir dir="compile" />
		<mkdir dir="redist" />

		<echo>IMPORTANT: Assuming libraries in lib-compiletime directory. </echo>
		<javac srcdir="src" debug="true" destdir="compile" target="1.4" source="1.4" classpathref="compile-classpath">
			<exclude name="**/demo/**/*.*" />
		</javac>

		<jar destfile="redist\${bin-pack}">
			<fileset dir="compile" includes="**/*.*" />
			<fileset dir="src/main/java">
				<include name="**/*.png" />
				<include name="**/*.properties" />
			</fileset>
			<fileset dir="." includes="license.txt" />
			<manifest>
				<section name="common">
					<attribute name="Specification-Title" value="Microba" />
					<attribute name="Specification-Version" value="${version}" />
					<attribute name="Specification-Vendor" value="Michael Baranov" />
					<attribute name="Implementation-Title" value="Microba" />
					<attribute name="Implementation-Version" value="${version}" />
					<attribute name="Implementation-Vendor" value="Michael Baranov" />
					<attribute name="Author" value="Michael Baranov" />
				</section>
				<section name="com/michaelbaranov/microba/calendar/CalendarPane.class">
					<attribute name="Java-Bean" value="True" />
				</section>
				<section name="com/michaelbaranov/microba/calendar/DatePicker.class">
					<attribute name="Java-Bean" value="True" />
				</section>
				<section name="com/michaelbaranov/microba/gradient/GradientBar.class">
					<attribute name="Java-Bean" value="True" />
				</section>
				<section name="com/michaelbaranov/microba/gradienteditor/GradientEditor.class">
					<attribute name="Java-Bean" value="True" />
				</section>
				<section name="com/michaelbaranov/microba/marker/MarkerBar.class">
					<attribute name="Java-Bean" value="True" />
				</section>
				<section name="com/michaelbaranov/microba/jgrpah/birdview/Birdview.class">
					<attribute name="Java-Bean" value="True" />
				</section>

			</manifest>
		</jar>

		<delete dir="compile" />
	</target>

	<target name="doc_release">
		<mkdir dir="javadoc" />
		<mkdir dir="redist" />

		<javadoc access="public" author="yes" destdir="javadoc">
			<fileset dir="src">
				<include name="**/*.java" />
				<exclude name="**/demo/**/*.java" />
			</fileset>
		</javadoc>

		<jar destfile="redist\${doc-pack}">
			<fileset dir="javadoc" includes="**/*.*" />
		</jar>
	</target>

	<target name="mix_release">
		<antcall target="bin_release" />
		<antcall target="src_release" />
		<antcall target="doc_release" />

		<zip destfile="redist\${all-pack}">
			<fileset dir="redist">
				<include name="${bin-pack}" />
				<include name="${doc-pack}" />
				<include name="${src-pack}" />
			</fileset>
		</zip>

		<jar destfile="redist\${maven-pack}">
			<fileset dir="redist">
				<include name="${bin-pack}" />
				<include name="${doc-pack}" />
				<include name="${src-pack}" />
			</fileset>
			<fileset dir=".">
				<include name="pom.xml"/>
			</fileset>
		</jar>
	</target>



</project>