Statistics
| Revision:

svn-gvsig-desktop / trunk / extensions / extRemoteSensing / build.xml @ 12096

History | View | Annotate | Download (2.2 KB)

1
<project name="Generar extension en Andami" default="generate-without-source" basedir=".">
2
    <description>
3
        Instala la extension RasterRaster 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="lib"  location="lib"/>
10
  <property name="plugin" value="es.idr.teledeteccion"/>
11
  <property name="extension-dir" location="../_fwAndami/gvSIG/extensiones"/>
12
  <property name="andami-dir" location="../_fwAndami"/>
13
  <property name="targetDir" location="../libFMap/lib" />
14

    
15
  <target name="init">
16
    <!-- Create the time stamp -->
17
    <tstamp/>
18
    <!-- Create the build directory structure used by compile -->
19
    <mkdir dir="${build}"/>
20
    <mkdir dir="${dist}"/>
21
          <!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
22
          <buildnumber/> 
23
          
24
  </target>
25

    
26
  <target name="compile"
27
          description="compile the source" >
28
      <!-- Compile the Java code from ${src} to ${bin} -->
29
      <javac      srcdir="${src}"
30
                  destdir="${build}"
31
                                     classpath="${extension-dir}/com.iver.cit.gvsig/lib/fmap.jar:${extension-dir}/com.iver.cit.gvsig/lib/com.iver.cit.gvsig.jar:../FMap/lib/cms.jar:../Andami/lib/iver-utiles.jar:../FMap/lib/gdbms-0.8-SNAPSHOT.jar:../Andami/andami.jar"/>
32
    </target>
33
                                                
34
  <target name="generate-without-source" description="generate the distribution without the source file" >
35
    <!-- Create the distribution directory -->
36
    <mkdir dir="${dist}"/>
37

    
38
    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
39
    <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/>
40
          
41
          
42
          <copy file="config/config.xml" todir="${dist}"/>
43
          <copy todir="${dist}">
44
                  <fileset dir="config" includes="text*.properties"/>
45
          </copy>
46
          <copy todir="${dist}/images">
47
                  <fileset dir="images/" includes="*"/>
48
          </copy>
49
          
50
          <copy todir="${targetDir}">
51
                  <fileset dir="${dist}" includes="**/**"/>
52
                  <fileset dir="${lib}" includes="**/**"/>
53
           </copy>
54
          
55
    <move todir="${extension-dir}/${plugin}/">
56
            <fileset dir="${dist}" includes="**/**"/>
57
    </move>
58
  </target>
59
</project>
60

    
61