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