Revision 9201
trunk/libraries/libFMap/build.xml | ||
---|---|---|
5 | 5 |
<!-- set global properties for this build --> |
6 | 6 |
<property name="src" location="src"/> |
7 | 7 |
<property name="build" location="bin"/> |
8 |
<property name="dist" location="dist"/> |
|
8 | 9 |
<property name="src-test" location="src-test"/> |
9 | 10 |
<property name="build-test" location="bin-test"/> |
10 | 11 |
<property name="lib" location="lib"/> |
12 |
<property name="lib-dist" location="${dist}/lib"/> |
|
11 | 13 |
<property name="drivers-dir" location="../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/drivers" /> |
12 | 14 |
<property name="writers-dir" location="../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/drivers" /> |
13 | 15 |
<property name="build-doc" value="build-doc"/> |
... | ... | |
19 | 21 |
<tstamp /> |
20 | 22 |
<echo> |
21 | 23 |
Compiling ${ant.project.name}...</echo> |
24 |
<mkdir dir="${dist}"/> |
|
25 |
<mkdir dir="${lib-dist}"/> |
|
22 | 26 |
</target> |
23 | 27 |
|
24 | 28 |
<target name="build-doc" depends="" description="Genera la documentación"> |
... | ... | |
32 | 36 |
</target> |
33 | 37 |
|
34 | 38 |
|
35 |
<target name="generar-todos" depends="init, shp, dbf, dgn, dxf, raster, gml, shpwriter, dxfwriter, dbfwriter, gmlwriter" description="Genera los jars de todos los drivers "> |
|
39 |
<target name="generar-todos" depends="init, compile,shp, dbf, dgn, dxf, raster, gml, shpwriter, dxfwriter, dbfwriter, gmlwriter" description="Genera los jars de todos los drivers ">
|
|
36 | 40 |
</target> |
37 | 41 |
|
38 | 42 |
<target name="shp" depends="" description="Genera el jar de shp"> |
... | ... | |
99 | 103 |
|
100 | 104 |
<target name="batch-build" |
101 | 105 |
description="compile the sources, create the jar file" |
102 |
depends="init,compile,create-jar,copy-data-files,generar-todos">
|
|
106 |
depends="init,compile,copy-libs,create-jar,generar-todos">
|
|
103 | 107 |
</target> |
104 | 108 |
|
105 | 109 |
<target name="compile" description="compile the source" > |
... | ... | |
129 | 133 |
</target> |
130 | 134 |
<target name="create-jar" |
131 | 135 |
description="Creates the plugin jar"> |
132 |
<jar jarfile="${lib}/${jarName}" basedir="${build}"/> |
|
136 |
<jar jarfile="${dist}/lib/${jarName}" basedir="${build}" excludes="com/vividsolutions/**"/> |
|
137 |
<rename dest="${dist}/lib/jts-1.7_gvSIG.jar" src="${dist}/lib/jts-1.7.jar"/> |
|
138 |
<jar jarfile="${dist}/lib/jts-1.7_gvSIG.jar" basedir="${build}" update="yes" includes="com/vividsolutions/**"/> |
|
133 | 139 |
</target> |
134 | 140 |
|
135 |
<target name="copy-data-files" description="copy images">
|
|
136 |
<copy todir="${build}/com/iver/cit/gvsig/fmap/images">
|
|
137 |
<fileset dir="${src}/com/iver/cit/gvsig/fmap/images" includes="*"/>
|
|
141 |
<target name="copy-libs" description="copy libs to dist">
|
|
142 |
<copy todir="${lib-dist}">
|
|
143 |
<fileset dir="${lib}" includes="*"/>
|
|
138 | 144 |
</copy> |
139 | 145 |
</target> |
140 | 146 |
|
141 |
<target name="clean" description="clean up" > |
|
147 |
<target name="clean" description="clean up" depends="clean-dist">
|
|
142 | 148 |
<!-- Delete the ${build} and ${dist} directory trees --> |
143 | 149 |
<delete dir="${build}"/> |
150 |
</target> |
|
151 |
|
|
152 |
<target name="clean-dist" description="clean up dist" > |
|
153 |
<!-- Delete the ${build} and ${dist} directory trees --> |
|
144 | 154 |
<delete dir="${dist}"/> |
145 |
<delete> |
|
146 |
<fileset dir="${lib}" includes="fmap.jar"/> |
|
147 |
</delete> |
|
148 | 155 |
</target> |
156 |
|
|
149 | 157 |
|
150 | 158 |
<target name="test" description="Run the test suite" depends="compile-test,generar-todos"> |
151 | 159 |
<junit |
Also available in: Unified diff