Statistics
| Revision:

root / trunk / extensions / extHelp / build.xml @ 29488

History | View | Annotate | Download (3.22 KB)

1 16273 afraile
<project name="Generar extension en Andami" default="generate-without-source" basedir=".">
2
    <description>
3
        Instala el plugin de de Ayuda de gvSIG 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-temp"/>
9
  <property name="plugin" value="org.gvsig.help"/>
10
  <property name="extension-dir" location="../_fwAndami/gvSIG/extensiones"/>
11
  <property name="andami-dir" location="../_fwAndami"/>
12
  <property name="gvSIG_lib" value="${extension-dir}/com.iver.cit.gvsig/lib"/>
13
  <property name="mydist"  location="dist"/>
14
  <import file="../binaries/ant/utilities.xml"/>
15
16
  <target name="init">
17
    <!-- Create the time stamp -->
18
    <tstamp/>
19
    <!-- Create the build directory structure used by compile -->
20
    <mkdir dir="${build}"/>
21
    <mkdir dir="${dist}"/>
22
23
  </target>
24
25
        <target name="batch-build"
26
                description="compile the sources, create the jar file"
27
                depends="init,compile,create-jar,copy-data-files,help-documentation-zip,move-to-andami">
28
        </target>
29
30
        <target name="compile" description="compile the source" >
31
                <antcall target="gvSIG-import-build-number"/>
32
                <!-- Compile the Java code from ${src} to ${build} -->
33
                <mkdir dir="${build}" />
34
                <loadEclipseClasspath project="${basedir}"/>
35
                <gvSIG-javac
36
                        classpath="${eclipseClasspath}"
37
                />
38
        </target>
39
40
        <target name="generate-without-source"
41
                  description="generate the distribution without the source file"
42
                  depends="init,create-jar,copy-data-files,help-documentation-zip,move-to-andami">
43
44
        </target>
45
46
        <target name="create-jar"
47
                description="Creates the plugin jar">
48
                <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/>
49
        </target>
50
51
        <target name="copy-data-files">
52
            <copy todir="${dist}">
53
                    <fileset dir="./dist" includes="gvSIG/*.zip"/>
54
                    <fileset dir="./config" includes="**/**"/>
55
            </copy>
56
            <copy todir="${dist}/lib">
57
                    <fileset dir="./lib" includes="**/**"/>
58
            </copy>
59
60
        </target>
61 16340 jmvivo
62 16273 afraile
        <target name="help-documentation-zip">
63 16340 jmvivo
64
                 <!--get src="http://"
65
                         dest="${mydist}/gvSIG/manual-de-usuario.zip"
66 16273 afraile
                  /-->
67 16340 jmvivo
68
69 16273 afraile
                <unzip src="${mydist}/gvSIG/manual-de-usuario.zip"
70
                       dest="${mydist}/gvSIG">
71
                    <patternset>
72
                        <include name="manual-de-usuario/es/map.jhm"/>
73
                    </patternset>
74
                </unzip>
75 16340 jmvivo
76 16273 afraile
                <loadfile property="add_text"
77
                      srcFile="${mydist}/gvSIG/map.jhm.add"/>
78
                <loadfile property="end_text"
79
                      srcFile="${mydist}/gvSIG/end.add"/>
80 16340 jmvivo
81 16273 afraile
                <property name="total" value="${add_text}${end_text}"/>
82 16340 jmvivo
83
                <replace file="${mydist}/gvSIG/manual-de-usuario/es/map.jhm" value="${total}">
84 16273 afraile
                          <replacetoken><![CDATA[</map>]]></replacetoken>
85
                </replace>
86 16340 jmvivo
87 16273 afraile
                <zip destfile="${dist}/gvSIG/manual-de-usuario.zip"
88
                             basedir="${mydist}/gvSIG"
89
                           includes="manual-de-usuario/**/**"
90
                         excludes="**/*.db"
91 16340 jmvivo
                          update="true"/>
92 16273 afraile
        </target>
93
94
        <target name="move-to-andami">
95
                <move todir="${extension-dir}/${plugin}/">
96
                        <fileset dir="${dist}" includes="**/**"/>
97
                </move>
98
        </target>
99 16340 jmvivo
100
        <target name="clean">
101 16273 afraile
                <delete dir="${dist}" failonerror="no"/>
102
                <delete dir="${build}" failonerror="no"/>
103
        </target>
104
105
</project>
106 15911 afraile
107 15923 jmvivo