File: build.xml

package info (click to toggle)
libkmlframework-java 0.0.git20150825.a2e0518-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,308 kB
  • sloc: java: 4,919; xml: 108; makefile: 10
file content (84 lines) | stat: -rwxr-xr-x 2,861 bytes parent folder | download
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
<?xml version="1.0"?>
<project name="kmlframework" default="jar" basedir=".">

	<property name="projectname" value="kmlframework"/>
	<property name="src.dir" location="${basedir}/src"/>
	<property name="lib.dir" location="${basedir}/lib"/>
	<property name="doc.dir" location="${basedir}/docs"/>
	<property name="javadoc.dir" location="${doc.dir}/javadoc"/>
	<property name="bin.dir" location="${basedir}/bin"/>
	<property name="jars.dir" location="jars"/>
	<property name="distribution.dir" location="${basedir}/distribution"/>
	
	<property file="build.properties"/>
	
	<path id="classpath">
		<fileset dir="${lib.dir}" includes="**/*.jar"/>
		<pathelement location="${basedir}"/>
		<pathelement location="${bin.dir}"/>
	</path>
	
	<target name="compile">
		<mkdir dir="${bin.dir}"/>
		<javac srcdir="${src.dir}"
			destdir="${bin.dir}"
			debug="on"
			classpathref="classpath"
		/>
	</target>
	
	<target name="jar">
		<tstamp />
		<delete dir="${jars.dir}"/>
		<mkdir dir="${jars.dir}"/>
		<jar jarfile="${jars.dir}/org.boehn.kmlframework_${DSTAMP}.jar" basedir="${bin.dir}"/>
	</target>
	
	<target name="distribution" depends="jar,javadoc">
		<tstamp />
		<delete dir="${distribution.dir}"/>
		<mkdir dir="${distribution.dir}"/>
		<mkdir dir="${distribution.dir}/org.boehn.kmlframework_${DSTAMP}"/>
		<copy file="${jars.dir}/org.boehn.kmlframework_${DSTAMP}.jar" todir="${distribution.dir}/org.boehn.kmlframework_${DSTAMP}"/>
		<copy todir="${distribution.dir}/org.boehn.kmlframework_${DSTAMP}/documentation">
			<fileset dir="${doc.dir}"/>
		</copy>
		<copy todir="${distribution.dir}/org.boehn.kmlframework_${DSTAMP}/src">
			<fileset dir="${src.dir}"/>
		</copy>
		<zip destfile="${distribution.dir}/org.boehn.kmlframework_${DSTAMP}.zip" basedir="${distribution.dir}/org.boehn.kmlframework_${DSTAMP}" keepcompression="true"/>
	</target>
	
	<target name="javadoc">
		 <javadoc
		 		packagenames="org.boehn.kmlframework.*"
		       	sourcepath="${src.dir}"
		        excludepackagenames="org.boehn.kmlframework.examples.*"
		        defaultexcludes="yes"
		        destdir="${javadoc.dir}"
		        author="true"
		        version="true"
		        use="true"
		        windowtitle="KML Framework API"
		 		classpathref="classpath"
		 />
	</target>
	
	<target name="deploy" depends="distribution">
		<taskdef classname="net.bluecow.googlecode.ant.GoogleCodeUploadTask" classpath="${lib.dir}/ant-googlecode-0.0.1.jar" name="gcupload"/>
		<gcupload 
		        username="${gc.username}" 
		        password="${gc.password}" 
		        projectname="kmlframework" 
		        filename="${distribution.dir}/org.boehn.kmlframework_${DSTAMP}.zip" 
		        targetfilename="org.boehn.kmlframework_${DSTAMP}.zip"
				summary="Version ${DSTAMP}"
		/>
	</target>
	
	<target name="clean">
		<delete dir="${jars.dir}"/>
		<delete dir="${bin.dir}"/>
	</target>

</project>