svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libMetadata / build.xml @ 25389
History | View | Annotate | Download (2.36 KB)
1 | 22028 | jmvivo | <?xml version="1.0" encoding="UTF-8"?>
|
---|---|---|---|
2 | <!-- ======================================================================
|
||
3 | 22136 | jmvivo | libMetadata
|
4 | Build library libMetadata
|
||
5 | 22028 | jmvivo | |
6 | jmvivo
|
||
7 | ====================================================================== -->
|
||
8 | <project name="libMetadata" default="batch-build"> |
||
9 | <description>
|
||
10 | 24943 | jmvivo | Build del ${ant.project.name} |
11 | 22028 | jmvivo | </description>
|
12 | 22136 | jmvivo | <dirname file="${ant.file.libMetadata}" property="proyectDir"/> |
13 | 22028 | 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="jarName" value="org.gvsig.metadata.jar"/> |
||
21 | |||
22 | |||
23 | <!-- =================================
|
||
24 | target: generate-source
|
||
25 | ================================= -->
|
||
26 | <target name="generate-source" description="--> genera el tar de fuentes"> |
||
27 | <!-- TODO -->
|
||
28 | <echo level="warning">TODO!!!!</echo> |
||
29 | </target>
|
||
30 | |||
31 | |||
32 | |||
33 | 24943 | jmvivo | <!-- =================================
|
34 | target: compile
|
||
35 | 22028 | jmvivo | ================================= -->
|
36 | <target name="compile" depends="" description="--> Compile sources"> |
||
37 | <mkdir dir="${build}"/> |
||
38 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
39 | <loadEclipseClasspath project="${basedir}"/> |
||
40 | <gvSIG-javac
|
||
41 | classpath="${eclipseClasspath}"/> |
||
42 | <!--
|
||
43 | 24943 | jmvivo | <gvSIG-javac
|
44 | 22028 | jmvivo | classpath="${eclipseClasspath}"
|
45 | srcdir="${src-test}"
|
||
46 | destdir="${build-test}"/>
|
||
47 | -->
|
||
48 | |||
49 | </target>
|
||
50 | |||
51 | 24943 | jmvivo | <!-- =================================
|
52 | target: batch-build
|
||
53 | 22028 | jmvivo | ================================= -->
|
54 | <target name="batch-build" depends="compile" description="--> Prepare library"> |
||
55 | <mkdir dir="${dist}"/> |
||
56 | <jar destfile="${dist}/${jarName}" basedir="${build}"/> |
||
57 | </target>
|
||
58 | |||
59 | 24943 | jmvivo | <!-- =================================
|
60 | target: clean
|
||
61 | 22028 | jmvivo | ================================= -->
|
62 | <target name="clean" depends="" description="--> Clean proyect"> |
||
63 | <delete>
|
||
64 | <fileset dir="${build}"> |
||
65 | <include name="***"/> |
||
66 | <exclude name=".svn"/> |
||
67 | </fileset>
|
||
68 | <fileset dir="${build-test}"> |
||
69 | <include name="***"/> |
||
70 | <exclude name=".svn"/> |
||
71 | </fileset>
|
||
72 | |||
73 | </delete>
|
||
74 | <delete file="${dist}/${jarName}"/> |
||
75 | |||
76 | </target>
|
||
77 | |||
78 | </project> |