Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libFMap_dalfile / build.xml @ 24926

History | View | Annotate | Download (5.79 KB)

1 21906 jmvivo
<?xml version="1.0" encoding="UTF-8"?>
2
<!-- ======================================================================
3
     09/01/2008 13:02:25
4

5 24926 jmvivo
     libFMap_dalfile
6
     Build library libFMap_dalfile
7 21906 jmvivo

8
     jmvivo
9
     ====================================================================== -->
10 24926 jmvivo
<project name="libFMap_dalfile" default="batch-build">
11 21906 jmvivo
        <description>
12 24926 jmvivo
            Build ${ant.project.name}
13 21906 jmvivo
    </description>
14 24926 jmvivo
        <dirname file="${ant.file.libFMap_dalfile}" property="proyectDir"/>
15 21906 jmvivo
        <import file="${proyectDir}/../binaries/ant/utilities.xml"/>
16
17
        <property name="src" location="${proyectDir}/src"/>
18
        <property name="src-test" location="${proyectDir}/src-test"/>
19
        <property name="build" location="${proyectDir}/bin"/>
20
        <property name="build-test" location="${proyectDir}/bin-test"/>
21
        <property name="dist" location="${proyectDir}/dist"/>
22 23009 jmvivo
23 21906 jmvivo
        <!-- dbf -->
24 24926 jmvivo
        <property name="dbf-jarName" value="org.gvsig.fmap.dal.store.dbf.jar"/>
25
        <property name="dbf-jarIncludes" value="org/gvsig/fmap/dal/store/dbf/**/**"/>
26 21906 jmvivo
        <property name="dbf-jarExcludes" value=""/>
27 23009 jmvivo
28 21906 jmvivo
        <!-- dgn -->
29 23009 jmvivo
30 24926 jmvivo
        <property name="dgn-jarName" value="org.gvsig.fmap.dal.store.dgn.jar"/>
31
        <property name="dgn-jarIncludes" value="org/gvsig/fmap/dal/store/dgn/**/**"/>
32
        <property name="dgn-jarExcludes" value="org/gvsig/fmap/dal/store/dgn/operation/**/**"/>
33
34
        <property name="dgn-operation-jarName" value="org.gvsig.fmap.dal.operation.dgn.jar"/>
35 21906 jmvivo
        <property name="dgn-operation-jarIncludes" value="${dgn-jarExcludes}"/>
36
        <property name="dgn-operation-jarExcludes" value=""/>
37
38 24926 jmvivo
39 21906 jmvivo
        <!-- dxf -->
40 24926 jmvivo
        <property name="dxf-jarName" value="org.gvsig.fmap.dal.store.dxf.jar"/>
41
        <property name="dxf-jarIncludes" value="org/gvsig/fmap/dal/store/dxf/**/**"/>
42
        <property name="dxf-jarExcludes" value="org/gvsig/fmap/dal/store/dxf/operation/**/**"/>
43 21906 jmvivo
44 24926 jmvivo
        <property name="dxf-operation-jarName" value="org.gvsig.fmap.dal.operation.dxf.jar"/>
45 21906 jmvivo
        <property name="dxf-operation-jarIncludes" value="${dxf-jarExcludes}"/>
46
        <property name="dxf-operation-jarExcludes" value=""/>
47
48 23009 jmvivo
        <!-- shp -->
49 24926 jmvivo
        <property name="shp-jarName" value="org.gvsig.fmap.dal.store.shp.jar"/>
50
        <property name="shp-jarIncludes" value="org/gvsig/fmap/dal/store/shp/**/**"/>
51 21906 jmvivo
        <property name="shp-jarExcludes" value=""/>
52
53
54
        <!-- Common -->
55 24926 jmvivo
        <property name="common-jarName" value="org.gvsig.fmap.dal.file.jar"/>
56 21906 jmvivo
        <property name="common-jarIncludes" value="**/**"/>
57
        <property name="common-jarExcludes" value=".svn,${dbf-jarIncludes},${dgn-jarIncludes},${dxf-jarIncludes},${shp-jarIncludes}"/>
58
59
        <!-- =================================
60
          target: generate-source
61
         ================================= -->
62
        <target name="generate-source" description="--> genera el tar de fuentes">
63
                <!-- TODO -->
64
                <echo level="warning">TODO!!!!</echo>
65
        </target>
66
67
68 23009 jmvivo
        <!-- =================================
69
          target: compile
70 21906 jmvivo
         ================================= -->
71
        <target name="compile" depends="" description="--> Compile sources">
72 22030 jmvivo
                <mkdir dir="${build}"/>
73
                <mkdir dir="${build-test}"/>
74 21906 jmvivo
                <!-- Compile the Java code from ${src} to ${build} -->
75
                <loadEclipseClasspath project="${basedir}"/>
76
                <gvSIG-javac
77
                        classpath="${eclipseClasspath}"/>
78
                <gvSIG-javac
79
                        classpath="${eclipseClasspath}"
80
                        srcdir="${src-test}"
81
                        destdir="${build-test}"/>
82
83
        </target>
84
85 23009 jmvivo
        <!-- =================================
86
          target: batch-build
87 21906 jmvivo
         ================================= -->
88 23009 jmvivo
        <target name="batch-build"
89 21906 jmvivo
                depends="compile,generate-common,generate-dbf,generate-dgn,generate-dgn-operation,generate-dxf,generate-dxf-operation,generate-shp"
90 23009 jmvivo
                description="--> Prepare library">
91 21906 jmvivo
        </target>
92 23009 jmvivo
93 21906 jmvivo
        <target name="generate-common" depends="compile">
94
                <mkdir dir="${dist}"/>
95 23009 jmvivo
                <jar destfile="${dist}/${common-jarName}"
96 21906 jmvivo
                        basedir="${build}"
97
                        includes="${common-jarIncludes}"
98 23009 jmvivo
                        excludes="${common-jarExcludes}"/>
99 21906 jmvivo
        </target>
100
101 23009 jmvivo
102 21906 jmvivo
        <target name="generate-dbf" depends="compile,generate-common">
103
                <mkdir dir="${dist}"/>
104 23009 jmvivo
                <jar destfile="${dist}/${dbf-jarName}"
105 21906 jmvivo
                        basedir="${build}"
106
                        includes="${dbf-jarIncludes}"
107 23009 jmvivo
                        excludes="${dbf-jarExcludes}"/>
108 21906 jmvivo
        </target>
109
110
        <target name="generate-shp" depends="compile,generate-common,generate-dbf">
111
                <mkdir dir="${dist}"/>
112 23009 jmvivo
                <jar destfile="${dist}/${shp-jarName}"
113 21906 jmvivo
                        basedir="${build}"
114
                        includes="${shp-jarIncludes}"
115 23009 jmvivo
                        excludes="${shp-jarExcludes}"/>
116 21906 jmvivo
        </target>
117 23009 jmvivo
118 21906 jmvivo
        <target name="generate-dgn" depends="compile,generate-common">
119
                <mkdir dir="${dist}"/>
120 23009 jmvivo
                <jar destfile="${dist}/${dgn-jarName}"
121 21906 jmvivo
                        basedir="${build}"
122
                        includes="${dgn-jarIncludes}"
123 23009 jmvivo
                        excludes="${dgn-jarExcludes}"/>
124 21906 jmvivo
        </target>
125
126
        <target name="generate-dgn-operation" depends="compile,generate-common,generate-dgn">
127
                <mkdir dir="${dist}"/>
128 23009 jmvivo
                <jar destfile="${dist}/${dgn-operation-jarName}"
129 21906 jmvivo
                        basedir="${build}"
130
                        includes="${dgn-operation-jarIncludes}"
131 23009 jmvivo
                        excludes="${dgn-operation-jarExcludes}"/>
132 21906 jmvivo
        </target>
133
134 23009 jmvivo
135 21906 jmvivo
        <target name="generate-dxf" depends="compile,generate-common">
136
                <mkdir dir="${dist}"/>
137 23009 jmvivo
                <jar destfile="${dist}/${dxf-jarName}"
138 21906 jmvivo
                        basedir="${build}"
139
                        includes="${dxf-jarIncludes}"
140 23009 jmvivo
                        excludes="${dxf-jarExcludes}"/>
141 21906 jmvivo
        </target>
142
143
        <target name="generate-dxf-operation" depends="compile,generate-common,generate-dxf">
144
                <mkdir dir="${dist}"/>
145 23009 jmvivo
                <jar destfile="${dist}/${dxf-operation-jarName}"
146 21906 jmvivo
                        basedir="${build}"
147
                        includes="${dxf-operation-jarIncludes}"
148 23009 jmvivo
                        excludes="${dxf-operation-jarExcludes}"/>
149 21906 jmvivo
        </target>
150
151
152 23009 jmvivo
        <!-- =================================
153
          target: clean
154 21906 jmvivo
         ================================= -->
155
        <target name="clean" depends="" description="--> Clean proyect">
156
                <delete>
157
                        <fileset dir="${build}">
158
                                <include name="***"/>
159
                                <exclude name=".svn"/>
160
                        </fileset>
161
                        <fileset dir="${build-test}">
162
                                <include name="***"/>
163
                                <exclude name=".svn"/>
164
                        </fileset>
165
166
                </delete>
167
                <delete dir="${dist}" includes="*.jar"/>
168
        </target>
169
170
</project>