Statistics
| Revision:

svn-gvsig-desktop / trunk / extensions / extNormalization / build.xml @ 26212

History | View | Annotate | Download (2.81 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="build" location="bin" />
11
        <property name="dist" location="dist" />
12
        <property name="plugin" value="org.gvsig.normalization" />
13
        <property name="extension-dir" location="../_fwAndami/gvSIG/extensiones" />
14
        <import file="../binaries/ant/utilities.xml" />
15

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

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

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

    
45

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

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

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

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

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

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

    
82

    
83
</project>