Statistics
| Revision:

root / branches / gvSIG_WMSv2 / extensions / extWMS / build.xml @ 12217

History | View | Annotate | Download (3.69 KB)

1 2277 vcaballero
<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.wms"/>
11
  <property name="gvsiglibjar" value="gvsig-wms"/>
12
  <property name="fmapjar" value="fmap-wms"/>
13
  <property name="driverjar" value="wms"/>
14 3506 jaume
  <property name="cqjar" value="cq-remote-clients"/>
15 3692 jaume
  <property name="extensionDir" location="../_fwAndami/gvSIG/extensiones"/>
16 2277 vcaballero
  <property name="drivers-dir" location="${extensionDir}/${mainplugin}/drivers" />
17 3519 jaume
  <property name="lib-dir" location="${extensionDir}/${mainplugin}/lib"/>
18 2277 vcaballero
  <target name="init">
19
    <!-- Create the time stamp -->
20
    <tstamp/>
21
    <!-- Create the build directory structure used by compile -->
22
    <mkdir dir="${build}"/>
23
    <mkdir dir="${dist}"/>
24
25
  </target>
26
27
  <target name="generate-without-source"
28
                  description="generate the distribution without the source file">
29
    <!-- Create the distribution directory -->
30
    <mkdir dir="${dist}"/>
31
32
    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
33 3572 jaume
    <jar jarfile="${dist}/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**"
34
            excludes="com/iver/cit/gvsig/fmap/**"
35
    />
36 3528 jaume
          <jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}"
37
                            includes="com/iver/cit/gvsig/fmap/**" />
38
<!--                            excludes="com/iver/cit/gvsig/fmap/drivers/wms/**" />-->
39 2277 vcaballero
          <copy file="config/config.xml" todir="${dist}"/>
40
    <copy todir="${dist}">
41 2519 ldiaz
            <fileset dir="config" includes="text*.properties"/>
42 2277 vcaballero
    </copy>
43 3592 jaume
          <copy todir="${dist}/images">
44
                      <fileset dir="images/" includes="*"/>
45
          </copy>
46
          <copy todir="${lib-dir}">
47 2277 vcaballero
            <fileset dir="./lib" includes="*.jar,*.zip"/>
48
            <fileset dir="." includes=".keystore"/>
49 3517 jaume
    </copy>
50 2277 vcaballero
          <move todir="${extensionDir}/${mainplugin}/lib">
51
                  <fileset dir="${dist}" includes="${gvsiglibjar}.jar"/>
52 3506 jaume
                <fileset dir="${dist}" includes="${fmapjar}.jar"/>
53
                <fileset dir="${dist}" includes="${cqjar}.jar"/>
54 2277 vcaballero
         </move>
55
    <move todir="${extensionDir}/${plugin}/">
56
            <fileset dir="${dist}" includes="**/**"/>
57
    </move>
58
  </target>
59
60
61 3572 jaume
<!--   <target name="generate-with-source" description="generate the distribution with the source file" >
62
     Create the distribution directory
63 2277 vcaballero
    <mkdir dir="${dist}"/>
64

65 3572 jaume
     Put everything in ${build} into the MyProject-${DSTAMP}.jar file
66
    <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"
67
            excludes="com/iver/cit/gvsig/fmap/**"/>
68 3528 jaume
          <jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}/com/iver/cit/gvsig/fmap"
69
                            includes="com/iver/cit/gvsig/fmap/**" />
70 3572 jaume
           <__                 excludes="com/iver/cit/gvsig/fmap/drivers/wms/**" /> __>
71 3528 jaume
          <copy file="config/config.xml" todir="${dist}"/>
72 2277 vcaballero
    <copy todir="${dist}">
73
            <fileset dir="." includes="text*.properties"/>
74
    </copy>
75 3519 jaume
          <copy todir="${lib-dir}">
76
              <fileset dir="./lib" includes="*.jar,*.zip"/>
77
                     <fileset dir="." includes=".keystore"/>
78
    </copy>
79 3443 jaume
          <copy todir="${dist}/images">
80
            <fileset dir="images/" includes="*"/>
81
         </copy>
82 2277 vcaballero
    <copy todir="${dist}">
83
            <fileset dir="." includes="${src}"/>
84
    </copy>
85
    <copy todir="${dist}/images">
86
            <fileset dir="images/" includes="*"/>
87
    </copy>
88
    <move todir="${extension-dir}/${plugin}/">
89
            <fileset dir="${dist}" includes="**/**"/>
90
    </move>
91 3572 jaume
  </target> -->
92 2277 vcaballero
93
  <target name="clean"
94
        description="clean up" >
95
    <!-- Delete the ${build} and ${dist} directory trees -->
96
    <delete dir="${dist}"/>
97
  </target>
98
</project>