root / branches / v2_0_0_prep / libraries / libFMap_dataDB / build.xml @ 23859
History | View | Annotate | Download (4.38 KB)
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
---|---|
2 |
<!-- ======================================================================
|
3 |
libFMap_dataDB
|
4 |
Build library libFMap_dataDB
|
5 |
|
6 |
jmvivo
|
7 |
====================================================================== -->
|
8 |
<project name="libFMap_dataDB" default="batch-build"> |
9 |
<description>
|
10 |
Build del libDataStore |
11 |
</description>
|
12 |
<dirname file="${ant.file.libFMap_dataDB}" property="proyectDir"/> |
13 |
<import file="${proyectDir}/../binaries/ant/utilities.xml"/> |
14 |
|
15 |
<property name="src" location="${proyectDir}/src"/> |
16 |
<property name="src-test" location="${proyectDir}/src-test"/> |
17 |
<property name="build" location="${proyectDir}/bin"/> |
18 |
<property name="build-test" location="${proyectDir}/bin-test"/> |
19 |
<property name="dist" location="${proyectDir}/dist"/> |
20 |
|
21 |
<!-- H2 -->
|
22 |
<property name="h2-jarName" value="org.gvsig.fmap.data.db.h2.jar"/> |
23 |
<property name="h2-jarIncludes" value="org/gvsig/fmap/data/feature/db/jdbc/h2/**/**"/> |
24 |
<property name="h2-jarExcludes" value=""/> |
25 |
|
26 |
<!-- Postgresql -->
|
27 |
<property name="postgresql-jarName" value="org.gvsig.fmap.data.db.postgresql.jar"/> |
28 |
<property name="postgresql-jarIncludes" value="org/gvsig/fmap/data/feature/db/jdbc/postgresql/**/**"/> |
29 |
<property name="postgresql-jarExcludes" value=""/> |
30 |
|
31 |
<!-- Postgresql-bin -->
|
32 |
<property name="postgresqlbin-jarName" value="org.gvsig.fmap.data.db.postgresqlbin.jar"/> |
33 |
<property name="postgresqlbin-jarIncludes" value="org/gvsig/fmap/data/feature/db/jdbc/postgresqlbin/**/**"/> |
34 |
<property name="postgresqlbin-jarExcludes" value=""/> |
35 |
|
36 |
<!-- Common -->
|
37 |
<property name="common-jarName" value="org.gvsig.fmap.data.db.jar"/> |
38 |
<property name="common-jarIncludes" value="**/**"/> |
39 |
<property name="common-jarExcludes" value=".svn,${h2-jarIncludes},${postgresql-jarIncludes},${postgresqlbin-jarIncludes}"/> |
40 |
|
41 |
<!-- =================================
|
42 |
target: generate-source
|
43 |
================================= -->
|
44 |
<target name="generate-source" description="--> genera el tar de fuentes"> |
45 |
<!-- TODO -->
|
46 |
<echo level="warning">TODO!!!!</echo> |
47 |
</target>
|
48 |
|
49 |
|
50 |
<!-- =================================
|
51 |
target: compile
|
52 |
================================= -->
|
53 |
<target name="compile" depends="" description="--> Compile sources"> |
54 |
<mkdir dir="${build}"/> |
55 |
<mkdir dir="${build-test}"/> |
56 |
<!-- Compile the Java code from ${src} to ${build} -->
|
57 |
<loadEclipseClasspath project="${basedir}"/> |
58 |
<gvSIG-javac
|
59 |
classpath="${eclipseClasspath}"/> |
60 |
<gvSIG-javac
|
61 |
classpath="${eclipseClasspath}" |
62 |
srcdir="${src-test}" |
63 |
destdir="${build-test}"/> |
64 |
|
65 |
</target>
|
66 |
|
67 |
<!-- =================================
|
68 |
target: batch-build
|
69 |
================================= -->
|
70 |
<target name="batch-build" |
71 |
depends="compile,generate-common,generate-h2,generate-postgresql,generate-postgresql-bin" |
72 |
description="--> Prepare library"> |
73 |
</target>
|
74 |
|
75 |
<target name="generate-common" depends="compile"> |
76 |
<mkdir dir="${dist}"/> |
77 |
<jar destfile="${dist}/${common-jarName}" |
78 |
basedir="${build}" |
79 |
includes="${common-jarIncludes}" |
80 |
excludes="${common-jarExcludes}"/> |
81 |
</target>
|
82 |
|
83 |
|
84 |
<target name="generate-h2" depends="compile,generate-common"> |
85 |
<mkdir dir="${dist}"/> |
86 |
<jar destfile="${dist}/${h2-jarName}" |
87 |
basedir="${build}" |
88 |
includes="${h2-jarIncludes}" |
89 |
excludes="${h2-jarExcludes}"/> |
90 |
</target>
|
91 |
|
92 |
<target name="generate-postgresql" depends="compile,generate-common"> |
93 |
<mkdir dir="${dist}"/> |
94 |
<jar destfile="${dist}/${postgresql-jarName}" |
95 |
basedir="${build}" |
96 |
includes="${postgresql-jarIncludes}" |
97 |
excludes="${postgresql-jarExcludes}"/> |
98 |
</target>
|
99 |
|
100 |
|
101 |
<target name="generate-postgresql-bin" depends="compile,generate-common,generate-postgresql"> |
102 |
<!-- NOT USE: NOT READY TO USE
|
103 |
<mkdir dir="${dist}"/>
|
104 |
<jar destfile="${dist}/${postgresqlbin-jarName}"
|
105 |
basedir="${build}"
|
106 |
includes="${postgresqlbin-jarIncludes}"
|
107 |
excludes="${postgresqlbin-jarExcludes}"/>
|
108 |
-->
|
109 |
</target>
|
110 |
|
111 |
<!-- =================================
|
112 |
target: clean
|
113 |
================================= -->
|
114 |
<target name="clean" depends="" description="--> Clean proyect"> |
115 |
<delete>
|
116 |
<fileset dir="${build}"> |
117 |
<include name="***"/> |
118 |
<exclude name=".svn"/> |
119 |
</fileset>
|
120 |
<fileset dir="${build-test}"> |
121 |
<include name="***"/> |
122 |
<exclude name=".svn"/> |
123 |
</fileset>
|
124 |
|
125 |
</delete>
|
126 |
<delete dir="${dist}" includes="*.jar"/> |
127 |
</target>
|
128 |
|
129 |
</project>
|