File: build.xml

package info (click to toggle)
libgroboutils-java 5-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 8,496 kB
  • sloc: java: 59,880; xml: 12,762; sh: 377; perl: 104; makefile: 20
file content (146 lines) | stat: -rw-r--r-- 4,616 bytes parent folder | download | duplicates (2)
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<?xml version="1.0"?>

<!DOCTYPE book [

<!-- default sources -->
<!ENTITY % ent._shared SYSTEM "../_shared/_shared.ant-ent.xml">
%ent._shared;
]>



<project name="UtilStates" default="main" basedir=".">

    <!-- Property Defines -->
    <property name="product" value="groboutils-states" />
    <property name="version" value="1.0.0alpha2" />
    <property name="basepackage" value="net/sourceforge/groboutils/util/states/v1" />
    
    
    &inc._shared;
    
    <!-- replace default properties and tasks -->
    &inc._shared.common-ant-replace;
    
    &inc._shared.common-ant-tasks-init;
    &inc._shared.common-ant-tasks-clean;
    &inc._shared.common-ant-tasks-javac;
    &inc._shared.common-ant-tasks-jar;
    &inc._shared.common-ant-tasks-doc;
    &inc._shared.common-ant-tasks-jdkdepend;
    &inc._shared.common-ant-tasks-test;
    &inc._shared.common-ant-tasks-deploy;

    
    <!-- inter-project dependencies -->
    &inc._shared.deployed.testing-junit;
    &inc._shared.deployed.pmti;
    &inc._shared.deployed.testing-tp;
    &inc._shared.deployed.testing-autodoc;
    &inc._shared.deployed.util-classes;
    &inc._shared.deployed.util-xml;
    
    
    <!-- Used versions of libraries -->
    <property name="libs.junit" value="${libs.junit.current}" />
    <property name="libs.log4j" value="${libs.log4j.current}" />
    <property name="libs.log4j.props" value="${basedir}" />
    <property name="libs.easymock" value="${libs.easymock.current}" />
    <property name="libs.mockobjects" value="${libs.mockobjects.current.core}" />
    
    
    <!-- Data objects -->
    <path id="classpath.base">
        <pathelement location="${libs.log4j}" />
    </path>
    
    <path id="classpath.tests">
        <path refid="classpath.base" />
        <pathelement location="${libs.easymock}" />
        <pathelement location="${libs.mockobjects}" />
        <pathelement location="${libs.log4j.props}" />
        <pathelement location="${libs.junit}" />
        <pathelement location="${libs.groboutils.testing-junit}" />
        <pathelement location="${libs.groboutils.testing-autodoc}" />
        <pathelement location="${libs.groboutils.util-classes}" />
        <pathelement location="${libs.groboutils.pmti}" />
        <pathelement location="${libs.groboutils.testing-tp}" />
        <pathelement location="${libs.groboutils.util-xml}" />
    </path>
    
    
    
    
    <!-- ****************************************************************** -->
    
    <!-- Targets -->

    <target name="all" depends="init,clean,javac,jar,doc,java-doc" />
    <target name="main" depends="init,javac,jar" />

    <target name="deploy" depends="init,_shared.common.deploy" />
    <target name="init" depends="_shared.common.init" />
    <target name="jar" depends="_shared.common.deploy-setup,
        _shared.common.jar" />
    <target name="clean" depends="_shared.common.clean" />
    
    <!-- ****************************************************************** -->
    
    <!--
        Compiling requires a test of what we're compiling against.
        This allows for both JDK 1.4 and JDK 1.3 compatibility.
     -->
    <target name="javac"
        depends="init, javac-checkDependencies,
            _shared.common.javac-dev,
            _shared.common.javac-eut,
            _shared.common.javac-ut,
            _shared.common.javac-iut,
            _shared.common.javac-ait" />
    
    
    
    <!-- Compilation Dependency Check: can we compile with the current
         environment? -->
    <target name="javac-checkDependencies"
        depends="_shared.common.depend.jdk.1_1" >
    </target>
    
    
    
    
    <!-- ****************************************************************** -->
    
    <!-- Documentation -->
    <target name="doc" depends="init">
        <!-- create the base document part -->
        <antcall target="_shared.common.subdocs">
            <param name="arg-subdir" value="" />
        </antcall>
    </target>
    
    
    <!-- JavaDoc -->
    <target name="java-doc" depends="init,doc,_shared.common.java-doc.latest" />

    
    
    <!-- ****************************************************************** -->
    
    
    
    <!-- ****************************************************************** -->
    
    <!-- testing
        AIT tests need to be run separately, since they generally take
        a long time to run.
    -->
    <target name="test-all"
        depends="test-checkDependencies, _shared.common.test-all" />

    <target name="test-checkDependencies"
        depends="javac-checkDependencies" >
    </target>
    
    
</project>