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