Statistics
| Revision:

svn-gvsig-desktop / trunk / extensions / extHelp / build.xml @ 28489

History | View | Annotate | Download (3.22 KB)

1
<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

    
62
        <target name="help-documentation-zip">
63

    
64
                 <!--get src="http://"
65
                         dest="${mydist}/gvSIG/manual-de-usuario.zip"
66
                  /-->
67

    
68

    
69
                <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

    
76
                <loadfile property="add_text"
77
                      srcFile="${mydist}/gvSIG/map.jhm.add"/>
78
                <loadfile property="end_text"
79
                      srcFile="${mydist}/gvSIG/end.add"/>
80

    
81
                <property name="total" value="${add_text}${end_text}"/>
82

    
83
                <replace file="${mydist}/gvSIG/manual-de-usuario/es/map.jhm" value="${total}">
84
                          <replacetoken><![CDATA[</map>]]></replacetoken>
85
                </replace>
86

    
87
                <zip destfile="${dist}/gvSIG/manual-de-usuario.zip"
88
                             basedir="${mydist}/gvSIG"
89
                           includes="manual-de-usuario/**/**"
90
                         excludes="**/*.db"
91
                          update="true"/>
92
        </target>
93

    
94
        <target name="move-to-andami">
95
                <move todir="${extension-dir}/${plugin}/">
96
                        <fileset dir="${dist}" includes="**/**"/>
97
                </move>
98
        </target>
99

    
100
        <target name="clean">
101
                <delete dir="${dist}" failonerror="no"/>
102
                <delete dir="${build}" failonerror="no"/>
103
        </target>
104

    
105
</project>
106

    
107

    
108