Statistics
| Revision:

root / trunk / extensions / extNormalization / build.xml @ 22978

History | View | Annotate | Download (2.97 KB)

1
<project name="extGeocoding" default="generate-without-source" basedir=".">
2
        <description>
3
        Install the Normalization plugin
4
    </description>
5

    
6
        <!-- set global properties for this build -->
7
        <property name="src" location="src" />
8
        <property name="src-test" location="src-test" />
9
        <property name="build-test" location="bin-test" />
10
        <property name="doc" location="doc" />
11
        <property name="build" location="bin" />
12
        <property name="dist" location="dist" />
13
        <property name="plugin" value="org.gvsig.normalization" />
14
        <property name="extension-dir" location="../_fwAndami/gvSIG/extensiones" />
15
        <import file="../binaries/ant/utilities.xml" />
16

    
17
        <target name="init">
18
                <!-- Create the time stamp -->
19
                <tstamp />
20
                <echo>Compiling ${ant.project.name}...</echo>
21
                <buildnumber />
22
        </target>
23

    
24
        <target name="generate-without-source" description="generate the distribution without the source file" >
25

    
26
                <!-- Create the distribution directory -->
27
                <mkdir dir="${dist}" />
28
                <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
29
                <jar jarfile="${dist}/${plugin}.jar" basedir="${build}" />
30
                <copy file="config/config.xml" todir="${dist}" />
31
                <copy todir="${dist}">
32
                        <fileset dir="config" includes="text*.properties" />
33
                        <fileset dir="lib" includes="**/**" />
34
                </copy>
35
                <copy todir="${dist}/images">
36
                        <fileset dir="images/" includes="*" />
37
                </copy>
38
                <move todir="${extension-dir}/${plugin}/">
39
                        <fileset dir="${dist}" includes="**/**" />
40
                </move>
41
        </target>
42

    
43

    
44
        <target name="compile" description="compile the source">
45
                <!-- Compile the Java code from ${src} to ${build} -->
46
                <!-- <antcall target="gvSIG-import-build-number"/> -->
47
                <mkdir dir="${build}" />
48
                <loadEclipseClasspath project="${basedir}" />
49
                <gvSIG-javac classpath="${eclipseClasspath}" />
50
        </target>
51

    
52
        <target name="create-jar" description="Creates the plugin jar">
53
                <mkdir dir="${dist}" />
54
                <jar jarfile="${dist}/${jarName}" basedir="${build}" />
55
        </target>
56

    
57
        <target name="copy-data-files">
58
                <copy file="config/config.xml" todir="${dist}" />
59
                <copy file="build.number" todir="${dist}" />
60
                <copy todir="${dist}">
61
                        <fileset dir="config" includes="text*.properties" />
62
                </copy>
63
                <copy todir="${dist}/images">
64
                        <fileset dir="images/" includes="*" />
65
                </copy>
66
        </target>
67

    
68
        <target name="move-to-installDir">
69
                <move todir="${installDir}">
70
                        <fileset dir="${dist}" includes="**/**" />
71
                </move>
72
        </target>
73

    
74
        <target name="batch-build" description="compile the sources, create the jar file" depends="init,compile,create-jar,copy-data-files,move-to-installDir">
75
        </target>
76

    
77
        <target name="install" description="compile the sources, create the jar file" depends="init,create-jar,copy-data-files,move-to-installDir">
78
        </target>
79

    
80

    
81

    
82
        <target name="run-tests" depends="batch-build,compile-tests">
83
                <antcall target="generic-run-tests">
84
                        <param name="TestSuite.Name" value="org.gvsig.normalization.AllTests" />
85
                </antcall>
86
        </target>
87
</project>