svn-gvsig-desktop / tags / v2_0_0_Build_2000 / libraries / libFMap_mapcontrol / build.xml @ 47796
History | View | Annotate | Download (4.11 KB)
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
---|---|
2 |
<!-- ======================================================================
|
3 |
libFMap_mapcontrol
|
4 |
Build library libFMap_mapcontrol
|
5 |
|
6 |
jmvivo
|
7 |
====================================================================== -->
|
8 |
<project name="libFMap_mapcontrol" default="batch-build"> |
9 |
<description>
|
10 |
Build libFMap_geometries |
11 |
</description>
|
12 |
<dirname file="${ant.file.libFMap_mapcontrol}" 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 |
<property name="lib" location="${proyectDir}/lib"/> |
21 |
<property name="lib-references" location="${proyectDir}/lib-references"/> |
22 |
|
23 |
|
24 |
<!-- Common -->
|
25 |
<property name="this-jarName" value="org.gvsig.fmap.mapcontrol.jar"/> |
26 |
<property name="this-jarIncludes" value="**/**"/> |
27 |
<property name="this-jarExcludes" value=".svn"/> |
28 |
|
29 |
|
30 |
<!-- =================================
|
31 |
target: generate-source
|
32 |
================================= -->
|
33 |
<target name="generate-source" description="--> genera el tar de fuentes"> |
34 |
<!-- TODO -->
|
35 |
<echo level="warning">TODO!!!!</echo> |
36 |
</target>
|
37 |
|
38 |
|
39 |
|
40 |
<!-- =================================
|
41 |
target: compile
|
42 |
================================= -->
|
43 |
<target name="compile" depends="update-referenced-libraries" description="--> Compile sources"> |
44 |
<mkdir dir="${build}"/> |
45 |
<mkdir dir="${build-test}"/> |
46 |
<!-- Compile the Java code from ${src} to ${build} -->
|
47 |
<loadEclipseClasspath project="${basedir}"/> |
48 |
<gvSIG-javac
|
49 |
classpath="${eclipseClasspath}"/> |
50 |
<gvSIG-javac
|
51 |
classpath="${eclipseClasspath}" |
52 |
srcdir="${src-test}" |
53 |
destdir="${build-test}"/> |
54 |
|
55 |
</target>
|
56 |
|
57 |
<!-- =================================
|
58 |
target: batch-build
|
59 |
================================= -->
|
60 |
<target name="batch-build" |
61 |
depends="update-referenced-libraries, compile,generate-this" |
62 |
description="--> Prepare library"> |
63 |
</target>
|
64 |
|
65 |
<target name="update-referenced-libraries"> |
66 |
<copy todir="${lib}" failonerror="false"> |
67 |
<fileset dir="${workspaceDir}/libFMap_mapcontext/dist" includes="*.jar,*.zip"/> |
68 |
</copy>
|
69 |
<copy todir="${lib-references}" failonerror="false"> |
70 |
<fileset dir="${workspaceDir}/libFMap_mapcontext/lib" includes="*.jar,*.zip"/> |
71 |
<fileset dir="${workspaceDir}/libFMap_mapcontext/lib-references" includes="*.jar,*.zip"/> |
72 |
</copy>
|
73 |
|
74 |
<copy todir="${lib}" failonerror="false"> |
75 |
<fileset dir="${workspaceDir}/libFMap_data/dist" includes="*.jar,*.zip"/> |
76 |
</copy>
|
77 |
<copy todir="${lib-references}" failonerror="false"> |
78 |
<fileset dir="${workspaceDir}/libFMap_data/lib" includes="*.jar,*.zip"/> |
79 |
</copy>
|
80 |
|
81 |
<copy todir="${lib}" failonerror="false"> |
82 |
<fileset dir="${workspaceDir}/libFMap_geometries/dist" includes="*.jar,*.zip"/> |
83 |
</copy>
|
84 |
<copy todir="${lib-references}" failonerror="false"> |
85 |
<fileset dir="${workspaceDir}/libFMap_geometries/lib" includes="*.jar,*.zip"/> |
86 |
</copy>
|
87 |
|
88 |
<copy todir="${lib}" failonerror="false"> |
89 |
<fileset dir="${workspaceDir}/libMetadata/dist" includes="*.jar,*.zip"/> |
90 |
</copy>
|
91 |
<copy todir="${lib-references}" failonerror="false"> |
92 |
<fileset dir="${workspaceDir}/libMetadata/lib" includes="*.jar,*.zip"/> |
93 |
</copy>
|
94 |
</target>
|
95 |
|
96 |
<target name="generate-this" depends="compile"> |
97 |
<mkdir dir="${dist}"/> |
98 |
<jar destfile="${dist}/${this-jarName}" |
99 |
basedir="${build}" |
100 |
includes="${this-jarIncludes}" |
101 |
excludes="${this-jarExcludes}"/> |
102 |
</target>
|
103 |
|
104 |
<!-- =================================
|
105 |
target: clean
|
106 |
================================= -->
|
107 |
<target name="clean" depends="" description="--> Clean proyect"> |
108 |
<delete>
|
109 |
<fileset dir="${build}"> |
110 |
<include name="***"/> |
111 |
<exclude name=".svn"/> |
112 |
</fileset>
|
113 |
<fileset dir="${build-test}"> |
114 |
<include name="***"/> |
115 |
<exclude name=".svn"/> |
116 |
</fileset>
|
117 |
|
118 |
</delete>
|
119 |
<delete file="${dist}/${jarName}"/> |
120 |
|
121 |
</target>
|
122 |
|
123 |
</project>
|