svn-gvsig-desktop / tags / v1_0_2_Build_895 / extensions / extCAD / build.xml @ 10328
History | View | Annotate | Download (3.67 KB)
1 |
<project name="extCAD" default="dist" basedir="."> |
---|---|
2 |
<description>
|
3 |
Instala el plugin de CAD |
4 |
</description>
|
5 |
<!-- set global properties for this build -->
|
6 |
<property name="src" location="src"/> |
7 |
<property name="build" location="bin"/> |
8 |
<property name="dist" location="dist"/> |
9 |
<property name="plugin" value="com.iver.cit.gvsig.cad"/> |
10 |
<property name="mainplugin" value="com.iver.cit.gvsig"/> |
11 |
|
12 |
<property name="lib" value="lib"/> |
13 |
<property name="andami" value="../_fwAndami"/> |
14 |
<property name="jarName" value="${plugin}.jar"/> |
15 |
<property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
16 |
<property name="andamiJar" location="${andami}/andami.jar"/> |
17 |
<property name="gvsigJar" location="${extensionsDir}/com.iver.cit.gvsig/lib/com.iver.cit.gvsig.jar"/> |
18 |
<property name="andamiLibs" location="${andami}/lib"/> |
19 |
<property name="fmapLibs" location="../libFMap/lib" /> |
20 |
<import file="compile-classpath.xml"/> |
21 |
<import file="../libFMap/compile-classpath.xml"/> |
22 |
<import file="../_fwAndami/compile-classpath.xml"/> |
23 |
<property name="compile-sourcepath" value="../appgvSIG/src"/> |
24 |
|
25 |
<target name="init"> |
26 |
<!-- Create the time stamp -->
|
27 |
<tstamp/> |
28 |
<echo>
|
29 |
Compiling ${ant.project.name}...</echo>
|
30 |
|
31 |
</target>
|
32 |
|
33 |
|
34 |
<target name="dist" |
35 |
description="generate the distribution" > |
36 |
<!-- Create the distribution directory -->
|
37 |
<mkdir dir="${dist}"/> |
38 |
<copy todir="${extensionsDir}/${mainplugin}/lib"> |
39 |
<fileset dir="./lib" includes="*.jar,*.zip"/> |
40 |
</copy>
|
41 |
<jar jarfile="${dist}/${jarName}" basedir="${build}"/> |
42 |
<copy file="config/config.xml" todir="${dist}"/> |
43 |
<copy file="build.number" todir="${dist}"/> |
44 |
<copy todir="${dist}"> |
45 |
<fileset dir="config" includes="text*.properties"/> |
46 |
</copy>
|
47 |
<copy todir="${dist}/images"> |
48 |
<fileset dir="images/" includes="*"/> |
49 |
</copy>
|
50 |
|
51 |
<move todir="${extensionsDir}/${plugin}/"> |
52 |
<fileset dir="${dist}" includes="**/**"/> |
53 |
</move>
|
54 |
</target>
|
55 |
|
56 |
<target name="import-build-number"> |
57 |
<copy todir="."> |
58 |
<fileset file="${buildNumberFile}"/> |
59 |
</copy>
|
60 |
</target>
|
61 |
|
62 |
<target name="batch-build" |
63 |
description="compile the sources, create the jar file" |
64 |
depends="init,compile,create-jar,copy-data-files,move-to-andami"> |
65 |
</target>
|
66 |
|
67 |
<target name="compile" description="compile the source" > |
68 |
<!-- Compile the Java code from ${src} to ${build} -->
|
69 |
<mkdir dir="${build}" /> |
70 |
<javac srcdir="${src}" |
71 |
destdir="${build}" |
72 |
source="1.4" |
73 |
target="1.4" |
74 |
debug="${debug}" |
75 |
debuglevel="${debuglevel}" |
76 |
sourcepath="${compile-sourcepath}"> |
77 |
<classpath refid="extCAD.compile-classpath"/> |
78 |
<classpath refid="libFMap.compile-classpath"/> |
79 |
<classpath refid="_fwAndami.compile-classpath"/> |
80 |
</javac>
|
81 |
</target>
|
82 |
|
83 |
<target name="create-jar" |
84 |
description="Creates the plugin jar"> |
85 |
<mkdir dir="${dist}"/> |
86 |
<jar jarfile="${dist}/${jarName}" basedir="${build}"/> |
87 |
</target>
|
88 |
|
89 |
<target name="copy-data-files"> |
90 |
<copy file="config/config.xml" todir="${dist}"/> |
91 |
<copy file="build.number" todir="${dist}"/> |
92 |
<copy todir="${dist}"> |
93 |
<fileset dir="config" includes="text*.properties"/> |
94 |
</copy>
|
95 |
<copy todir="${dist}/images"> |
96 |
<fileset dir="images/" includes="*"/> |
97 |
</copy>
|
98 |
</target>
|
99 |
|
100 |
<target name="move-to-andami"> |
101 |
<move todir="${extensionsDir}/${plugin}/"> |
102 |
<fileset dir="${dist}" includes="**/**"/> |
103 |
</move>
|
104 |
<copy todir="${extensionsDir}/${mainplugin}/lib"> |
105 |
<fileset dir="./lib" includes="*.jar,*.zip"/> |
106 |
</copy>
|
107 |
</target>
|
108 |
|
109 |
<target name="clean" |
110 |
description="clean up" > |
111 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
112 |
<delete dir="${build}"/> |
113 |
<delete dir="${dist}"/> |
114 |
</target>
|
115 |
</project>
|
116 |
|