svn-gvsig-desktop / tags / v1_0_2_Build_905 / libraries / libDwg / build.xml @ 10767
History | View | Annotate | Download (4.2 KB)
1 |
<project name="jdwglib" default="clean-orig" basedir="."> |
---|---|
2 |
<description>
|
3 |
Genera jdwglib.jar en /lib y una distribuciĆ³n |
4 |
</description>
|
5 |
<!-- set global properties for this build -->
|
6 |
<property name="src" location="src"/> |
7 |
<property name="build" location="bin"/> |
8 |
<property name="lib" location="lib"/> |
9 |
<property name="doc" location="doc"/> |
10 |
<property name="jarName" value="jdwglib"/> |
11 |
<property name="sig_dwg_driver" location="../extDwg/lib"/> |
12 |
<!-- property name="gdbms_dwg_driver" location="../GDBMS_DWG_Driver/lib"/-->
|
13 |
<!-- property name="cad_dwg_driver" location="C:/jmorell/data/piloto/workspace/FMap 03 piloto/lib"/-->
|
14 |
<property name="dist" location="dist"/> |
15 |
<property name="libDir" location="../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/lib" /> |
16 |
<property name="andamiLibs" location="../_fwAndami/lib" /> |
17 |
<property name="compile-classpath" value="${libDir}/fmap.jar:${andamiLibs}/log4j-1.2.8.jar"/> |
18 |
|
19 |
<property name="JavaSourceVersion" value="1.4"/> |
20 |
<property name="JavaTargetVersion" value="1.4"/> |
21 |
|
22 |
<target name="init"> |
23 |
<!-- Create the time stamp -->
|
24 |
<tstamp/> |
25 |
<echo>
|
26 |
Compiling ${ant.project.name}...</echo>
|
27 |
</target>
|
28 |
|
29 |
<target name="make1" depends="init" |
30 |
description="generate jdwglib.jar in /lib and in the gvSIG Driver" > |
31 |
<jar jarfile="${sig_dwg_driver}/${jarName}.jar"> |
32 |
<fileset dir="${build}" |
33 |
excludes="com/iver/cit/gvsig/fmap/drivers/dgn/ByteUtils.class" |
34 |
/>
|
35 |
</jar>
|
36 |
<jar jarfile="${lib}/${jarName}.jar" basedir="${build}" includes="**/**"/> |
37 |
</target>
|
38 |
|
39 |
<target name="make2" depends="make1" |
40 |
description="generate jdwglib.jar in GDBMS/lib" > |
41 |
<jar jarfile="${gdbms_dwg_driver}/${jarName}.jar" basedir="${build}" includes="**/**"/> |
42 |
</target>
|
43 |
|
44 |
<target name="make3" depends="make1" |
45 |
description="generate jdwglib.jar in FMap 03 CAD/lib" > |
46 |
<jar jarfile="${cad_dwg_driver}/${jarName}.jar"> |
47 |
<fileset dir="${build}" |
48 |
excludes="com/iver/cit/gvsig/fmap/drivers/dgn/ByteUtils.class" |
49 |
/>
|
50 |
</jar>
|
51 |
</target>
|
52 |
|
53 |
<target name="clean-orig" 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}/lib"/> |
59 |
</target>
|
60 |
|
61 |
<target name="dist" depends="make1" |
62 |
description="generate the distribution" > |
63 |
<!-- Remove previous distribution directory -->
|
64 |
<delete dir="${dist}"/> |
65 |
<!-- Create the distribution directory structure -->
|
66 |
<mkdir dir="${dist}"/> |
67 |
<mkdir dir="${dist}/src"/> |
68 |
<mkdir dir="${dist}/doc"/> |
69 |
<mkdir dir="${dist}/lib"/> |
70 |
<!-- Copy necessary distribution files to dist dir -->
|
71 |
<copy todir="${dist}/src"> |
72 |
<fileset dir="${src}"/> |
73 |
</copy>
|
74 |
<copy todir="${dist}/doc"> |
75 |
<fileset dir="${doc}"> |
76 |
<exclude name="dev_notes.txt"/> |
77 |
</fileset>
|
78 |
</copy>
|
79 |
<copy todir="${dist}/lib"> |
80 |
<fileset dir="${lib}"/> |
81 |
</copy>
|
82 |
<!-- Zip distribution -->
|
83 |
<zip destfile="${dist}/jdwglib.zip" |
84 |
basedir="${dist}" |
85 |
update="true" |
86 |
/>
|
87 |
</target>
|
88 |
|
89 |
<target name="batch-build" |
90 |
description="compile the sources, create the jar file" |
91 |
depends="init,compile,create-jar,move-to-extdwg"> |
92 |
</target>
|
93 |
|
94 |
<target name="compile" description="compile the source" > |
95 |
<!-- Compile the Java code from ${src} to ${build} -->
|
96 |
<mkdir dir="${build}" /> |
97 |
<javac srcdir="${src}" |
98 |
destdir="${build}" |
99 |
classpath="${compile-classpath}" |
100 |
source="${JavaSourceVersion}" |
101 |
target="${JavaTargetVersion}" |
102 |
debug="${debug}" |
103 |
debuglevel="${debuglevel}" |
104 |
excludes="com/iver/cit/gvsig/fmap/**"/> |
105 |
</target>
|
106 |
|
107 |
<target name="create-jar" |
108 |
description="Creates the plugin jar"> |
109 |
<mkdir dir="${dist}"/> |
110 |
<jar jarfile="${dist}/${jarName}.jar" |
111 |
basedir="${build}" |
112 |
excludes="com/iver/cit/gvsig/fmap/**"/> |
113 |
</target>
|
114 |
|
115 |
<target name="move-to-extdwg"> |
116 |
<!-- jar file must be in gvSIG/lib directory -->
|
117 |
<!--<copy file="${without_src}/${plugin}.jar" todir="${lib-dir}"/>-->
|
118 |
<move todir="${sig_dwg_driver}" file="${dist}/${jarName}.jar"/> |
119 |
</target>
|
120 |
|
121 |
<target name="clean" |
122 |
description="clean up"> |
123 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
124 |
<delete dir="${build}" /> |
125 |
<delete dir="${dist}" /> |
126 |
</target>
|
127 |
|
128 |
</project>
|