Statistics
| Revision:

svn-gvsig-desktop / tags / gvsig_redes-1_0_0-1233 / extensions / extI18n / build.xml @ 40799

History | View | Annotate | Download (3.62 KB)

1 28179 cordinyana
<project name="extI18n" default="install" basedir=".">
2 25963 cordinyana
        <description>
3
       Instala la extensión de administración de traducciones en Andami.
4
   </description>
5
        <!-- set global properties for this build -->
6
        <property name="src" location="src" />
7
        <property name="build" location="bin" />
8
        <property name="dist" location="dist" />
9
        <property name="plugin" value="org.gvsig.i18n" />
10 28179 cordinyana
        <property name="extension-dir" location="../_fwAndami/gvSIG/extensiones" />
11 25963 cordinyana
    <property name="without_src"  location="without_src"/>
12 28179 cordinyana
13 28467 jmvivo
        <import file="../binaries/ant/utilities.xml"/>
14 25963 cordinyana
15 28467 jmvivo
        <target name="batch-build" depends="compile,install"/>
16
17 25963 cordinyana
        <target name="init">
18
                <!-- Create the time stamp -->
19
                <tstamp />
20
                <!-- Create the build directory structure used by compile -->
21
                <mkdir dir="${build}" />
22
                <mkdir dir="${dist}" />
23
24
                <property file="build.number" />
25
26
                <!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
27
                <!--buildnumber /-->
28
29
        </target>
30
31
        <target name="buildNumber">
32
                <propertyfile file="build.number" comment="Build Number for ANT. Do not edit!">
33
                        <entry key="build.number" default="0" type="int" operation="+" />
34
                </propertyfile>
35
                <property file="build.number" />
36
        </target>
37
38
        <target name="generate-without-source" description="generate the distribution without the source file">
39
                <!-- Create the distribution directory -->
40
                <mkdir dir="${dist}" />
41
42
                <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
43
                <jar jarfile="${dist}/${plugin}.jar" basedir="${build}" />
44
                <copy file="resources/config/config.xml" todir="${dist}" />
45
                <copy todir="${dist}/images">
46
                        <fileset dir="resources/images/" includes="*" />
47
                </copy>
48
                <copy todir="${dist}">
49
                        <fileset dir="resources/locale" includes="text*.properties" />
50
                </copy>
51
                <copy file="build.number" todir="${dist}" />
52
53
                <!-- AQUÍ SE HACE LA COPIA DEL about.htm A LA CARPETA TEMPORAL -->
54
                <copy file="resources/about/about.htm" todir="${dist}" />
55
56
                <!-- AQUÍ SE HACE EL REMPLAZO DE #build.number# -->
57
                <loadproperties srcFile="build.number" />
58
                <replace casesensitive="true" file="${dist}/about.htm" token="#build.number#" value="${build.number}" />
59
        </target>
60
61
        <target name="install" depends="generate-without-source" description="Install into gvSIG">
62
                <move todir="${extension-dir}/${plugin}/">
63
                        <fileset dir="${dist}" includes="**/**" />
64
                </move>
65 28179 cordinyana
                <!--copy file="lib/gvsig-i18n.jar" todir="${GVSIG_INSTALL_DIR}/bin/lib" /-->
66 25963 cordinyana
        </target>
67
68 28467 jmvivo
        <target name="compile" description="compile the source" >
69
                <antcall target="gvSIG-import-build-number"/>
70
                <!-- Compile the Java code from ${src} to ${build} -->
71
                <mkdir dir="${build}" />
72
                <loadEclipseClasspath project="${basedir}"/>
73
                <gvSIG-javac
74
                        classpath="${eclipseClasspath}"
75
                />
76
        </target>
77
78
79 25963 cordinyana
        <!-- TODO: revisar -->
80
        <target name="copy-data-files">
81
                <copy file="resources/config/config.xml" todir="${dist}" />
82
                <copy file="build.number" todir="${dist}" />
83
                <copy file="resources/about/about.htm" todir="${dist}" />
84
                <!-- AQUÍ SE HACE LA COPIA DEL about.htm A LA CARPETA TEMPORAL -->
85
                <loadproperties srcFile="build.number" />
86
                <replace casesensitive="true" file="${dist}/about.htm" token="#build.number#" value="${build.number}" />
87
                <!-- AQUÍ SE HACE EL REMPLAZO DE #build.number# -->
88
                <copy todir="${dist}">
89
                        <fileset dir="resources/locale" includes="text*.properties" />
90
                </copy>
91
                <copy todir="${dist}/images">
92
                        <fileset dir="resources/images/" includes="*" />
93
                </copy>
94
        </target>
95
96
        <target name="distribution" depends="buildNumber, generate-without-source">
97
        </target>
98 28467 jmvivo
99
        <target name="clean">
100
                <delete dir="${build}" failonerror="no"/>
101
                <delete dir="${dist}" failonerror="no"/>
102
        </target>
103 25963 cordinyana
104
</project>