svn-gvsig-desktop / trunk / extensions / extCenterViewToPoint / build.xml @ 6355
History | View | Annotate | Download (4.91 KB)
1 |
<project name="Generar extension en Andami" default="generate-without-source" basedir="."> |
---|---|
2 |
<description>
|
3 |
Instala el plugin de Centrar la Vista sobre un punto en Andami. |
4 |
</description>
|
5 |
<!-- set global properties for this build -->
|
6 |
<property name="extensions-dir" location="../_fwAndami/gvSIG/extensiones"/> |
7 |
<property name="src" location="src"/> |
8 |
<property name="build" location="bin"/> |
9 |
<property name="doc" location="doc"/> |
10 |
<property name="dist" location="dist"/> |
11 |
<property name="without_src" location="without_src"/> |
12 |
<property name="plugin" value="com.iver.gvsig.centerviewpoint"/> |
13 |
<property name="jarName" value="com.iver.gvsig.centerviewpoint.jar"/> |
14 |
<property name="andami" location="../_fwAndami"/> |
15 |
<property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
16 |
<property name="fmapLibs" location="../libFMap/lib" /> |
17 |
<property name="andamiLibs" location="${andami}/lib" /> |
18 |
<property name="compile-classpath" value="${andamiLibs}/beans.jar:${fmapLibs}/cms.jar"/> |
19 |
|
20 |
<target name="init"> |
21 |
<!-- Create the time stamp -->
|
22 |
<tstamp/> |
23 |
</target>
|
24 |
|
25 |
<target name="dist" depends="init" |
26 |
description="generate the distribution" > |
27 |
<!-- Remove previous distribution directory -->
|
28 |
<delete dir="${dist}"/> |
29 |
<!-- Create the distribution directory structure -->
|
30 |
<mkdir dir="${dist}"/> |
31 |
<mkdir dir="${dist}/src"/> |
32 |
<mkdir dir="${dist}/doc"/> |
33 |
<mkdir dir="${dist}/bin"/> |
34 |
<mkdir dir="${dist}/bin/com"/> |
35 |
<mkdir dir="${dist}/bin/com/iver"/> |
36 |
<mkdir dir="${dist}/bin/com/iver/gvsig"/> |
37 |
<mkdir dir="${dist}/bin/com/iver/gvsig/centerviewpoint"/> |
38 |
<mkdir dir="${dist}/bin/com/iver/gvsig/centerviewpoint/images"/> |
39 |
<mkdir dir="${dist}/images"/> |
40 |
<mkdir dir="${dist}/config"/> |
41 |
<!-- Copy necessary distribution files to dist dir -->
|
42 |
<copy todir="${dist}/src"> |
43 |
<fileset dir="${src}"/> |
44 |
</copy>
|
45 |
<copy todir="${dist}/doc"> |
46 |
<fileset dir="${doc}"/> |
47 |
</copy>
|
48 |
<copy todir="${dist}/images"> |
49 |
<fileset dir="images"/> |
50 |
</copy>
|
51 |
<copy file="config/config.xml" todir="${dist}/config"/> |
52 |
<copy file="build.xml" todir="${dist}"/> |
53 |
<copy todir="${dist}"> |
54 |
<fileset dir="." includes="text*.properties"/> |
55 |
</copy>
|
56 |
<copy todir="${dist}/bin/com/iver/gvsig/centerviewpoint"> |
57 |
<fileset dir="." includes="text*.properties"/> |
58 |
</copy>
|
59 |
<jar jarfile="${dist}/bin/com/iver/gvsig/centerviewpoint/${plugin}.jar" basedir="${build}"/> |
60 |
<copy file="config/config.xml" todir="${dist}/bin/com/iver/gvsig/centerviewtopoint"/> |
61 |
<copy todir="${dist}/bin/com/iver/gvsig/centerviewpoint/images"> |
62 |
<fileset dir="images"/> |
63 |
</copy>
|
64 |
<!-- Zip distribution -->
|
65 |
<zip destfile="${dist}/gvSIGCenterViewToPointPlugin.zip" |
66 |
basedir="${dist}" |
67 |
update="true" |
68 |
/>
|
69 |
</target>
|
70 |
|
71 |
<target name="clean" |
72 |
description="clean dist directory" > |
73 |
<!-- Clean the distribution directory -->
|
74 |
<delete dir="${dist}/src"/> |
75 |
<delete dir="${dist}/doc"/> |
76 |
<delete dir="${dist}/bin"/> |
77 |
<delete dir="${dist}/images"/> |
78 |
<delete dir="${dist}/config"/> |
79 |
<delete file="${dist}/build.xml"/> |
80 |
<delete>
|
81 |
<fileset dir="${dist}" includes="**/*.properties"/> |
82 |
</delete>
|
83 |
</target>
|
84 |
|
85 |
<target name="generate-without-source" depends="clean" description="generate the distribution without the source file" > |
86 |
<!-- Create the distribution directory -->
|
87 |
<mkdir dir="${without_src}"/> |
88 |
|
89 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
90 |
<jar jarfile="${without_src}/${plugin}.jar" basedir="${build}"/> |
91 |
<copy file="config/config.xml" todir="${without_src}"/> |
92 |
<copy todir="${without_src}"> |
93 |
<fileset dir="." includes="text*.properties"/> |
94 |
</copy>
|
95 |
<copy todir="${without_src}/images"> |
96 |
<fileset dir="images/" includes="*"/> |
97 |
</copy>
|
98 |
<move todir="${extensions-dir}/${plugin}/"> |
99 |
<fileset dir="${without_src}" includes="**/**"/> |
100 |
</move>
|
101 |
</target>
|
102 |
|
103 |
|
104 |
<target name="batch-build" |
105 |
description="compile the sources, create the jar file" |
106 |
depends="compile,create-jar,copy-data-files,move-to-andami"> |
107 |
</target>
|
108 |
|
109 |
<target name="compile" description="compile the source" > |
110 |
<!-- Compile the Java code from ${src} to ${build} -->
|
111 |
<mkdir dir="${build}" /> |
112 |
<javac srcdir="${src}" |
113 |
destdir="${build}" |
114 |
debug="${debug}" |
115 |
debuglevel="${debuglevel}" |
116 |
classpath="${compile-classpath}"/> |
117 |
</target>
|
118 |
|
119 |
<target name="create-jar" |
120 |
description="Creates the plugin jar"> |
121 |
<mkdir dir="${dist}"/> |
122 |
<jar jarfile="${dist}/${jarName}" basedir="${build}" /> |
123 |
</target>
|
124 |
|
125 |
<target name="copy-data-files"> |
126 |
<copy file="config/config.xml" todir="${dist}"/> |
127 |
<copy todir="${dist}"> |
128 |
<fileset dir="config" includes="text*.properties"/> |
129 |
</copy>
|
130 |
<copy todir="${dist}/images"> |
131 |
<fileset dir="images/" includes="*"/> |
132 |
</copy>
|
133 |
</target>
|
134 |
|
135 |
<target name="move-to-andami"> |
136 |
<move todir="${extensionsDir}/${plugin}/"> |
137 |
<fileset dir="${dist}" includes="**/**"/> |
138 |
</move>
|
139 |
</target>
|
140 |
|
141 |
|
142 |
</project>
|
143 |
|