~hudson-ubuntu/+junk/hudson-dom4j

« back to all changes in this revision

Viewing changes to maven.xml

  • Committer: James Page
  • Date: 2010-11-18 13:20:23 UTC
  • Revision ID: james.page@canonical.com-20101118132023-puz3z975327yu8ib
Initial release of hudson variant

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<project default="dist:build-bin" 
 
2
         xmlns:j="jelly:core" 
 
3
         xmlns:ant="jelly:ant"
 
4
         xmlns:doc="doc"
 
5
         xmlns:maven="jelly:maven" >
 
6
 
 
7
    <!-- define the classpath used to run examples -->
 
8
    <goal name="create-classpath" prereqs="java:compile,test:compile">
 
9
        <path id="test.classpath">
 
10
            <pathelement path="${maven.build.dest}"/>
 
11
            <pathelement path="target/classes"/>
 
12
            <pathelement path="target/test-classes"/>
 
13
            <pathelement path="src/"/>
 
14
            <path refid="maven.dependency.classpath"/>
 
15
        </path>
 
16
    </goal>
 
17
 
 
18
    <postGoal name="clean:clean">
 
19
        <delete>
 
20
            <fileset dir="${basedir}" includes="junit*.properties"/>
 
21
            <fileset dir="${basedir}" includes="javadoc*"/>
 
22
        </delete>
 
23
    </postGoal>
 
24
 
 
25
    <postGoal name="dist:prepare-bin-filesystem">
 
26
        <ant:copy todir="${maven.dist.bin.assembly.dir}">
 
27
            <fileset dir=".">
 
28
                <include name="build.xml" />
 
29
                <include name="maven.xml" />
 
30
                <include name="project.properties" />
 
31
                <include name="project.xml" />
 
32
                <include name="LICENSE*" />
 
33
                <include name="lib/**" />
 
34
                <include name="src/**" />
 
35
                <include name="xdocs/**" />
 
36
                <include name="xml/**" />
 
37
            </fileset>
 
38
        </ant:copy>
 
39
        <ant:copy todir="${maven.dist.bin.assembly.dir}/docs">
 
40
            <fileset dir="target/docs"/>
 
41
        </ant:copy>
 
42
    </postGoal>
 
43
 
 
44
    <postGoal name="dist:prepare-src-filesystem">
 
45
        <ant:copy todir="${maven.dist.src.assembly.dir}/lib">
 
46
            <fileset dir="lib"/>
 
47
        </ant:copy>
 
48
    </postGoal>
 
49
 
 
50
    <preGoal name="site">
 
51
        <attainGoal name="docbook:transform"/>
 
52
    </preGoal>
 
53
 
 
54
</project>