root / tags / v1_0_2_Build_896 / libraries / libDwg / build.xml @ 10391
History | View | Annotate | Download (3.77 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 |
|
16 |
<target name="init"> |
17 |
<!-- Create the time stamp -->
|
18 |
<tstamp/> |
19 |
</target>
|
20 |
|
21 |
<target name="make1" depends="init" |
22 |
description="generate jdwglib.jar in /lib and in the gvSIG Driver" > |
23 |
<jar jarfile="${sig_dwg_driver}/${jarName}.jar"> |
24 |
<fileset dir="${build}" |
25 |
excludes="com/iver/cit/gvsig/fmap/drivers/dgn/ByteUtils.class" |
26 |
/>
|
27 |
</jar>
|
28 |
<jar jarfile="${lib}/${jarName}.jar" basedir="${build}" includes="**/**"/> |
29 |
</target>
|
30 |
|
31 |
<target name="make2" depends="make1" |
32 |
description="generate jdwglib.jar in GDBMS/lib" > |
33 |
<jar jarfile="${gdbms_dwg_driver}/${jarName}.jar" basedir="${build}" includes="**/**"/> |
34 |
</target>
|
35 |
|
36 |
<target name="make3" depends="make1" |
37 |
description="generate jdwglib.jar in FMap 03 CAD/lib" > |
38 |
<jar jarfile="${cad_dwg_driver}/${jarName}.jar"> |
39 |
<fileset dir="${build}" |
40 |
excludes="com/iver/cit/gvsig/fmap/drivers/dgn/ByteUtils.class" |
41 |
/>
|
42 |
</jar>
|
43 |
</target>
|
44 |
|
45 |
<target name="clean-orig" depends="dist" |
46 |
description="clean dist directory" > |
47 |
<!-- Clean the distribution directory -->
|
48 |
<delete dir="${dist}/src"/> |
49 |
<delete dir="${dist}/doc"/> |
50 |
<delete dir="${dist}/lib"/> |
51 |
</target>
|
52 |
|
53 |
<target name="dist" depends="make1" |
54 |
description="generate the distribution" > |
55 |
<!-- Remove previous distribution directory -->
|
56 |
<delete dir="${dist}"/> |
57 |
<!-- Create the distribution directory structure -->
|
58 |
<mkdir dir="${dist}"/> |
59 |
<mkdir dir="${dist}/src"/> |
60 |
<mkdir dir="${dist}/doc"/> |
61 |
<mkdir dir="${dist}/lib"/> |
62 |
<!-- Copy necessary distribution files to dist dir -->
|
63 |
<copy todir="${dist}/src"> |
64 |
<fileset dir="${src}"/> |
65 |
</copy>
|
66 |
<copy todir="${dist}/doc"> |
67 |
<fileset dir="${doc}"> |
68 |
<exclude name="dev_notes.txt"/> |
69 |
</fileset>
|
70 |
</copy>
|
71 |
<copy todir="${dist}/lib"> |
72 |
<fileset dir="${lib}"/> |
73 |
</copy>
|
74 |
<!-- Zip distribution -->
|
75 |
<zip destfile="${dist}/jdwglib.zip" |
76 |
basedir="${dist}" |
77 |
update="true" |
78 |
/>
|
79 |
</target>
|
80 |
|
81 |
<target name="batch-build" |
82 |
description="compile the sources, create the jar file" |
83 |
depends="compile,create-jar,move-to-extdwg"> |
84 |
</target>
|
85 |
|
86 |
<target name="compile" description="compile the source" > |
87 |
<!-- Compile the Java code from ${src} to ${build} -->
|
88 |
<mkdir dir="${build}" /> |
89 |
<javac srcdir="${src}" |
90 |
destdir="${build}" |
91 |
classpath="${compile-classpath}" |
92 |
source="1.4" |
93 |
target="1.4" |
94 |
debug="${debug}" |
95 |
debuglevel="${debuglevel}" |
96 |
excludes="com/iver/cit/gvsig/fmap/**"/> |
97 |
</target>
|
98 |
|
99 |
<target name="create-jar" |
100 |
description="Creates the plugin jar"> |
101 |
<mkdir dir="${dist}"/> |
102 |
<jar jarfile="${dist}/${jarName}.jar" |
103 |
basedir="${build}" |
104 |
excludes="com/iver/cit/gvsig/fmap/**"/> |
105 |
</target>
|
106 |
|
107 |
<target name="move-to-extdwg"> |
108 |
<!-- jar file must be in gvSIG/lib directory -->
|
109 |
<!--<copy file="${without_src}/${plugin}.jar" todir="${lib-dir}"/>-->
|
110 |
<move todir="${sig_dwg_driver}" file="${dist}/${jarName}.jar"/> |
111 |
</target>
|
112 |
|
113 |
<target name="clean" |
114 |
description="clean up"> |
115 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
116 |
<delete dir="${build}" /> |
117 |
<delete dir="${dist}" /> |
118 |
</target>
|
119 |
|
120 |
</project>
|