Statistics
| Revision:

svn-gvsig-desktop / trunk / extensions / extJDBC / build.xml @ 2269

History | View | Annotate | Download (2.82 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="mainplugin" value="com.iver.cit.gvsig"/>
10
  <property name="plugin" value="com.iver.cit.gvsig.jdbc_spatial"/>
11
  <property name="gvsiglibjar" value="gvsig-jdbcspatial"/>
12
  <property name="fmapjar" value="fmap-jdbcspatial"/>
13
  <property name="driverjar" value="jdbc"/>
14
  <property name="extensionDir" location="../Andami/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
          
24
  </target>
25

    
26
  <target name="generate-without-source"
27
                  description="generate the distribution without the source file">
28
    <!-- Create the distribution directory -->
29
    <mkdir dir="${dist}"/>
30
        <mkdir dir="${drivers-dir}/jdbc_spatial" />
31
                
32
    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
33
    <jar jarfile="${dist}/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**"/>
34
          <copy file="config/config.xml" todir="${dist}"/>
35
    <copy todir="${dist}">
36
            <fileset dir="." includes="text*.properties"/>
37
    </copy>
38
    <!-- <copy todir="${dist}">
39
            <fileset dir="./lib" includes="*.jar,*.zip"/>
40
            <fileset dir="." includes=".keystore"/>
41
    </copy> -->
42
          <move todir="${extensionDir}/${mainplugin}/lib">
43
                  <fileset dir="${dist}" includes="${gvsiglibjar}.jar"/>
44
                 <fileset dir="${dist}" includes="${fmapjar}.jar"/>
45
         </move>
46
    <move todir="${extensionDir}/${plugin}/">
47
            <fileset dir="${dist}" includes="**/**"/>
48
    </move>
49
  </target>
50

    
51

    
52
  <target name="generate-with-source" description="generate the distribution with the source file" >
53
    <!-- Create the distribution directory -->
54
    <mkdir dir="${dist}"/>
55

    
56
    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
57
    <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/>
58
    <copy file="config/config.xml" todir="${dist}"/>
59
    <copy todir="${dist}">
60
            <fileset dir="." includes="text*.properties"/>
61
    </copy>
62
    <copy todir="${dist}">
63
            <fileset dir="." includes="${src}"/>
64
    </copy>
65
    <copy todir="${dist}/images">
66
            <fileset dir="images/" includes="*"/>
67
    </copy>
68
    <move todir="${extension-dir}/${plugin}/">
69
            <fileset dir="${dist}" includes="**/**"/>
70
    </move>
71
  </target>
72

    
73
  <target name="clean"
74
        description="clean up" >
75
    <!-- Delete the ${build} and ${dist} directory trees -->
76
    <delete dir="${dist}"/>
77
  </target>
78
</project>
79