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