Statistics
| Revision:

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

History | View | Annotate | Download (4.46 KB)

1 26217 vsanjaime
<project name="extNormalization" default="move-andami" basedir=".">
2 22677 jsanz
        <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 26217 vsanjaime
        <property name="lib" value="lib" />
13 22677 jsanz
        <property name="plugin" value="org.gvsig.normalization" />
14
        <property name="extension-dir" location="../_fwAndami/gvSIG/extensiones" />
15 31796 vsanjaime
        <!--<import file="../binaries/ant/utilities.xml" /> -->
16 22677 jsanz
17
18 26217 vsanjaime
        <!-- =================================
19
                                  target: distribution
20
                                 ================================= -->
21
        <target name="create-dist" depends="clean-dist" description="generate the distribution without the source file">
22 22677 jsanz
23 26217 vsanjaime
                <echo>Creating extension JAR and others folders</echo>
24
                <jar jarfile="${dist}/${plugin}/${lib}/${plugin}.jar" basedir="${build}" />
25
                <copy file="config/config.xml" todir="${dist}/${plugin}/" />
26
27
                <copy todir="${dist}/${plugin}/">
28 22677 jsanz
                        <fileset dir="config" includes="text*.properties" />
29
                </copy>
30 31796 vsanjaime
                <copy todir="${dist}/${plugin}/">
31
                        <fileset dir="." includes="gpl.txt" />
32
                </copy>
33 26217 vsanjaime
34
                <copy todir="${dist}/${plugin}/${lib}">
35
                        <fileset dir="${lib}" includes="**/**" />
36 22677 jsanz
                </copy>
37 26217 vsanjaime
                <copy todir="${dist}/${plugin}/images">
38
                        <fileset dir="images/" includes="**/**" />
39 26212 vsanjaime
                </copy>
40 26217 vsanjaime
                <copy todir="${dist}/${plugin}/about">
41
                        <fileset dir="about/" includes="**/**" />
42
                </copy>
43
                <echo>Created dist ended</echo>
44 22677 jsanz
        </target>
45
46 26217 vsanjaime
        <!-- =================================
47
                                          target: distribution
48
                                         ================================= -->
49
        <target name="create-dist-bn" depends="build-number,create-dist" description="generate the distribution without the source file with BN">
50
                <echo>Changing de Build Number</echo>
51 22677 jsanz
52 26217 vsanjaime
                <delete dir="${dist}/${plugin}/about" />
53
                <mkdir dir="${dist}/${plugin}/about" />
54 31796 vsanjaime
55 26217 vsanjaime
                <mkdir dir="${dist}/tmp" />
56 22677 jsanz
57 26217 vsanjaime
                <copy todir="${dist}/tmp">
58
                        <fileset dir="about" includes="**" />
59
                </copy>
60 22677 jsanz
61 26217 vsanjaime
                <loadproperties srcFile="build.number" />
62
                <replace casesensitive="true" file="${dist}/tmp/normabout.htm" token="#build.number#" value="${build.number}" />
63
64
                <copy todir="${dist}/${plugin}/about">
65
                        <fileset dir="${dist}/tmp" includes="**" />
66 22677 jsanz
                </copy>
67 26217 vsanjaime
68 31796 vsanjaime
                <copy file="build.number" todir="${dist}/${plugin}" />
69
70 26217 vsanjaime
                <delete dir="${dist}/tmp" />
71
72 22677 jsanz
        </target>
73
74 26217 vsanjaime
        <!-- =================================
75
                          target: move andami
76
                         ================================= -->
77
        <target name="move-andami" depends="create-dist" description="Move andami the extension">
78
                <echo>copy to Andami</echo>
79
                <copy todir="${extension-dir}/">
80 22677 jsanz
                        <fileset dir="${dist}" includes="**/**" />
81 26217 vsanjaime
                </copy>
82 22677 jsanz
        </target>
83
84 26217 vsanjaime
        <!-- =================================
85
                  target: change build number
86
                 ================================= -->
87
        <target name="build-number" description="up build number">
88
                <propertyfile file="build.number" comment="Build number for ANT. Do not edit!">
89
                        <entry key="build.number" default="0" type="int" operation="+" />
90
                </propertyfile>
91
                <property file="build.number" />
92 22677 jsanz
        </target>
93
94 26217 vsanjaime
        <!-- =================================
95
                  target: delete dist folder
96
                 ================================= -->
97
        <target name="clean" description="clean up">
98
                <echo>Delete dist folder</echo>
99
                <delete dir="${dist}" />
100 22677 jsanz
        </target>
101
102 26217 vsanjaime
        <!-- =================================
103
          target: make the dist folder
104
         ================================= -->
105
        <target name="clean-dist" depends="clean" description="Cleans the dist folder and prepares it to receive the extension files">
106
                <echo>Creating dist folder</echo>
107
                <mkdir dir="${dist}" />
108
                <mkdir dir="${dist}/${plugin}" />
109
                <mkdir dir="${dist}/${plugin}/images" />
110
                <mkdir dir="${dist}/${plugin}/lib" />
111
                <mkdir dir="${dist}/${plugin}/about" />
112
        </target>
113 22677 jsanz
114 26217 vsanjaime
        <!-- =================================
115
                  target: generate installer
116
                 ================================= -->
117
        <target name="generate-installer" depends="create-dist-bn" description="generate the extension installer for win, linux and mac">
118
                <ant antfile="install/buildExt.xml" target="init">
119
                        <property name="basedir" location="install" />
120
                </ant>
121
        </target>
122
123
124 22677 jsanz
</project>