Statistics
| Revision:

svn-gvsig-desktop / tags / v2_0_0_Build_2004 / extensions / extWCS / build.xml @ 44178

History | View | Annotate | Download (5.58 KB)

1 26947 jmvivo
<project name="WCS" default="generate-without-source" basedir=".">
2 1877 luisw
    <description>
3
        Instala el plugin en Andami
4
    </description>
5
  <!-- set global properties for this build -->
6 13309 jmvivo
  <import file="../binaries/ant/utilities.xml"/>
7 1877 luisw
  <property name="src" location="src"/>
8
  <property name="build" location="bin"/>
9 27098 jmvivo
  <property name="lib" location="lib"/>
10 13484 cesar
  <property name="src-test" location="src-test"/>
11
  <property name="build-test" location="bin-test"/>
12 1877 luisw
  <property name="dist"  location="dist"/>
13
  <property name="mainplugin" value="com.iver.cit.gvsig"/>
14 4505 jaume
  <property name="plugin" value="com.iver.cit.gvsig.wcs"/>
15
  <property name="gvsiglibjar" value="gvsig-wcs"/>
16
  <property name="fmapjar" value="fmap-wcs"/>
17 5644 cesar
        <property name="extensionsDir" location="../_fwAndami/gvSIG/extensiones"/>
18
        <property name="lib-dir" location="${extensionsDir}/${mainplugin}/lib"/>
19 13309 jmvivo
20
21 1877 luisw
  <target name="init">
22
    <!-- Create the time stamp -->
23
    <tstamp/>
24
    <!-- Create the build directory structure used by compile -->
25
    <mkdir dir="${build}"/>
26
    <mkdir dir="${dist}"/>
27 13309 jmvivo
28 1877 luisw
  </target>
29 26947 jmvivo
30
        <target name="update-referenced-libraries">
31
                <copy todir="${lib}" failonerror="false">
32
                        <fileset dir="${workspaceDir}/libProjection/dist" includes="*.jar,*.zip"/>
33
                </copy>
34
                <copy todir="${lib}" failonerror="false">
35
                        <fileset dir="${workspaceDir}/libTools/dist" includes="*.jar,*.zip"/>
36
                </copy>
37
                <copy todir="${lib}" failonerror="false">
38
                        <fileset dir="${workspaceDir}/libRemoteServices/dist" includes="*.jar,*.zip"/>
39
                </copy>
40
                <copy todir="${lib}" failonerror="false">
41
                        <fileset dir="${workspaceDir}/libRaster/dist" includes="*.jar,*.zip"/>
42
                </copy>
43
                <copy todir="${lib}" failonerror="false">
44
                        <fileset dir="${workspaceDir}/libMetadata/dist" includes="*.jar,*.zip"/>
45
                </copy>
46
                <copy todir="${lib}" failonerror="false">
47
                        <fileset dir="${workspaceDir}/libFMap_geometries/dist" includes="org.gvsig.fmap.geometry.jar"/>
48
                </copy>
49
                <copy todir="${lib}" failonerror="false">
50
                        <fileset dir="${workspaceDir}/libFMap_dal/dist" includes="org.gvsig.fmap.dal.jar"/>
51
                </copy>
52
                <copy todir="${lib}" failonerror="false">
53
                        <fileset dir="${workspaceDir}/libFMap_mapcontext/dist" includes="org.gvsig.fmap.mapcontext.jar"/>
54
                </copy>
55
                <copy todir="${lib}" failonerror="false">
56
                        <fileset dir="${workspaceDir}/libFMap_controls/dist" includes="org.gvsig.fmap.control.jar"/>
57
                </copy>
58 1877 luisw
59 26947 jmvivo
        </target>
60
61
62
  <target name="generate-without-source_old"
63 1885 luisw
                  description="generate the distribution without the source file">
64 1877 luisw
    <!-- Create the distribution directory -->
65
    <mkdir dir="${dist}"/>
66 13309 jmvivo
67 1877 luisw
    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
68 4505 jaume
    <jar jarfile="${dist}/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**"
69
            excludes="com/iver/cit/gvsig/fmap/**"
70
    />
71 1877 luisw
          <jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}"
72 4505 jaume
                            includes="com/iver/cit/gvsig/fmap/**" />
73
<!--                            excludes="com/iver/cit/gvsig/fmap/drivers/wcs/**" />-->
74 1877 luisw
          <copy file="config/config.xml" todir="${dist}"/>
75 10187 jmvivo
          <copy file="build.number" todir="${dist}"/>
76 1877 luisw
    <copy todir="${dist}">
77 4505 jaume
            <fileset dir="config" includes="text*.properties"/>
78 1877 luisw
    </copy>
79 4505 jaume
          <!--copy todir="${dist}/images">
80
                      <fileset dir="images/" includes="*"/>
81
          </copy>
82
          <copy todir="${lib-dir}">
83 1877 luisw
            <fileset dir="./lib" includes="*.jar,*.zip"/>
84
            <fileset dir="." includes=".keystore"/>
85 4505 jaume
    </copy-->
86 5644 cesar
          <move todir="${extensionsDir}/${mainplugin}/lib">
87 1877 luisw
                  <fileset dir="${dist}" includes="${gvsiglibjar}.jar"/>
88 4505 jaume
                <fileset dir="${dist}" includes="${fmapjar}.jar"/>
89 5644 cesar
                <fileset dir="${dist}" includes="${remoteclientjar}"/>
90 1877 luisw
         </move>
91 5644 cesar
    <move todir="${extensionsDir}/${plugin}/">
92 1877 luisw
            <fileset dir="${dist}" includes="**/**"/>
93
    </move>
94
  </target>
95 5644 cesar
96 26947 jmvivo
          <target name="generate-without-source"
97
                          depends="create-jar,copy-data-files,move-to-andami"
98
                          description="generate the distribution without the source file"/>
99 5644 cesar
100 26947 jmvivo
101 5644 cesar
        <target name="batch-build"
102
                        description="compile the sources, create the jar file"
103 26947 jmvivo
                        depends="compile,create-jar,copy-data-files,move-to-andami">
104 5644 cesar
        </target>
105
106
        <target name="compile" description="compile the source" >
107
                <!-- Compile the Java code from ${src} to ${build} -->
108 13309 jmvivo
                <antcall target="gvSIG-import-build-number"/>
109 5644 cesar
                <mkdir dir="${build}" />
110 13309 jmvivo
                <loadEclipseClasspath project="${basedir}"/>
111
                <gvSIG-javac
112
                        classpath="${eclipseClasspath}"/>
113 5644 cesar
        </target>
114 13309 jmvivo
115 5644 cesar
        <target name="create-jar"
116
                        description="Creates the plugin jar">
117
                <mkdir dir="${dist}/lib"/>
118 5662 cesar
            <jar jarfile="${dist}/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**"
119 5644 cesar
                    excludes="com/iver/cit/gvsig/fmap/**"
120
            />
121
                  <jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}"
122
                                    includes="com/iver/cit/gvsig/fmap/**" />
123
        </target>
124
125
        <target name="copy-data-files">
126
            <copy file="config/config.xml" todir="${dist}"/>
127 10187 jmvivo
                <copy file="build.number" todir="${dist}"/>
128 5644 cesar
                <copy todir="${dist}">
129
                        <fileset dir="config" includes="text*.properties"/>
130
                </copy>
131
        </target>
132 13309 jmvivo
133 5644 cesar
        <target name="move-to-andami">
134
                  <move todir="${extensionsDir}/${mainplugin}/lib">
135
                        <fileset dir="${dist}" includes="${fmapjar}.jar"/>
136 26947 jmvivo
                          <fileset dir="${dist}" includes="${remoteclientjar}"/>
137 5644 cesar
                  </move>
138
            <move todir="${extensionsDir}/${plugin}/">
139
                    <fileset dir="${dist}" includes="**/**"/>
140
            </move>
141
        </target>
142
143 13309 jmvivo
144 5644 cesar
        <target name="clean"
145
                description="clean up" >
146 4505 jaume
            <!-- Delete the ${build} and ${dist} directory trees -->
147 5644 cesar
                <delete dir="${dist}"/>
148
                <delete dir="${build}"/>
149
        </target>
150 13479 cesar
151
        <target name="run-tests" depends="batch-build,compile-tests">
152
                <antcall target="generic-run-tests">
153
                        <param name="TestSuite.Name" value="com.iver.cit.gvsig.wcs.AllTests"/>
154
                </antcall>
155
        </target>
156 1877 luisw
</project>