Statistics
| Revision:

svn-gvsig-desktop / trunk / extensions / extGeoreferencing / build.xml @ 5293

History | View | Annotate | Download (2.57 KB)

1
<project name="Generar extension en Andami para Georeferenciación" default="generate-without-source" basedir=".">
2
    <description>
3
        Instala el plugin de Georeferenciación 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="images"  location="images"/>
10
  <property name="mainplugin" value="com.iver.cit.gvsig"/>
11
  <property name="plugin" value="org.gvsig.georeferencing"/>
12
  <property name="fmap-plugin" value="fmap-georeferencing"/>
13
  <property name="driverjar" value="georeferencing"/>
14
  <property name="extensionDir" location="../_fwAndami/gvSIG/extensiones"/>
15
  <property name="drivers-dir" location="${extensionDir}/${mainplugin}/drivers" />
16
        
17
  <target name="init">
18
    <!-- Create the time stamp -->
19
    <tstamp/>
20
    <!-- Create the build directory structure used by compile -->
21
    <mkdir dir="${build}"/>
22
    <mkdir dir="${dist}"/>
23
          <!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
24
          <buildnumber/> 
25
          
26
  </target>
27

    
28
  <target name="generate-without-source"
29
                  description="generate the distribution without the source file">
30
  
31
    <!-- Create the distribution directory -->
32
    <mkdir dir="${dist}"/>
33
        <mkdir dir="${drivers-dir}/wcs" />
34
                
35
          <!-- Jars de las extensiones -->
36
          <jar jarfile="${dist}/${plugin}.jar" basedir="${build}" 
37
                      includes="org/gvsig/georeferencing/**" excludes="com/iver/cit/gvsig/fmap/**"/>
38
          <jar jarfile="${dist}/${fmap-plugin}.jar" basedir="${build}" 
39
                                includes="com/iver/cit/gvsig/fmap/**"/>
40
          
41
          <copy file="config/config.xml" todir="${dist}"/>
42
    <copy file="config/plugin.dtd" todir="${dist}"/>
43
    <copy todir="${dist}">
44
            <fileset dir="." includes="text*.properties"/>
45
    </copy>
46
          <mkdir dir="${dist}/images" />
47
          <copy todir="${dist}/images">
48
                  <fileset dir="images" includes="*"/>
49
         </copy>
50
          
51
          <copy todir="${extensionDir}/${mainplugin}/images">
52
                            <fileset dir="images" includes="*Cursor.gif"/>
53
           </copy>
54
                    
55
          <move todir="${extensionDir}/${plugin}/">
56
                          <fileset dir="${dist}" includes="${plugin}.jar"/>
57
          </move>
58
          <move todir="${extensionDir}/${mainplugin}/lib">
59
                          <fileset dir="${dist}" includes="${fmap-plugin}.jar"/>
60
          </move>
61
          <move todir="${extensionDir}/${plugin}/">
62
                      <fileset dir="${dist}" includes="**/**"/>
63
          </move>
64
                  
65
  </target>
66

    
67
  <target name="clean"
68
        description="clean up" >
69
    <!-- Delete the ${build} and ${dist} directory trees -->
70
    <delete dir="${dist}"/>
71
  </target>
72
</project>
73