File: build.xml

package info (click to toggle)
jaxme 0.5.2%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 6,908 kB
  • sloc: java: 60,702; xml: 6,921; jsp: 86; makefile: 68; sql: 18; sh: 2
file content (96 lines) | stat: -rw-r--r-- 3,889 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
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
<!--
 * Copyright 2002-2004  The Apache Software Foundation
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
-->
<project name="JaxMe" default="all">
    <property name="version" value="0.5.2"/>
    <property name="debug" value="true"/>
    <property name="optimize" value="false"/>   

    <import file="ant/pm.xml"/>
    <import file="ant/docs.xml"/>
   
    <target name="dist" depends="clean,all,Docs.all">
        <tar tarfile="${dist}/ws-jaxme-${version}-bin.tar.gz" compression="gzip" longfile="gnu">
	       <tarfileset prefix="ws-jaxme-${version}" dir="${basedir}">
	           <include name="LICENSE"/>
               <include name="NOTICE"/>
               <include name="README*"/>
	           <include name="examples/**/*"/>
               <include name="prerequisites/LICENSE*"/>
               <include name="prerequisites/README"/>
               <include name="prerequisites/ant*.jar"/>
               <include name="prerequisites/junit*.jar"/>
               <include name="prerequisites/log4j*.jar"/>
               <include name="prerequisites/xercesImpl.jar"/>
               <include name="prerequisites/xml-apis.jar"/>
               <include name="prerequisites/xmldb-api-*.jar"/>
	       </tarfileset>
	       <tarfileset prefix="ws-jaxme-${version}/docs" dir="${build.site}"/>
           <tarfileset prefix="ws-jaxme-${version}/lib" dir="dist">
               <include name="*.jar"/>
               <include name="*.zip"/>
           </tarfileset>
        </tar>
        <tar tarfile="${dist}/ws-jaxme-${version}-src.tar.gz" compression="gzip" longfile="gnu">
           <tarfileset prefix="ws-jaxme-${version}" dir="${basedir}">
               <include name="src/**/*"/>
               <include name="etc/**/*"/>
               <include name="examples/**/*"/>
               <include name="LICENSE"/>
               <include name="NOTICE"/>
               <include name="README*"/>
			   <include name="build.xml"/>
           	   <include name="ant/*"/>
               <include name="jaxme.properties.sample"/>
               <include name="status.xml"/>
               <include name="prerequisites/*"/>
           </tarfileset>
        </tar>
        <checksum algorithm="MD5" fileext=".md5">
            <fileset dir="${dist}"/>
        </checksum>
    </target>

    <target name="clean" depends="init"
         description="Cleans the subdirectories 'build' and 'dist'">
        <delete dir="${build}"/>
        <delete dir="${dist}"/>
    </target>

    <target name="check.export.site" unless="ws.site.dir">
        <fail>You need to set the property ws.site.dir when invoking
            target export-site</fail>
    </target>

    <target name="export.site" depends="check.export.site,clean">
        <antcall target='Docs.all'>
            <param name="build.online.site" value="true"/>
        </antcall>
        <delete>
            <fileset dir="${ws.site.dir}">
            	<exclude name="**/CVS/*.*"/>
            	<exclude name="mp/**/*"/>
            	<exclude name="release-0.3/**/*"/>
            	<exclude name="release-0.4/**/*"/>
            </fileset>
        </delete>
        <copy todir="${ws.site.dir}" preservelastmodified="true">
		    <fileset dir="${build.site}">
            	<exclude name="release-0.3/**/*"/>
            	<exclude name="release-0.4/**/*"/>
        	</fileset>
        </copy>
    </target>
</project>