File: maven.xml

package info (click to toggle)
liblogkit-java 1.2.2-8
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,044 kB
  • ctags: 1,178
  • sloc: java: 6,183; xml: 1,613; sql: 31; makefile: 21
file content (66 lines) | stat: -rw-r--r-- 2,533 bytes parent folder | download | duplicates (3)
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
<?xml version="1.0"?>

<project default="check"
    xmlns:j="jelly:core"
    xmlns:ant="jelly:ant"
    xmlns:deploy="deploy">

    <!-- include the avalon-wide custom project properties -->
    <property file="${basedir}/project.properties"/>

    <goal name="check">
        <!-- friendly error in case file is not available -->
        <ant:available file="${avalon.buildsystem}/maven-common.xml"
                property="buildsystem.available"/>
        <ant:available classname="javax.mail.Message" property="javamail.present"/>
        <ant:available classname="javax.jms.Message" property="jms.present"/>
        <ant:fail unless="buildsystem.available">
          ===================================================================
          BUILD SYSTEM FAILURE!
          ===================================================================

          a required file, ${avalon.buildsystem}/maven-common.xml, cannot be
          found. Try setting the avalon.buildsystem property in
          project.properties to the correct location.
        </ant:fail>
        <ant:fail unless="javamail.present">
          Avalon LogKit must have JavaMail in your repository.  You must
          download it manually from the URL provided here:

          http://java.sun.com/products/javamail/index.html

          Place the jar in your repository in the subdirectory:

          javamail/jars
        </ant:fail>
        <ant:fail unless="jms.present">
          Avalon LogKit must have JavaMail in your repository.  You must
          download it manually from the URL provided here:

          http://java.sun.com/products/jms/docs.html

          Place the jar in your repository in the subdirectory:

          jms/jars
        </ant:fail>
    </goal>

    <!-- include the avalon-wide custom goal decorators from maven-common.xml -->
    <j:import file="${avalon.buildsystem}/maven-common.xml" inherit="true"/>

    <preGoal name="java:compile">
        <ant:property name="java.src.dir" location="${maven.build.dir}/src"/>
        <ant:copy todir="${java.src.dir}">
            <ant:fileset dir="${basedir}/src/java"/>
            <ant:fileset dir="${basedir}/src/compat"/>
        </ant:copy>
    </preGoal>

    <postGoal name="avalon:deploy-upload">
        <!-- upload big jar -->
        <ant:exec dir="." executable="${maven.scp.executable}">
            <ant:arg line="${scpopts} target/${pom.artifactId}-complete-${pom.currentVersion}.jar ${repo}/${pom.groupId}/jars/"/>
        </ant:exec>
    </postGoal>

</project>