Statistics
| Revision:

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

History | View | Annotate | Download (2.36 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
    <mkdir dir="${dist}/manuals"/>
23

    
24
  </target>
25

    
26
        <target name="batch-build"
27
                description="compile the sources, create the jar file"
28
                depends="init,compile,create-jar,copy-data-files,move-to-andami">
29
        </target>
30

    
31
        <target name="compile" description="compile the source" >
32
                <antcall target="gvSIG-import-build-number"/>
33
                <!-- Compile the Java code from ${src} to ${build} -->
34
                <mkdir dir="${build}" />
35
                <loadEclipseClasspath project="${basedir}"/>
36
                <gvSIG-javac
37
                        classpath="${eclipseClasspath}"
38
                />
39
        </target>
40

    
41
        <target name="generate-without-source"
42
                  description="generate the distribution without the source file"
43
                  depends="init,create-jar,copy-data-files,move-to-andami">
44

    
45
        </target>
46

    
47
        <target name="create-jar"
48
                description="Creates the plugin jar">
49
                <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/>
50
        </target>
51

    
52
        <target name="copy-data-files" depends="make-package-info">
53
            <copy todir="${dist}">
54
                    <fileset dir="./config" includes="**/**"/>
55
            </copy>
56
                <copy file="package.info" todir="${dist}"/>
57
            <copy todir="${dist}/lib">
58
                    <fileset dir="./lib" includes="**/**"/>
59
            </copy>
60

    
61
        </target>
62

    
63

    
64
        <target name="move-to-andami">
65
                <move todir="${extension-dir}/${plugin}/">
66
                        <fileset dir="${dist}" includes="**/**"/>
67
                </move>
68
        </target>
69

    
70
        <target name="clean">
71
                <delete dir="${dist}" failonerror="no"/>
72
                <delete dir="${build}" failonerror="no"/>
73
        </target>
74

    
75
</project>
76

    
77

    
78