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