Statistics
| Revision:

root / trunk / extensions / extOracleSpatial / build.xml @ 38571

History | View | Annotate | Download (7.19 KB)

1 14036 jldominguez@prodevelop.es
<project name="Oracle Spatial extension" default="generate-without-source" basedir=".">
2
3
  <description>Adds the Oracle Spatial driver</description>
4 15751 jmvivo
5 14162 jldominguez
  <!-- set global properties for this build -->
6 13991 jldominguez@prodevelop.es
  <property name="src" location="src"/>
7
  <property name="build" location="bin"/>
8
  <property name="dist"  location="dist"/>
9
  <property name="bindist"  location="./install/bin/gvSIG"/>
10
  <property name="lib"  location="lib"/>
11
  <property name="mainplugin" value="com.iver.cit.gvsig"/>
12 14028 fran.penarrubia@iver.es
  <property name="plugin" value="com.iver.cit.gvsig.oracle_spatial"/>
13 13991 jldominguez@prodevelop.es
  <!-- <property name="drivers-src" value="com.iver.ci
14
  t.gvsig.fmap.drivers.jdbc"/> -->
15 15751 jmvivo
          <import file="../binaries/ant/utilities.xml"/>
16 13991 jldominguez@prodevelop.es
  <property name="gvsiglibjar" value="gvsig-jdbcspatial"/>
17
  <property name="fmapjar" value="fmap-jdbcspatial"/>
18
  <property name="oraclejar" value="oracle_spatial"/>
19
  <property name="andami" location="../_fwAndami"/>
20
  <property name="extensionsDir" location="${andami}/gvSIG/extensiones"/>
21
  <property name="drivers-dir" location="${extensionsDir}/${mainplugin}/drivers/jdbc_spatial" />
22
23
        <property name="lib-dir" location="${extensionsDir}/${mainplugin}/lib"/>
24
        <property name="fmapLibs" location="../libFMap/lib" />
25
        <property name="andamiLibs" location="${andami}/lib" />
26
        <property name="andamiJar" location="${andami}/andami.jar"/>
27
        <property name="gvsigJar" location="${extensionsDir}/${mainplugin}/lib/${mainplugin}.jar"/>
28 15751 jmvivo
        <!--<property name="compile-classpath" value="${andamiJar}:${gvsigJar}:${andamiLibs}/beans.jar:${fmapLibs}/cms.jar:${fmapLibs}/driver-manager-1.1.jar:${fmapLibs}/fmap.jar:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${andamiLibs}/iver-utiles.jar:${fmapLibs}/jts-1.7.jar:${andamiLibs}/log4j-1.2.8.jar:${fmapLibs}/mysql-connector-java-3.1.7-bin.jar:${fmapLibs}/postgis-jdbc-driver.jar:${fmapLibs}/postgresql-74.213.jar" />-->
29 14028 fran.penarrubia@iver.es
30 14162 jldominguez
  <target name="init">
31 13991 jldominguez@prodevelop.es
    <!-- Create the time stamp -->
32
    <tstamp/>
33
    <!-- Create the build directory structure used by compile -->
34 17192 jldominguez
    <!-- <mkdir dir="${build}"/> -->
35 13991 jldominguez@prodevelop.es
    <mkdir dir="${dist}"/>
36
        <mkdir dir="${drivers-dir}" />
37
38
  </target>
39 17445 jmvivo
40 13991 jldominguez@prodevelop.es
          <target name="generate-without-source"
41
                          description="generate the distribution without the source file"
42 17192 jldominguez
                  depends="init,compile,create-jar,copy-data-files,copy-to-andami, clean">
43 13991 jldominguez@prodevelop.es
          </target>
44
45
        <!--                     -->
46
        <!--                     -->
47
        <!--  INSTALLATION TREE  -->
48
        <!--                     -->
49
        <!--                     -->
50
51
          <target name="generate-install-tree" description="Generate the installation tree." depends="init">
52 14028 fran.penarrubia@iver.es
53 13991 jldominguez@prodevelop.es
                  <!-- create dirs -->
54 14014 jldominguez@prodevelop.es
            <delete dir="${bindist}"/>
55 13991 jldominguez@prodevelop.es
            <mkdir dir="${bindist}"/>
56
            <mkdir dir="${bindist}/extensiones"/>
57
            <mkdir dir="${bindist}/extensiones/${plugin}"/>
58
            <mkdir dir="${bindist}/extensiones/${mainplugin}/drivers/jdbc_spatial"/>
59
60
                  <!-- includes="com/iver/cit/gvsig/fmap/drivers/jdbc/oracle/**" -->
61
                  <!-- put oracle driver in place -->
62
                  <jar jarfile="${bindist}/extensiones/${mainplugin}/drivers/jdbc_spatial/${oraclejar}.jar"
63
                          basedir="${build}"
64
                          includes="es/prodevelop/cit/gvsig/fmap/drivers/jdbc/oracle/**"
65
                  />
66 14028 fran.penarrubia@iver.es
67 13991 jldominguez@prodevelop.es
                  <!-- extension classes in place -->
68
            <jar jarfile="${bindist}/extensiones/${plugin}/${plugin}.jar" basedir="${build}"
69 14009 jldominguez@prodevelop.es
                    excludes="es/prodevelop/cit/gvsig/fmap/drivers/**">
70 14028 fran.penarrubia@iver.es
71 14009 jldominguez@prodevelop.es
                    <include name="es/prodevelop/cit/gvsig/**"/>
72
                    <include name="com/iver/**"/>
73
                  </jar>
74 13991 jldominguez@prodevelop.es
75
                  <!-- copy resource files -->
76
            <copy file="config/config.xml" todir="${bindist}/extensiones/${plugin}"/>
77 14028 fran.penarrubia@iver.es
78 13991 jldominguez@prodevelop.es
                <copy todir="${bindist}/extensiones/${plugin}">
79
                        <fileset dir="config" includes="text*.properties"/>
80
                </copy>
81 14028 fran.penarrubia@iver.es
82 13991 jldominguez@prodevelop.es
                <copy todir="${bindist}/extensiones/${plugin}/images">
83
                        <fileset dir="images/" includes="*"/>
84
                </copy>
85 14028 fran.penarrubia@iver.es
86 13991 jldominguez@prodevelop.es
                <copy todir="${bindist}/extensiones/${plugin}/about">
87
                        <fileset dir="about/" includes="*"/>
88
                </copy>
89 14028 fran.penarrubia@iver.es
90 13991 jldominguez@prodevelop.es
                <copy todir="${bindist}/extensiones/${plugin}/dbf">
91
                        <fileset dir="dbf/" includes="*"/>
92
                </copy>
93 14028 fran.penarrubia@iver.es
94 13991 jldominguez@prodevelop.es
                  <!-- copy lib files to gvsig main lib flder -->
95 14014 jldominguez@prodevelop.es
                  <!--
96 13991 jldominguez@prodevelop.es
            <copy todir="${bindist}/extensiones/${mainplugin}/lib">
97
                        <fileset dir="lib/" includes="ojdbc*.jar"/>
98
                </copy>
99 14014 jldominguez@prodevelop.es
                  -->
100 13991 jldominguez@prodevelop.es
101
            <!-- PROVISIONAL -->
102
            <copy todir="${bindist}/extensiones/${mainplugin}/lib">
103
                          <fileset dir="${bindist}/extensiones/${mainplugin}/drivers/jdbc_spatial"
104
                                  includes="${oraclejar}.jar"/>
105
            </copy>
106 14028 fran.penarrubia@iver.es
            <!-- FIN PROVISIONAL -->
107 13991 jldominguez@prodevelop.es
108
          </target>
109 14028 fran.penarrubia@iver.es
110 13991 jldominguez@prodevelop.es
        <!--                     -->
111
        <!--                     -->
112
        <!--  INSTALLATION TREE  -->
113
        <!--                     -->
114
        <!--                     -->
115
116
        <target name="batch-build"
117
                        description="compile the sources, create the jar file"
118
                        depends="init,compile,create-jar,copy-data-files,copy-to-andami">
119
        </target>
120
121 14162 jldominguez
        <target name="compile" description="compile the source" >
122 17445 jmvivo
                <antcall target="gvSIG-import-build-number"/>
123 13991 jldominguez@prodevelop.es
                <!-- Compile the Java code from ${src} to ${build} -->
124
                <mkdir dir="${build}" />
125 15751 jmvivo
                <loadEclipseClasspath project="${basedir}"/>
126
                <gvSIG-javac
127
                        classpath="${eclipseClasspath}"
128
                />
129 13991 jldominguez@prodevelop.es
        </target>
130
131
        <target name="create-jar"
132
                        description="Creates the plugin jar">
133
134
                  <jar jarfile="${dist}/${oraclejar}.jar" basedir="${build}"
135
                          includes="es/prodevelop/cit/gvsig/fmap/drivers/jdbc/oracle/**"
136
                  />
137 14028 fran.penarrubia@iver.es
138 13991 jldominguez@prodevelop.es
            <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"
139 14009 jldominguez@prodevelop.es
                    excludes="es/prodevelop/cit/gvsig/fmap/drivers/**">
140
141
                    <include name="es/prodevelop/cit/gvsig/**"/>
142
                    <include name="com/iver/**"/>
143
144
                </jar>
145 14028 fran.penarrubia@iver.es
146 13991 jldominguez@prodevelop.es
        </target>
147 14028 fran.penarrubia@iver.es
148 34510 fdiaz
        <target name="copy-data-files" depends="make-package-info">
149 14028 fran.penarrubia@iver.es
150 14025 josemanuel.vivo@iver.es
            <copy file="config/config.xml" todir="${dist}"  overwrite="true"/>
151 14028 fran.penarrubia@iver.es
152 14025 josemanuel.vivo@iver.es
                <copy todir="${dist}"  overwrite="true">
153 13991 jldominguez@prodevelop.es
                        <fileset dir="config" includes="text*.properties"/>
154
                </copy>
155 14028 fran.penarrubia@iver.es
156 14025 josemanuel.vivo@iver.es
                <copy todir="${dist}/images"  overwrite="true">
157 13991 jldominguez@prodevelop.es
                        <fileset dir="images/" includes="*"/>
158
                </copy>
159 14028 fran.penarrubia@iver.es
160 14025 josemanuel.vivo@iver.es
                <copy todir="${dist}/about"  overwrite="true">
161 13991 jldominguez@prodevelop.es
                        <fileset dir="about/" includes="*"/>
162
                </copy>
163 14028 fran.penarrubia@iver.es
164 14025 josemanuel.vivo@iver.es
                <copy todir="${dist}/dbf"  overwrite="true">
165 13991 jldominguez@prodevelop.es
                        <fileset dir="dbf/" includes="*"/>
166
                </copy>
167 14028 fran.penarrubia@iver.es
168 34510 fdiaz
                <copy file="package.info" todir="${dist}"/>
169
170 13991 jldominguez@prodevelop.es
        </target>
171 14028 fran.penarrubia@iver.es
172 13991 jldominguez@prodevelop.es
        <target name="copy-to-andami">
173 14014 jldominguez@prodevelop.es
174 14025 josemanuel.vivo@iver.es
                <copy todir="${lib-dir}"  overwrite="true">
175 14014 jldominguez@prodevelop.es
                        <!-- <fileset dir="lib/" includes="sdoapi.jar*"/> -->
176 13991 jldominguez@prodevelop.es
                        <fileset dir="lib/" includes="ojdbc*.jar*"/>
177
                </copy>
178
179
<!--                  <copy todir="${drivers-dir}">
180
                          <fileset dir="${dist}" includes="${driverjar}.jar"/>
181
                 </copy>
182
            <copy todir="${extensionsDir}/${plugin}/">
183
                    <fileset dir="${dist}" excludes="${driverjar}.jar,${driverjar}-driver.jar"/>
184
            </copy>
185
            <copy todir="${lib-dir}">
186
                    <fileset dir="${dist}" includes="${driverjar}-driver.jar"/>
187
            </copy> -->
188
189 14025 josemanuel.vivo@iver.es
                  <copy todir="${drivers-dir}"  overwrite="true">
190
                          <fileset dir="${dist}" includes="${oraclejar}.jar" />
191 13991 jldominguez@prodevelop.es
                 </copy>
192 14025 josemanuel.vivo@iver.es
            <copy todir="${extensionsDir}/${plugin}/" overwrite="true">
193 13991 jldominguez@prodevelop.es
                    <fileset dir="${dist}" includes="${plugin}.jar"/>
194
                    <fileset dir="${dist}" excludes="*.jar"/>
195
            </copy>
196
            <!-- PROVISIONAL -->
197 14025 josemanuel.vivo@iver.es
            <copy todir="${lib-dir}/"  overwrite="true">
198 13991 jldominguez@prodevelop.es
                          <fileset dir="${dist}" includes="${oraclejar}.jar"/>
199
            </copy>
200 14028 fran.penarrubia@iver.es
            <!-- FIN PROVISIONAL -->
201
202 13991 jldominguez@prodevelop.es
        </target>
203 14028 fran.penarrubia@iver.es
204 15751 jmvivo
205 13991 jldominguez@prodevelop.es
  <target name="clean"
206
        description="clean up" >
207
    <!-- Delete the ${build} and ${dist} directory trees -->
208 15751 jmvivo
        <delete>
209
                <fileset dir="${dist}" includes="**/*"/>
210
                <fileset dir="${build}" includes="**/*"/>
211
        </delete>
212 13991 jldominguez@prodevelop.es
  </target>
213
</project>