svn-gvsig-desktop / tags / v1_1_Build_1009 / extensions / extCAD / build.xml @ 12649
History | View | Annotate | Download (3.87 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 |
<property name="JavaSourceVersion" value="1.4"/> |
25 |
<property name="JavaTargetVersion" value="1.4"/> |
26 |
<property name="encoding" value="ISO_8859_1"/> |
27 |
|
28 |
<target name="init"> |
29 |
<!-- Create the time stamp -->
|
30 |
<tstamp/> |
31 |
<echo>
|
32 |
Compiling ${ant.project.name}...</echo>
|
33 |
|
34 |
</target>
|
35 |
|
36 |
|
37 |
<target name="dist" |
38 |
description="generate the distribution" > |
39 |
<!-- Create the distribution directory -->
|
40 |
<mkdir dir="${dist}"/> |
41 |
<copy todir="${extensionsDir}/${mainplugin}/lib"> |
42 |
<fileset dir="./lib" includes="*.jar,*.zip"/> |
43 |
</copy>
|
44 |
<jar jarfile="${dist}/${jarName}" basedir="${build}"/> |
45 |
<copy file="config/config.xml" todir="${dist}"/> |
46 |
<copy file="build.number" todir="${dist}"/> |
47 |
<copy todir="${dist}"> |
48 |
<fileset dir="config" includes="text*.properties"/> |
49 |
</copy>
|
50 |
<copy todir="${dist}/images"> |
51 |
<fileset dir="images/" includes="*"/> |
52 |
</copy>
|
53 |
|
54 |
<move todir="${extensionsDir}/${plugin}/"> |
55 |
<fileset dir="${dist}" includes="**/**"/> |
56 |
</move>
|
57 |
</target>
|
58 |
|
59 |
<target name="import-build-number"> |
60 |
<copy todir="."> |
61 |
<fileset file="${buildNumberFile}"/> |
62 |
</copy>
|
63 |
</target>
|
64 |
|
65 |
<target name="batch-build" |
66 |
description="compile the sources, create the jar file" |
67 |
depends="init,compile,create-jar,copy-data-files,move-to-andami"> |
68 |
</target>
|
69 |
|
70 |
<target name="compile" description="compile the source" > |
71 |
<!-- Compile the Java code from ${src} to ${build} -->
|
72 |
<mkdir dir="${build}" /> |
73 |
<javac srcdir="${src}" |
74 |
destdir="${build}" |
75 |
source="${JavaSourceVersion}" |
76 |
target="${JavaTargetVersion}" |
77 |
debug="${debug}" |
78 |
debuglevel="${debuglevel}" |
79 |
sourcepath="${compile-sourcepath}" |
80 |
encoding="${encoding}"> |
81 |
<classpath refid="extCAD.compile-classpath"/> |
82 |
<classpath refid="libFMap.compile-classpath"/> |
83 |
<classpath refid="_fwAndami.compile-classpath"/> |
84 |
</javac>
|
85 |
</target>
|
86 |
|
87 |
<target name="create-jar" |
88 |
description="Creates the plugin jar"> |
89 |
<mkdir dir="${dist}"/> |
90 |
<jar jarfile="${dist}/${jarName}" basedir="${build}"/> |
91 |
</target>
|
92 |
|
93 |
<target name="copy-data-files"> |
94 |
<copy file="config/config.xml" todir="${dist}"/> |
95 |
<copy file="build.number" todir="${dist}"/> |
96 |
<copy todir="${dist}"> |
97 |
<fileset dir="config" includes="text*.properties"/> |
98 |
</copy>
|
99 |
<copy todir="${dist}/images"> |
100 |
<fileset dir="images/" includes="*"/> |
101 |
</copy>
|
102 |
</target>
|
103 |
|
104 |
<target name="move-to-andami"> |
105 |
<move todir="${extensionsDir}/${plugin}/"> |
106 |
<fileset dir="${dist}" includes="**/**"/> |
107 |
</move>
|
108 |
<copy todir="${extensionsDir}/${mainplugin}/lib"> |
109 |
<fileset dir="./lib" includes="*.jar,*.zip"/> |
110 |
</copy>
|
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 |
</project>
|
120 |
|