Statistics
| Revision:

svn-gvsig-desktop / branches / v10alpha_tecnimap / extensions / extRasterTools / build.xml @ 39398

History | View | Annotate | Download (3.58 KB)

1
<project name="Generar extension en Andami" default="generate-without-source" basedir=".">
2
    <description>
3
        Instala el plugin 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="andami" location="../_fwAndami"/>
10
  <property name="extensionsDir" location="${andami}/gvSIG/extensiones"/>
11
        <property name="andamiJar" location="${andami}/andami.jar"/>
12
        <property name="gvsigJar" location="${extensionsDir}/com.iver.cit.gvsig/lib/com.iver.cit.gvsig.jar"/>
13
        <property name="cmsLibs" location="../libCq CMS for java/lib" />
14
        <property name="fmapLibs" location="../libFMap/lib" />
15
        <property name="andamiLibs" location="${andami}/lib" />
16
        <property name="compile-classpath" value="${andamiJar}:${gvsigJar}:${fmapLibs}/cms.jar:${fmapLibs}/fmap.jar:${andamiLibs}/iver-utiles.jar:${cmsLibs}/jecw-0.0.1.jar:${cmsLibs}/jecwcompress-0.1.0.jar:${cmsLibs}/jgdal-0.1.0.jar:${cmsLibs}/jmrsid-0.0.2.jar" />
17

    
18
  <!--Plugins-->
19
  <property name="plugin" value="org.gvsig.rasterTools"/>
20
  <property name="jarName" value="${plugin}.jar"/>
21

    
22
  <target name="init">
23
    <!-- Create the time stamp -->
24
    <tstamp/>
25
    <!-- Create the build directory structure used by compile -->
26
    <mkdir dir="${build}"/>
27
    <mkdir dir="${dist}"/>
28
          <!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
29
          <buildnumber/>
30
  </target>
31

    
32
  <target name="generate-without-source"
33
                  description="generate the distribution without the source file">
34
                  
35
    <!-- Create the distribution directory -->
36
    <mkdir dir="${dist}"/>
37
                
38
    <!-- Jars de las extensiones -->
39
    <jar jarfile="${dist}/${jarName}" basedir="${build}" 
40
            includes="org/gvsig/rasterTools/**"/>
41
                    
42
          <!-- Instala extensión salvar a raster -->
43
    <move todir="${extensionsDir}/${plugin}/">
44
            <fileset dir="${dist}" includes="${jarName}"/>
45
    </move>
46
          <copy file="config/config.xml" todir="${extensionsDir}/${plugin}"/>
47
          <copy file="config/plugin.dtd" todir="${extensionsDir}/${plugin}"/>
48
          <copy todir="${extensionsDir}/${plugin}">
49
                      <fileset dir="." includes="text*.properties"/>
50
          </copy>
51
          <mkdir dir="${extensionsDir}/${plugin}/images"/>
52
          <copy todir="${extensionsDir}/${plugin}/images">
53
                      <fileset dir="./images/" includes="*"/>
54
          </copy>
55
          
56
  </target>
57

    
58
        <target name="batch-build"
59
                        description="compile the sources, create the jar file"
60
                        depends="compile,create-jar,copy-data-files,move-to-andami">
61
        </target>
62

    
63
        <target name="compile" description="compile the source" >
64
                <!-- Compile the Java code from ${src} to ${build} -->
65
                <mkdir dir="${build}" />
66
                <javac  srcdir="${src}"
67
                        destdir="${build}"
68
                        classpath="${compile-classpath}"/>
69
        </target>
70
        
71
        <target name="create-jar"
72
                        description="Creates the plugin jar">
73
                <mkdir dir="${dist}"/>
74
            <jar jarfile="${dist}/${jarName}" basedir="${build}"/>
75
        </target>
76

    
77
        <target name="copy-data-files">
78
            <copy file="config/config.xml" todir="${dist}"/>
79
                  <copy file="config/plugin.dtd" todir="${dist}"/>
80
                <copy todir="${dist}">
81
                        <fileset dir="." includes="text*.properties"/>
82
                </copy>
83
                <copy todir="${dist}/images">
84
                        <fileset dir="images/" includes="*"/>
85
                </copy>
86
        </target>
87
        
88
        <target name="move-to-andami">
89
            <move todir="${extensionsDir}/${plugin}/">
90
                    <fileset dir="${dist}" includes="**/**"/>
91
            </move>
92
        </target>
93

    
94
  <target name="clean"
95
        description="clean up" >
96
    <!-- Delete the ${build} and ${dist} directory trees -->
97
    <delete dir="${dist}"/>
98
    <delete dir="${build}"/>
99
  </target>
100
</project>
101