Statistics
| Revision:

svn-gvsig-desktop / tags / Root_v061 / applications / appgvSIG / build.xml @ 4812

History | View | Annotate | Download (3.8 KB)

1
<project name="Generar extension en MDIAPP" default="dist" basedir=".">
2
    <description>
3
        Instala el plugin
4
    </description>
5
  <!-- set global properties for this build -->
6
  <property name="buildDate" value="20041018"/>
7
  <property name="version" value="0.3.0 beta ${buildDate}"/>
8
  <property name="src" location="src"/>
9
  <property name="build" location="bin"/>
10
  <property name="dist"  location="dist"/>
11
  <property name="plugin" value="com.iver.cit.gvsig"/>
12
  <property name="fmapdir" value="../libFMap"/>
13
  <property name="extensionDir" location="../_fwAndami/gvSIG/extensiones"/>
14
  <property name="makeZip" location="makeZip"/>
15
  <property name="zipName" value="gvSIG-${version}"/>
16
  <property name="build-doc" value="build-doc"/>
17

    
18
  <target name="init">
19
    <!-- Create the time stamp -->
20
    <tstamp/>
21
    <!-- Create the build directory structure used by compile -->
22
    <mkdir dir="${build}"/>
23
          <!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
24
          <buildnumber/>
25
          
26
  </target>
27
        
28
  <target name="build-doc" depends="" description="Genera un zip con la documentación">
29
        <javadoc 
30
                packagenames="com.iver.cit.gvsig.*"
31
                sourcepath="src"
32
                defaultexcludes="yes"
33
                destdir="${build-doc}/gvSIG-api"
34
                windowtitle="gvSIG API">
35
        </javadoc>
36
  </target>
37

    
38
  <target name="compile" depends="init"
39
        description="compile the source " >
40
    <!-- Compile the java code from ${src} into ${build} 
41
    <javac srcdir="${src}" destdir="${build}"/>-->
42
  </target>
43

    
44
  <target name="dist" depends="compile"
45
        description="generate the distribution" >
46
    <!-- Create the distribution directory -->
47
    <mkdir dir="${dist}"/>
48

    
49
    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
50
    <copy todir="${dist}/lib">
51
            <fileset dir="./lib" includes="*.jar,*.zip"/>
52
    </copy>
53
    <copy todir="${dist}/lib">
54
            <fileset dir="${fmapdir}/lib" includes="*.jar"/>
55
    </copy>
56
    <jar jarfile="${dist}/lib/fmap.jar" basedir="${fmapdir}/bin"/>
57
    <jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}"/>
58
    <copy file="config/config.xml" todir="${dist}"/>
59
    <copy file="config/about.htm" todir="${dist}"/>          
60
    <copy file="build.number" todir="${dist}"/>
61
    <copy todir="${dist}">
62
            <fileset dir="." includes="text*.properties"/>
63
    </copy>
64
    <copy todir="${dist}/images">
65
            <fileset dir="images/" includes="*"/>
66
    </copy>
67
          <copy todir="${dist}/northimages">
68
                      <fileset dir="northimages/" includes="*"/>
69
              </copy>
70

    
71
    <move todir="${extensionDir}/${plugin}/">
72
            <fileset dir="${dist}" includes="**/**"/>
73
    </move>
74
  </target>
75

    
76
  <target name="makeZip"
77
          description="Genera un zip con todo lo necesario para ejecutar gvSIG"
78
          depends="dist">
79
    <!-- Create the distribution directory -->
80
    <mkdir dir="${dist}/${zipName}"/>
81
    <jar jarfile="${dist}/${zipName}/gvSIG.jar" basedir="../mdiApp/bin" manifest="../mdiApp/manifest.mf"/>
82
    <jar jarfile="${dist}/${zipName}/gvSIG.jar" basedir="../mdiApp/" includes="images/*" update="true"/>
83
    <jar jarfile="${dist}/${zipName}/gvSIG.jar" basedir="../mdiApp/" includes="plugin.dtd" update="true"/>
84
    <copy todir="${dist}/${zipName}">
85
                <fileset dir="../mdiApp">
86
                        <include name="extensiones/${plugin}/**"/>
87
                        <include name="extensiones/plugin.*"/>
88
                        <include name="plugin.*"/>
89
                </fileset>  
90
                <!-- fileset dir="${dist}" includes="gvSIG.jar"/ -->
91
                <fileset dir="../mdiApp_v02_estable">
92
                        <include name="lib/**"/>
93
                </fileset>  
94
                <fileset dir="distFiles" includes="**/**"/>
95
    </copy>
96
        <zip zipfile="${zipName}.zip">
97
                <fileset dir="${dist}">
98
                        <include name="**/**"/>
99
                </fileset>
100
        </zip>
101
    <delete dir="${dist}"/>
102
  </target>
103

    
104
  <target name="clean"
105
        description="clean up" >
106
    <!-- Delete the ${build} and ${dist} directory trees -->
107
    <delete dir="${build}"/>
108
    <delete dir="${dist}"/>
109
  </target>
110
</project>
111