File: build.xml

package info (click to toggle)
libcommons-openpgp-java 0%2Bsvn533492-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 196 kB
  • ctags: 137
  • sloc: java: 667; xml: 203; makefile: 24
file content (80 lines) | stat: -rw-r--r-- 2,780 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
<?xml version="1.0"?>

<!--
      This build.xml file was written for the Debian project.
      This file copyright (c) Paul Cager <paul-debian@home.paulcager.org>

        This software and documentation is provided "as is," and
        the copyright holders and contributing author(s) make no
        representations or warranties, express or implied, including
        but not limited to, warranties of merchantability or fitness
        for any particular purpose or that the use of the software or
        documentation will not infringe any third party patents,
        copyrights, trademarks or other rights. 

        The copyright holders and contributing author(s) will not be
        liable for any direct, indirect, special or consequential damages
        arising out of any use of the software or documentation, even if
        advised of the possibility of such damage.

        Permission is hereby granted to use, copy, modify, and distribute
        this source code, or portions hereof, documentation and executables,
        for any purpose, without fee, subject to the following restrictions:

        1. The origin of this source code must not be misrepresented.
        2. Altered versions must be plainly marked as such and must
           not be misrepresented as being the original source.
        3. This Copyright notice may not be removed or altered from any
           source or altered source distribution.
-->

<project name="pkg-java" default="package" basedir="..">

<target name="package" depends="jar,javadoc"/>

<target name="init">
	<property name="src.dir" value="."/>
	<property name="build.dir" value="build"/>
	<property name="jar.suffix" value="-${version}.jar"/>
	<property name="jar" value="${build.dir}/${package}-${version}.jar"/>
	<property name="javadoc.dir" value="${build.dir}/doc/api"/>
	<echo message="Classpath: ${java.class.path}" />
</target>

<target name="compile" depends="init">
	<mkdir dir="${build.dir}"/>
	<javac srcdir="${src.dir}"
		destdir="${build.dir}"
		source="1.6"
		target="1.6"
		debug="on">
		<include name="src/main/**/*.java"/>
	</javac>
</target>

<target name="jar" depends="compile">
	<delete file="${jar}"/>

	<jar jarfile="${build.dir}/${package}${jar.suffix}"
		basedir="${build.dir}"
		includes="**/*.class,**/*.properties" />
</target>

<target name="javadoc" depends="init">
	<mkdir dir="${javadoc.dir}"/>
	<javadoc 
		packagenames="org.apache.commons.openpgp,org.apache.commons.openpgp.ant"
		sourcepath="src/main/java"
		destdir="${javadoc.dir}"
		author="true"
		version="true"
		windowtitle="${package} API"
		doctitle="${package} - ${version}"
		classpath="${java.class.path}" >
	</javadoc>
</target>

<target name="clean" depends="init">
	<delete dir="${build.dir}"/>
</target>
</project>