svn-gvsig-desktop / tags / v2_0_0_Build_2000 / libraries / libDwg / build.xml @ 33469
History | View | Annotate | Download (2.64 KB)
1 | 23252 | fdiaz | <?xml version="1.0" encoding="UTF-8"?>
|
---|---|---|---|
2 | <!-- ======================================================================
|
||
3 | 09/01/2008 13:02:25
|
||
4 | |||
5 | libDwg
|
||
6 | Build library libDwg
|
||
7 | |||
8 | jmvivo
|
||
9 | ====================================================================== -->
|
||
10 | <project name="libDwg" default="batch-build"> |
||
11 | <description>
|
||
12 | Build del libDataStore |
||
13 | </description>
|
||
14 | <dirname file="${ant.file.libDwg}" 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="lib" location="${proyectDir}/lib"/> |
||
23 | <property name="jarName" value="jdwglib.jar"/> |
||
24 | |||
25 | |||
26 | <!-- =================================
|
||
27 | target: generate-source
|
||
28 | ================================= -->
|
||
29 | <target name="generate-source" description="--> genera el tar de fuentes"> |
||
30 | <!-- TODO -->
|
||
31 | <echo level="warning">TODO!!!!</echo> |
||
32 | </target>
|
||
33 | |||
34 | |||
35 | |||
36 | <!-- =================================
|
||
37 | target: compile
|
||
38 | ================================= -->
|
||
39 | <target name="compile" depends="update-referenced-libraries" description="--> Compile sources"> |
||
40 | <mkdir dir="${build}"/> |
||
41 | <mkdir dir="${build-test}"/> |
||
42 | <!-- 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 | |||
53 | <!-- =================================
|
||
54 | target: batch-build
|
||
55 | ================================= -->
|
||
56 | <target name="batch-build" depends="compile" description="--> Prepare library"> |
||
57 | <mkdir dir="${dist}"/> |
||
58 | <jar destfile="${dist}/${jarName}" basedir="${build}"/> |
||
59 | </target>
|
||
60 | |||
61 | <!-- =================================
|
||
62 | target: clean
|
||
63 | ================================= -->
|
||
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 | |||
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 | |||
87 | </project> |