svn-gvsig-desktop / tags / Root_v061 / extensions / extDwg / build.xml @ 35733
History | View | Annotate | Download (2.24 KB)
1 | 2219 | jmorell | <project name="gvSIGDwgPlugin" default="clean" basedir="."> |
---|---|---|---|
2 | <description>
|
||
3 | Carga en gvSIG el driver de DWG y genera una distribuciĆ³n |
||
4 | </description>
|
||
5 | <!-- set global properties for this build -->
|
||
6 | 4132 | jjdelcerro | <property name="drivers-dir" location="../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/drivers" /> |
7 | <property name="lib-dir" location="../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/lib" /> |
||
8 | 2219 | jmorell | <property name="src" location="src"/> |
9 | <property name="bin" location="bin"/> |
||
10 | <property name="doc" location="doc"/> |
||
11 | 2497 | jmorell | <property name="lib" location="lib"/> |
12 | 2219 | jmorell | <property name="dist" location="dist"/> |
13 | |||
14 | <target name="init"> |
||
15 | <!-- Create the time stamp -->
|
||
16 | <tstamp/> |
||
17 | </target>
|
||
18 | |||
19 | 2497 | jmorell | <target name="generate-without-source" depends="init" description="Carga el driver de DWG en Andami"> |
20 | 2219 | jmorell | <mkdir dir="${drivers-dir}/dwg" /> |
21 | <jar jarfile="${drivers-dir}/dwg/dwg.jar" basedir="./bin" includes="es/iver/gvsig/drivers/dwg/**" /> |
||
22 | 2497 | jmorell | <copy todir="${lib-dir}"> |
23 | <fileset dir="${lib}"/> |
||
24 | </copy>
|
||
25 | 2219 | jmorell | </target>
|
26 | |||
27 | 2497 | jmorell | <target name="generate-with-source" depends="generate-without-source" |
28 | 2219 | jmorell | description="generate the distribution" > |
29 | <!-- Remove previous distribution directory -->
|
||
30 | <delete dir="${dist}"/> |
||
31 | <!-- Create the distribution directory structure -->
|
||
32 | <mkdir dir="${dist}"/> |
||
33 | <mkdir dir="${dist}/src"/> |
||
34 | <mkdir dir="${dist}/doc"/> |
||
35 | 2497 | jmorell | <mkdir dir="${dist}/lib"/> |
36 | 2219 | jmorell | <mkdir dir="${dist}/bin"/> |
37 | <!-- Copy necessary distribution files to dist dir -->
|
||
38 | <copy todir="${dist}/src"> |
||
39 | <fileset dir="${src}"/> |
||
40 | </copy>
|
||
41 | <copy todir="${dist}/doc"> |
||
42 | <fileset dir="${doc}"/> |
||
43 | </copy>
|
||
44 | 2497 | jmorell | <copy todir="${dist}/lib"> |
45 | <fileset dir="${lib}"/> |
||
46 | </copy>
|
||
47 | 2219 | jmorell | <mkdir dir="${dist}/bin/dwg" /> |
48 | <jar jarfile="${dist}/bin/dwg/dwg.jar" basedir="./bin" includes="es/iver/gvsig/drivers/dwg/**" /> |
||
49 | <!-- Zip distribution -->
|
||
50 | <zip destfile="${dist}/gvSIGDwgPlugin.zip" |
||
51 | basedir="${dist}" |
||
52 | update="true" |
||
53 | />
|
||
54 | </target>
|
||
55 | |||
56 | 2497 | jmorell | <target name="clean" depends="generate-with-source" |
57 | 2219 | jmorell | description="clean dist directory" > |
58 | <!-- Clean the distribution directory -->
|
||
59 | <delete dir="${dist}/src"/> |
||
60 | <delete dir="${dist}/doc"/> |
||
61 | <delete dir="${dist}/bin"/> |
||
62 | 2497 | jmorell | <delete dir="${dist}/lib"/> |
63 | 2219 | jmorell | </target>
|
64 | |||
65 | </project> |