File: maven.xml

package info (click to toggle)
clirr 0.6-7
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 948 kB
  • sloc: java: 4,275; xml: 2,100; makefile: 9; sh: 4
file content (94 lines) | stat: -rw-r--r-- 2,699 bytes parent folder | download | duplicates (4)
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
<?xml version="1.0"?>

<project default="build-clirr-release"
  xmlns:u="jelly:util"
  xmlns:ant="jelly:ant"
  xmlns:j="jelly:core">
 
  <goal name="dist">
    <!-- call the dist target of each sub-project -->
    <j:set var="goal" value="dist"/>
    <attainGoal name="multiproject:goal"/>
  </goal>

  <goal name="jar">
    <!-- call the jar target of each sub-project -->
    <j:set var="goal" value="jar:jar"/>
    <attainGoal name="multiproject:goal"/>
  </goal>

  <goal name="dist-site" prereqs="dist,multiproject:site"/>

  <goal name="site:deploy">
    <attainGoal name="multiproject:site"/>
    <attainGoal name="site:${maven.site.deploy.method}deploy"/>
  </goal>

  <preGoal name="clean">
    <attainGoal name="multiproject:clean"/>
  </preGoal>



  <!-- this is the target that creates all distributables -->
  <goal name="build-clirr-release">

    <!--
     this is probably not the 'maven way' to do this but it works,
     so what the heck... feel free to improve this part of the build :-)
    -->

    <!--
       I'd like to clean first, but that somehow breaks 
       something inside multiproject, and the 
       multiproject:goal call below executes 'clean' 
       instead of 'dist' for each subproject.
       <attainGoal name="clean"/> 
    -->
    <attainGoal name="multiproject:site"/>

    <!-- call the dist target of each sub-project -->
    <j:set var="goal" value="dist"/>
    <attainGoal name="multiproject:goal"/>

    <attainGoal name="dist:build-setup"/>

    <ant:mkdir dir="${maven.dist.dir}"/>

    <ant:mkdir dir="${maven.dist.src.assembly.dir}" />

    <ant:copy todir="${maven.dist.src.assembly.dir}">
      <ant:fileset dir=".">
        <ant:exclude name="**/target/**"/>
        <ant:exclude name="**/velocity.log*"/>
      </ant:fileset>
    </ant:copy>

    <ant:zip zipfile="${maven.dist.dir}/${maven.final.name}-src.zip">
      <ant:zipfileset dir="${maven.dist.src.archive.dir}"/>
    </ant:zip>


    <ant:mkdir dir="${maven.dist.bin.assembly.dir}"/>

    <ant:copy flatten="true" todir="${maven.dist.bin.assembly.dir}">
      <ant:fileset dir=".">
        <ant:include name="README.txt"/>
        <ant:include name="LICENSE*"/>
        <ant:include name="**/target/*.jar"/>
      </ant:fileset>
    </ant:copy>

    <ant:copy todir="${maven.dist.bin.assembly.dir}/docs">
      <ant:fileset dir="${maven.docs.dest}">
        <ant:include name="**"/>
      </ant:fileset>
    </ant:copy>

    <ant:zip zipfile="${maven.dist.dir}/${maven.final.name}.zip">
      <ant:zipfileset dir="${maven.dist.bin.archive.dir}"/>
    </ant:zip>

  </goal>

</project>