Statistics
| Revision:

svn-gvsig-desktop / trunk / extensions / extCatalogYNomenclator / build.xml @ 3614

History | View | Annotate | Download (4.03 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="es.gva.cit.gvsig.catalogClient"/>
11
  <property name="pluginGaz" value="es.gva.cit.gvsig.gazetteer"/>
12
  <property name="gvsiglibjar" value="gvsig-catalogClient"/>
13
  <property name="extensionDir" location="../Andami/gvSIG/extensiones"/>
14
  <property name="catProtoDir" value="../CatalogClientPrototype"/>
15
  <property name="remoteClientsDir" value="../Cq RemoteClients"/>
16
  <property name="wfsDir" value="../gvSIG_WFS"/>        
17
  <property name="postgisDir" value="../gvSIG_JDBC"/>        
18
 
19
  
20
  <target name="init">
21
    <!-- Create the time stamp -->
22
    <tstamp/>
23
    <!-- Create the build directory structure used by compile -->
24
    <mkdir dir="${build}"/>
25
    <mkdir dir="${dist}"/>
26
          <!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
27
          <buildnumber/> 
28
          
29
  </target>
30

    
31
  <target name="generate-without-source"
32
                  description="generate the distribution without the source file">
33
                  <!-- depends="wcs-driver" -->
34
    <!-- Create the distribution directory -->
35
    <mkdir dir="${dist}"/>
36
    <mkdir dir="${dist}/lib"/>
37
                
38
    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
39
    <jar jarfile="${dist}/lib/catCliProto.jar" basedir="${catProtoDir}/bin"/>
40
          <jar jarfile="${dist}/lib/remoteClients.jar" basedir="${remoteClientsDir}/bin"/>
41
          <jar jarfile="${dist}/lib/wfsClient.jar" basedir="${wfsDir}/bin"/>
42
          <jar jarfile="${dist}/lib/postgis.jar" basedir="${postgisDir}/bin"/>
43
          <jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}" includes="es/gva/cit/gvsig/catalogClient/**"/>
44
          <jar jarfile="${dist}/lib/${pluginGaz}.jar" basedir="${build}" includes="es/gva/cit/gvsig/gazetteer/**"/>
45
          <copy file="config/config.xml" todir="${dist}"/>
46
    <copy file="config/plugin.dtd" todir="${dist}"/>
47
    <copy todir="${dist}">
48
            <fileset dir="." includes="text*.properties"/>
49
    </copy>
50
    <copy todir="${dist}/images">
51
            <fileset dir="images/" includes="*"/>
52
    </copy>
53
    <copy todir="${dist}">
54
            <!--fileset dir="./lib" includes="*.jar,*.zip"/ -->
55
            <fileset dir="." includes=".keystore"/>
56
             <fileset dir="${catProtoDir}" includes="servers.txt"/>
57
        </copy>
58
    <copy todir="${dist}/lib">
59
            <fileset dir="${catProtoDir}/lib" includes="*.jar"/>
60
    </copy>
61
          <move todir="${extensionDir}/${plugin}/">
62
            <fileset dir="${dist}" includes="**/**"/>
63
    </move>
64
          <delete file="${extensionDir}/${plugin}/lib/xercesImpl.jar"/>
65
          <delete file="${extensionDir}/${plugin}/lib/xml-apis.jar"/>
66
                  
67
  </target>
68

    
69
  <target name="generate-with-source" description="generate the distribution with the source file" >
70
    <!-- Create the distribution directory -->
71
    <mkdir dir="${dist}"/>
72

    
73
    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
74
    <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/>
75
    <copy file="config/config.xml" todir="${dist}"/>
76
    <copy file="config/plugin.dtd" todir="${dist}"/>
77
    <copy todir="${dist}">
78
            <fileset dir="." includes="text*.properties"/>
79
    </copy>
80
    <copy todir="${dist}">
81
            <fileset dir="." includes="${src}"/>
82
    </copy>
83
    <copy todir="${dist}/images">
84
            <fileset dir="images/" includes="*"/>
85
    </copy>
86
    <!--copy todir="${dist}">
87
            <fileset dir="./lib" includes="*.jar,*.zip"/>
88
    </copy-->
89
    <move todir="${extension-dir}/${plugin}/">
90
            <fileset dir="${dist}" includes="**/**"/>
91
    </move>
92
   
93
          
94
  </target>
95

    
96
  <target name="clean"
97
        description="clean up" >
98
    <!-- Delete the ${build} and ${dist} directory trees -->
99
    <delete  file="${extensiones}/es/gva/cit/gvsig/catalogClient/lib/xercesImpl.jar"/>
100
        <delete file="${extensiones}/es/gva/cit/gvsig/catalogClient/lib/xml-apis.jar" />
101
        
102
  </target>
103

    
104
</project>
105