Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libFMap_daldb / build.xml @ 28090

History | View | Annotate | Download (4.38 KB)

1 21992 jmvivo
<?xml version="1.0" encoding="UTF-8"?>
2
<!-- ======================================================================
3 24938 jmvivo
     libFMap_daldb
4
     Build library libFMap_daldb
5 21992 jmvivo

6
     jmvivo
7
     ====================================================================== -->
8 24938 jmvivo
<project name="libFMap_daldb" default="batch-build">
9 21992 jmvivo
        <description>
10 24938 jmvivo
            Build del ${ant.project.name}
11 21992 jmvivo
    </description>
12 24938 jmvivo
        <dirname file="${ant.file.libFMap_daldb}" property="proyectDir"/>
13 21992 jmvivo
        <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 23004 jmvivo
21 21992 jmvivo
        <!-- H2 -->
22
        <property name="h2-jarName" value="org.gvsig.fmap.data.db.h2.jar"/>
23 23004 jmvivo
        <property name="h2-jarIncludes" value="org/gvsig/fmap/data/feature/db/jdbc/h2/**/**"/>
24 21992 jmvivo
        <property name="h2-jarExcludes" value=""/>
25 23004 jmvivo
26 21992 jmvivo
        <!-- Postgresql -->
27
        <property name="postgresql-jarName" value="org.gvsig.fmap.data.db.postgresql.jar"/>
28 23004 jmvivo
        <property name="postgresql-jarIncludes" value="org/gvsig/fmap/data/feature/db/jdbc/postgresql/**/**"/>
29 21992 jmvivo
        <property name="postgresql-jarExcludes" value=""/>
30
31
        <!-- Postgresql-bin -->
32
        <property name="postgresqlbin-jarName" value="org.gvsig.fmap.data.db.postgresqlbin.jar"/>
33 23004 jmvivo
        <property name="postgresqlbin-jarIncludes" value="org/gvsig/fmap/data/feature/db/jdbc/postgresqlbin/**/**"/>
34 21992 jmvivo
        <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 23004 jmvivo
        <!-- =================================
51
          target: compile
52 21992 jmvivo
         ================================= -->
53
        <target name="compile" depends="" description="--> Compile sources">
54 22030 jmvivo
                <mkdir dir="${build}"/>
55
                <mkdir dir="${build-test}"/>
56 21992 jmvivo
                <!-- 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 23004 jmvivo
        <!-- =================================
68
          target: batch-build
69 21992 jmvivo
         ================================= -->
70 23004 jmvivo
        <target name="batch-build"
71 21992 jmvivo
                depends="compile,generate-common,generate-h2,generate-postgresql,generate-postgresql-bin"
72 23004 jmvivo
                description="--> Prepare library">
73 21992 jmvivo
        </target>
74 23004 jmvivo
75 21992 jmvivo
        <target name="generate-common" depends="compile">
76
                <mkdir dir="${dist}"/>
77 23004 jmvivo
                <jar destfile="${dist}/${common-jarName}"
78 21992 jmvivo
                        basedir="${build}"
79
                        includes="${common-jarIncludes}"
80 23004 jmvivo
                        excludes="${common-jarExcludes}"/>
81 21992 jmvivo
        </target>
82
83 23004 jmvivo
84 21992 jmvivo
        <target name="generate-h2" depends="compile,generate-common">
85
                <mkdir dir="${dist}"/>
86 23004 jmvivo
                <jar destfile="${dist}/${h2-jarName}"
87 21992 jmvivo
                        basedir="${build}"
88
                        includes="${h2-jarIncludes}"
89 23004 jmvivo
                        excludes="${h2-jarExcludes}"/>
90 21992 jmvivo
        </target>
91
92
        <target name="generate-postgresql" depends="compile,generate-common">
93
                <mkdir dir="${dist}"/>
94 23004 jmvivo
                <jar destfile="${dist}/${postgresql-jarName}"
95 21992 jmvivo
                        basedir="${build}"
96
                        includes="${postgresql-jarIncludes}"
97 23004 jmvivo
                        excludes="${postgresql-jarExcludes}"/>
98 21992 jmvivo
        </target>
99 23004 jmvivo
100 21992 jmvivo
101
        <target name="generate-postgresql-bin" depends="compile,generate-common,generate-postgresql">
102
                <!-- NOT USE: NOT READY TO USE
103
                <mkdir dir="${dist}"/>
104 23004 jmvivo
                <jar destfile="${dist}/${postgresqlbin-jarName}"
105 21992 jmvivo
                        basedir="${build}"
106
                        includes="${postgresqlbin-jarIncludes}"
107
                        excludes="${postgresqlbin-jarExcludes}"/>
108 23004 jmvivo
                -->
109 21992 jmvivo
        </target>
110
111 23004 jmvivo
        <!-- =================================
112
          target: clean
113 21992 jmvivo
         ================================= -->
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>