File: build.xml

package info (click to toggle)
maven-debian-helper 2.3.2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,388 kB
  • sloc: java: 3,965; xml: 1,724; sh: 543; perl: 120; makefile: 38
file content (65 lines) | stat: -rw-r--r-- 2,394 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
<?xml version="1.0"?>

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

    <property file="debian/build.properties"/>
    <property name="maven.build" value="/usr/share/maven-ant-helper/maven-build.xml"/>
    <property file="/usr/share/maven-ant-helper/maven-defaults.properties"/>

    <macrodef name="cleanmodule">
        <attribute name="dir"/>
        <sequential>
          <ant target="clean" antfile="${maven.build}" dir="@{dir}">
            <property name="debian.dir" location="debian" />
            <property name="project.dir" value="@{dir}" />
          </ant> 
        </sequential>
    </macrodef>

    <macrodef name="packagemodule">
        <attribute name="dir"/>
        <sequential>
          <ant target="package-and-local-install" antfile="${maven.build}" dir="@{dir}">
            <property name="debian.dir" location="debian" />
            <property name="project.dir" value="@{dir}" />
            <property name="keep-cleaned-pom" value="true" />
          </ant>
        </sequential>
    </macrodef>

    <macrodef name="package-plugin-module">
        <attribute name="dir"/>
        <sequential>
          <ant target="package-and-local-install" antfile="${maven.build}" dir="@{dir}">
            <property name="debian.dir" location="debian" />
            <property name="project.dir" value="@{dir}" />
            <property name="maven.process-classes.target" value="plugin:descriptor" />
            <property name="keep-cleaned-pom" value="true" />
            <property name="use-local-repo" value="true" />
          </ant>
        </sequential>
    </macrodef>

    <target name="clean">
        <cleanmodule dir=""/>
        <cleanmodule dir="maven-debian-helper"/>
        <cleanmodule dir="debian-maven-plugin"/>
        <cleanmodule dir="maven-packager-utils"/>
    </target>

    <target name="package">
        <packagemodule dir=""/>
        <packagemodule dir="maven-debian-helper"/>
        <package-plugin-module dir="debian-maven-plugin"/>
        <package-plugin-module dir="maven-packager-utils"/>
    </target>

    <target name="javadoc">
        <javadoc destdir="${javadoc.dir}">
            <packageset dir="maven-debian-helper/src/main/java/"/>
            <packageset dir="debian-maven-plugin/src/main/java/"/>
            <packageset dir="maven-packager-utils/src/main/java/"/>
        </javadoc>
    </target>

</project>