svn-gvsig-desktop / branches / v2_0_0_prep / extensions / extDwg / build.xml @ 27472
History | View | Annotate | Download (3.35 KB)
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
---|---|
2 |
<!-- ======================================================================
|
3 |
09/01/2008 13:02:25
|
4 |
|
5 |
extDwg
|
6 |
Build library extDwg
|
7 |
|
8 |
jmvivo
|
9 |
====================================================================== -->
|
10 |
<project name="extDwg" default="batch-build"> |
11 |
<description>
|
12 |
Build del extDwg |
13 |
</description>
|
14 |
<dirname file="${ant.file.extDwg}" property="proyectDir"/> |
15 |
<import file="${proyectDir}/../binaries/ant/utilities.xml"/> |
16 |
|
17 |
<property name="extensionName" value="org.gvsig.dwg"/> |
18 |
<property name="src" location="${proyectDir}/src"/> |
19 |
<!-- <property name="src-test" location="${proyectDir}/src-test"/> -->
|
20 |
<property name="build" location="${proyectDir}/bin"/> |
21 |
<!-- <property name="build-test" location="${proyectDir}/bin-test"/> -->
|
22 |
<property name="dist" location="${proyectDir}/dist"/> |
23 |
<property name="lib" location="${proyectDir}/lib"/> |
24 |
<property name="config" location="${proyectDir}/config"/> |
25 |
<property name="gvSIG-extension" location="${workspaceDir}/_fwAndami/gvSIG/extensiones"/> |
26 |
|
27 |
|
28 |
<!-- =================================
|
29 |
target: generate-source
|
30 |
================================= -->
|
31 |
<target name="generate-source" description="--> genera el tar de fuentes"> |
32 |
<!-- TODO -->
|
33 |
<echo level="warning">TODO!!!!</echo> |
34 |
</target>
|
35 |
|
36 |
|
37 |
<!-- =================================
|
38 |
target: compile
|
39 |
================================= -->
|
40 |
<target name="compile" depends="update-referenced-libraries" description="--> Compile sources"> |
41 |
<mkdir dir="${build}"/> |
42 |
<!-- <mkdir dir="${build-test}"/> -->
|
43 |
<!-- Compile the Java code from ${src} to ${build} -->
|
44 |
<loadEclipseClasspath project="${basedir}"/> |
45 |
<gvSIG-javac
|
46 |
classpath="${eclipseClasspath}"/> |
47 |
<!-- <gvSIG-javac
|
48 |
classpath="${eclipseClasspath}"
|
49 |
srcdir="${src-test}"
|
50 |
destdir="${build-test}"/> -->
|
51 |
|
52 |
</target>
|
53 |
|
54 |
<!-- =================================
|
55 |
target: batch-build
|
56 |
================================= -->
|
57 |
<target name="batch-build" |
58 |
depends="update-referenced-libraries,compile,generate-jar,deploy-to-andami" |
59 |
description="--> Prepare library"> |
60 |
</target>
|
61 |
|
62 |
<target name="generate-jar" depends="compile"> |
63 |
<mkdir dir="${dist}"/> |
64 |
<jar destfile="${dist}/${extensionName}.jar" |
65 |
basedir="${build}"/> |
66 |
</target>
|
67 |
|
68 |
<target name="deploy-to-andami" depends="generate-jar"> |
69 |
<mkdir dir="${gvSIG-extension}/${extensionName}"/> |
70 |
<copy todir="${gvSIG-extension}/${extensionName}"> |
71 |
<fileset dir="${dist}" includes="**/**"/> |
72 |
<fileset dir="${config}" includes="**/**"/> |
73 |
<fileset dir="${lib}" includes="**/**"/> |
74 |
</copy>
|
75 |
</target>
|
76 |
<target name="update-referenced-libraries"> |
77 |
<copy todir="${lib}" failonerror="false"> |
78 |
<fileset dir="${workspaceDir}/libFMap_data_dwg/dist" includes="*.jar,*.zip"/> |
79 |
<fileset dir="${workspaceDir}/libFMap_data_dwg/lib" includes="*.jar,*.zip"/> |
80 |
</copy>
|
81 |
</target>
|
82 |
|
83 |
<!-- =================================
|
84 |
target: clean
|
85 |
================================= -->
|
86 |
<target name="clean" depends="" description="--> Clean proyect"> |
87 |
<delete>
|
88 |
<fileset dir="${build}"> |
89 |
<include name="***"/> |
90 |
<exclude name=".svn"/> |
91 |
</fileset>
|
92 |
<fileset dir="${build-test}"> |
93 |
<include name="***"/> |
94 |
<exclude name=".svn"/> |
95 |
</fileset>
|
96 |
|
97 |
</delete>
|
98 |
<delete dir="${dist}" includes="*.jar"/> |
99 |
</target>
|
100 |
|
101 |
</project>
|