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