svn-gvsig-desktop / trunk / extensions / extDwg / build.xml @ 2219
History | View | Annotate | Download (2.01 KB)
1 |
<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 |
<property name="drivers-dir" location="../Andami/gvSIG/extensiones/com.iver.cit.gvsig/drivers" /> |
7 |
<property name="src" location="src"/> |
8 |
<property name="bin" location="bin"/> |
9 |
<property name="doc" location="doc"/> |
10 |
<property name="dist" location="dist"/> |
11 |
|
12 |
<target name="init"> |
13 |
<!-- Create the time stamp -->
|
14 |
<tstamp/> |
15 |
</target>
|
16 |
|
17 |
<target name="compile" depends="init" |
18 |
description="compile the source" > |
19 |
<!-- Compile the Java code from ${src} to ${bin} -->
|
20 |
<javac srcdir="${src}" destdir="${bin}"/> |
21 |
</target>
|
22 |
|
23 |
<target name="charge" depends="compile" description="Genera el jar de dwg"> |
24 |
<mkdir dir="${drivers-dir}/dwg" /> |
25 |
<jar jarfile="${drivers-dir}/dwg/dwg.jar" basedir="./bin" includes="es/iver/gvsig/drivers/dwg/**" /> |
26 |
</target>
|
27 |
|
28 |
<target name="dist" depends="charge" |
29 |
description="generate the distribution" > |
30 |
<!-- Remove previous distribution directory -->
|
31 |
<delete dir="${dist}"/> |
32 |
<!-- Create the distribution directory structure -->
|
33 |
<mkdir dir="${dist}"/> |
34 |
<mkdir dir="${dist}/src"/> |
35 |
<mkdir dir="${dist}/doc"/> |
36 |
<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 |
<mkdir dir="${dist}/bin/dwg" /> |
45 |
<jar jarfile="${dist}/bin/dwg/dwg.jar" basedir="./bin" includes="es/iver/gvsig/drivers/dwg/**" /> |
46 |
<!-- Zip distribution -->
|
47 |
<zip destfile="${dist}/gvSIGDwgPlugin.zip" |
48 |
basedir="${dist}" |
49 |
update="true" |
50 |
/>
|
51 |
</target>
|
52 |
|
53 |
<target name="clean" depends="dist" |
54 |
description="clean dist directory" > |
55 |
<!-- Clean the distribution directory -->
|
56 |
<delete dir="${dist}/src"/> |
57 |
<delete dir="${dist}/doc"/> |
58 |
<delete dir="${dist}/bin"/> |
59 |
</target>
|
60 |
|
61 |
</project>
|