root / branches / v2_0_0_prep / libraries / libFMap_data / build.xml @ 23178
History | View | Annotate | Download (2.67 KB)
1 | 19399 | vcaballero | <?xml version="1.0" encoding="UTF-8"?>
|
---|---|---|---|
2 | <!-- ======================================================================
|
||
3 | 09/01/2008 13:02:25
|
||
4 | |||
5 | 21874 | jmvivo | libFMap_data
|
6 | Build library libFMap_data
|
||
7 | 19399 | vcaballero | |
8 | jmvivo
|
||
9 | ====================================================================== -->
|
||
10 | 21901 | jmvivo | <project name="libFMap_data" default="batch-build"> |
11 | <description>
|
||
12 | 19399 | vcaballero | Build del libDataStore |
13 | </description>
|
||
14 | 21901 | jmvivo | <dirname file="${ant.file.libFMap_data}" property="proyectDir"/> |
15 | <import file="${proyectDir}/../binaries/ant/utilities.xml"/> |
||
16 | 19399 | vcaballero | |
17 | 21901 | jmvivo | <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 | 23066 | jmvivo | <property name="dist" location="${proyectDir}/dist"/> |
22 | <property name="lib" location="${proyectDir}/lib"/> |
||
23 | 21901 | jmvivo | <property name="jarName" value="org.gvsig.fmap.data.jar"/> |
24 | |||
25 | |||
26 | <!-- =================================
|
||
27 | 21906 | jmvivo | target: generate-source
|
28 | 19399 | vcaballero | ================================= -->
|
29 | 21906 | jmvivo | <target name="generate-source" description="--> genera el tar de fuentes"> |
30 | <!-- TODO -->
|
||
31 | <echo level="warning">TODO!!!!</echo> |
||
32 | </target>
|
||
33 | 21901 | jmvivo | |
34 | |||
35 | 21906 | jmvivo | |
36 | 23066 | jmvivo | <!-- =================================
|
37 | target: compile
|
||
38 | 21901 | jmvivo | ================================= -->
|
39 | 23066 | jmvivo | <target name="compile" depends="update-referenced-libraries" description="--> Compile sources"> |
40 | 22030 | jmvivo | <mkdir dir="${build}"/> |
41 | <mkdir dir="${build-test}"/> |
||
42 | 21901 | jmvivo | <!-- Compile the Java code from ${src} to ${build} -->
|
43 | <loadEclipseClasspath project="${basedir}"/> |
||
44 | <gvSIG-javac
|
||
45 | classpath="${eclipseClasspath}"/> |
||
46 | <gvSIG-javac
|
||
47 | classpath="${eclipseClasspath}" |
||
48 | srcdir="${src-test}" |
||
49 | destdir="${build-test}"/> |
||
50 | |||
51 | </target>
|
||
52 | 19399 | vcaballero | |
53 | 23066 | jmvivo | <!-- =================================
|
54 | target: batch-build
|
||
55 | 21901 | jmvivo | ================================= -->
|
56 | <target name="batch-build" depends="compile" description="--> Prepare library"> |
||
57 | <mkdir dir="${dist}"/> |
||
58 | <jar destfile="${dist}/${jarName}" basedir="${build}"/> |
||
59 | </target>
|
||
60 | 19399 | vcaballero | |
61 | 23066 | jmvivo | <!-- =================================
|
62 | target: clean
|
||
63 | 21901 | jmvivo | ================================= -->
|
64 | <target name="clean" depends="" description="--> Clean proyect"> |
||
65 | <delete>
|
||
66 | <fileset dir="${build}"> |
||
67 | <include name="***"/> |
||
68 | <exclude name=".svn"/> |
||
69 | </fileset>
|
||
70 | <fileset dir="${build-test}"> |
||
71 | <include name="***"/> |
||
72 | <exclude name=".svn"/> |
||
73 | </fileset>
|
||
74 | |||
75 | </delete>
|
||
76 | <delete file="${dist}/${jarName}"/> |
||
77 | |||
78 | </target>
|
||
79 | 23066 | jmvivo | |
80 | |||
81 | <target name="update-referenced-libraries"> |
||
82 | <copy todir="${lib}" failonerror="false"> |
||
83 | <fileset dir="${workspaceDir}/libTools/dist" includes="*.jar,*.zip"/> |
||
84 | </copy>
|
||
85 | </target>
|
||
86 | 21901 | jmvivo | |
87 | 19399 | vcaballero | </project> |