root / branches / v10 / extensions / extExpressionField / build.xml @ 29512
History | View | Annotate | Download (6.49 KB)
1 |
<project name="extExpresionField" default="deploy" 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="src" location="src"/> |
7 |
<property name="bin" location="bin"/> |
8 |
<property name="doc" location="doc"/> |
9 |
<property name="dist" location="dist"/> |
10 |
<property name="dist-src-name" value="dist-src"/> |
11 |
<property name="dist-src" location="${dist-src-name}"/> |
12 |
<property name="without_src" location="without_src"/> |
13 |
<property name="plugin" value="com.iver.gvsig.expresionfield"/> |
14 |
<property name="mainplugin" value="com.iver.cit.gvsig"/> |
15 |
<property name="extensionDir" location="../_fwAndami/gvSIG/extensiones"/> |
16 |
<property name="readMe.files" value="Leeme-ExpresionField.txt, Readme-ExpresionField.txt"/> |
17 |
<property name="andami" location="../_fwAndami"/> |
18 |
<property name="andamiLibs" location="${andami}/lib"/> |
19 |
<property name="fmap" location="../libFMap"/> |
20 |
<property name="fmapLibs" location="${fmap}/lib"/> |
21 |
<property name="scripting" location="../extScripting"/> |
22 |
<property name="scriptingLibs" location="${scripting}/lib"/> |
23 |
<property name="installLibDir" location="${extensionDir}/${mainplugin}/lib"/> |
24 |
<property name="cad_gvsig_jar" location="${extensionDir}/${mainplugin}.cad/${mainplugin}.cad.jar"/> |
25 |
<property name="compile-classpath" value="${andami}/andami.jar:${scriptingLibs}/bsf-2.3.0rc1.jar:${andamiLibs}/iver-utiles.jar:${andamiLibs}/beans.jar:${fmapLibs}/fmap.jar:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${fmapLibs}/cms.jar:${fmapLibs}/driver-manager-1.1.jar:${installLibDir}/${mainplugin}.jar:${cad_gvsig_jar}"/> |
26 |
<property name="build" location="bin"/> |
27 |
<target name="init"> |
28 |
<!-- Create the time stamp -->
|
29 |
<echo>
|
30 |
Compiling ${ant.project.name}...</echo>
|
31 |
<tstamp/> |
32 |
<mkdir dir="${without_src}"/> |
33 |
</target>
|
34 |
|
35 |
|
36 |
<target name="generate-source-package"> |
37 |
<delete dir="${dist-src}" quiet="yes"/> |
38 |
<mkdir dir="${dist-src}"/> |
39 |
<basename file="${basedir}" property="extensionProjectDir"/> |
40 |
<mkdir dir="${dist-src}/${extensionProjectDir}"/> |
41 |
<copy todir="${dist-src}/${extensionProjectDir}"> |
42 |
<fileset dir="${basedir}"/> |
43 |
</copy>
|
44 |
<copy todir="${dist-src}"> |
45 |
<fileset dir="${basedir}/install/resources" includes="${readMe.files}"/> |
46 |
</copy>
|
47 |
<delete dir="${dist-src}/${extensionProjectDir}/bin"/> |
48 |
<mkdir dir="${dist-src}/${extensionProjectDir}/bin"/> |
49 |
<delete dir="${dist-src}/${extensionProjectDir}/install"/> |
50 |
<delete dir="${dist-src}/${extensionProjectDir}/dist" quiet="yes"/> |
51 |
<delete dir="${dist-src}/${extensionProjectDir}/dist-src" quiet="yes"/> |
52 |
<loadproperties srcFile="build.number"/> |
53 |
<replace casesensitive="true" |
54 |
token="#build.number#" |
55 |
value="${build.number}" |
56 |
dir="${dist-src}" |
57 |
includes="${readMe.files}"/> |
58 |
<zip destfile="${dist-src}/gvsig_expresionfield-01_${build.number}-src.zip" |
59 |
basedir="${dist-src-name}" |
60 |
excludes="*.zip" |
61 |
/>
|
62 |
|
63 |
</target>
|
64 |
|
65 |
|
66 |
|
67 |
|
68 |
<target name="buildNumber"> |
69 |
<echo> Obsoleto: este proyecto se distribuye con gvSIG de base </echo> |
70 |
<!--
|
71 |
<propertyfile
|
72 |
file="build.number"
|
73 |
comment="Build Number for ANT. Do not edit!">
|
74 |
<entry key="build.number" default="0" type="int" operation="+" />
|
75 |
</propertyfile>
|
76 |
<property file="build.number" />
|
77 |
-->
|
78 |
</target>
|
79 |
<target name="distribution" description="increment build number and generate the distribution without the source file" > |
80 |
<echo> Obsoleto: este proyecto se distribuye con gvSIG de base </echo> |
81 |
<!-- -->
|
82 |
</target>
|
83 |
<target name="generate-without-source" description="generate the distribution without the source file" > |
84 |
<!-- Create the distribution directory -->
|
85 |
<mkdir dir="${without_src}"/> |
86 |
|
87 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
88 |
<jar jarfile="${without_src}/${plugin}.jar" basedir="${bin}"/> |
89 |
<copy file="config/config.xml" todir="${without_src}"/> |
90 |
<copy file="build.number" todir="${without_src}"/> |
91 |
<copy file="config/about.htm" todir="${without_src}"/> |
92 |
<loadproperties srcFile="build.number"/> |
93 |
<replace casesensitive="true" |
94 |
file="${without_src}/about.htm" |
95 |
token="#build.number#" |
96 |
value="${build.number}"/> |
97 |
<copy todir="${without_src}"> |
98 |
<fileset dir="config" includes="text*.properties"/> |
99 |
</copy>
|
100 |
<copy todir="${without_src}/images"> |
101 |
<fileset dir="images/" includes="*"/> |
102 |
</copy>
|
103 |
<move todir="${extensionDir}/${plugin}/"> |
104 |
<fileset dir="${without_src}" includes="**/**"/> |
105 |
</move>
|
106 |
</target>
|
107 |
|
108 |
|
109 |
<target name="deploy" |
110 |
description="compile the sources, create the jar file" |
111 |
depends="init,create-jar,copy-data-files,move-to-andami"> |
112 |
</target>
|
113 |
|
114 |
<target name="batch-build" |
115 |
description="compile the sources, create the jar file" |
116 |
depends="init,compile,create-jar,copy-data-files,move-to-andami"> |
117 |
</target>
|
118 |
|
119 |
<target name="compile" description="compile the source" > |
120 |
<!-- Compile the Java code from ${src} to ${build} -->
|
121 |
<mkdir dir="${build}" /> |
122 |
<javac srcdir="${src}" |
123 |
destdir="${build}" |
124 |
source="${JavaSourceVersion}" |
125 |
target="${JavaTargetVersion}" |
126 |
debug="${debug}" |
127 |
debuglevel="${debuglevel}" |
128 |
encoding="${encoding}" |
129 |
classpath="${compile-classpath}"/> |
130 |
<copy todir="${build}"> |
131 |
<fileset
|
132 |
dir="${src}" |
133 |
excludes="**/*.java"/> |
134 |
</copy>
|
135 |
|
136 |
</target>
|
137 |
|
138 |
<target name="create-jar" |
139 |
description="Creates the plugin jar"> |
140 |
<jar jarfile="${without_src}/${plugin}.jar" basedir="${bin}"/> |
141 |
</target>
|
142 |
|
143 |
<target name="copy-data-files"> |
144 |
<copy file="config/config.xml" todir="${without_src}"/> |
145 |
<copy file="build.number" todir="${without_src}"/> |
146 |
<copy file="config/about.htm" todir="${without_src}"/> |
147 |
<loadproperties srcFile="build.number"/> |
148 |
<replace casesensitive="true" |
149 |
file="${without_src}/about.htm" |
150 |
token="#build.number#" |
151 |
value="${build.number}"/> |
152 |
<copy todir="${without_src}"> |
153 |
<fileset dir="config" includes="text*.properties"/> |
154 |
</copy>
|
155 |
<copy todir="${without_src}/images"> |
156 |
<fileset dir="images/" includes="*"/> |
157 |
</copy>
|
158 |
</target>
|
159 |
|
160 |
|
161 |
<target name="move-to-andami"> |
162 |
<move todir="${extensionDir}/${plugin}/"> |
163 |
<fileset dir="${without_src}" includes="**/**"/> |
164 |
</move>
|
165 |
</target>
|
166 |
|
167 |
<target name="import-build-number"> |
168 |
<copy todir="."> |
169 |
<fileset file="${buildNumberFile}"/> |
170 |
</copy>
|
171 |
</target>
|
172 |
|
173 |
<target name="clean"> |
174 |
<delete dir="${dist}" failonerror="false"/> |
175 |
<delete dir="${dist-src}" failonerror="false"/> |
176 |
</target>
|
177 |
|
178 |
</project>
|
179 |
|