svn-gvsig-desktop / tags / v1_1_Build_1000 / extensions / extExpressionField / build.xml @ 39111
History | View | Annotate | Download (5.48 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 |
|
18 |
<property name="build" location="bin"/> |
19 |
<target name="init"> |
20 |
<!-- Create the time stamp -->
|
21 |
<echo>
|
22 |
Compiling ${ant.project.name}...</echo>
|
23 |
<tstamp/> |
24 |
<mkdir dir="${without_src}"/> |
25 |
</target>
|
26 |
|
27 |
|
28 |
<target name="generate-source-package"> |
29 |
<delete dir="${dist-src}" quiet="yes"/> |
30 |
<mkdir dir="${dist-src}"/> |
31 |
<basename file="${basedir}" property="extensionProjectDir"/> |
32 |
<mkdir dir="${dist-src}/${extensionProjectDir}"/> |
33 |
<copy todir="${dist-src}/${extensionProjectDir}"> |
34 |
<fileset dir="${basedir}"/> |
35 |
</copy>
|
36 |
<copy todir="${dist-src}"> |
37 |
<fileset dir="${basedir}/install/resources" includes="${readMe.files}"/> |
38 |
</copy>
|
39 |
<delete dir="${dist-src}/${extensionProjectDir}/bin"/> |
40 |
<mkdir dir="${dist-src}/${extensionProjectDir}/bin"/> |
41 |
<delete dir="${dist-src}/${extensionProjectDir}/install"/> |
42 |
<delete dir="${dist-src}/${extensionProjectDir}/dist" quiet="yes"/> |
43 |
<delete dir="${dist-src}/${extensionProjectDir}/dist-src" quiet="yes"/> |
44 |
<loadproperties srcFile="build.number"/> |
45 |
<replace casesensitive="true" |
46 |
token="#build.number#" |
47 |
value="${build.number}" |
48 |
dir="${dist-src}" |
49 |
includes="${readMe.files}"/> |
50 |
<zip destfile="${dist-src}/gvsig_expresionfield-01_${build.number}-src.zip" |
51 |
basedir="${dist-src-name}" |
52 |
excludes="*.zip" |
53 |
/>
|
54 |
|
55 |
</target>
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
<target name="buildNumber"> |
61 |
<echo> Obsoleto: este proyecto se distribuye con gvSIG de base </echo> |
62 |
<!--
|
63 |
<propertyfile
|
64 |
file="build.number"
|
65 |
comment="Build Number for ANT. Do not edit!">
|
66 |
<entry key="build.number" default="0" type="int" operation="+" />
|
67 |
</propertyfile>
|
68 |
<property file="build.number" />
|
69 |
-->
|
70 |
</target>
|
71 |
<target name="distribution" description="increment build number and generate the distribution without the source file" > |
72 |
<echo> Obsoleto: este proyecto se distribuye con gvSIG de base </echo> |
73 |
<!-- -->
|
74 |
</target>
|
75 |
<target name="generate-without-source" description="generate the distribution without the source file" > |
76 |
<!-- Create the distribution directory -->
|
77 |
<mkdir dir="${without_src}"/> |
78 |
|
79 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
80 |
<jar jarfile="${without_src}/${plugin}.jar" basedir="${bin}"/> |
81 |
<copy file="config/config.xml" todir="${without_src}"/> |
82 |
<copy file="build.number" todir="${without_src}"/> |
83 |
<copy file="config/about.htm" todir="${without_src}"/> |
84 |
<loadproperties srcFile="build.number"/> |
85 |
<replace casesensitive="true" |
86 |
file="${without_src}/about.htm" |
87 |
token="#build.number#" |
88 |
value="${build.number}"/> |
89 |
<copy todir="${without_src}"> |
90 |
<fileset dir="config" includes="text*.properties"/> |
91 |
</copy>
|
92 |
<copy todir="${without_src}/images"> |
93 |
<fileset dir="images/" includes="*"/> |
94 |
</copy>
|
95 |
<move todir="${extensionDir}/${plugin}/"> |
96 |
<fileset dir="${without_src}" includes="**/**"/> |
97 |
</move>
|
98 |
</target>
|
99 |
|
100 |
|
101 |
<target name="deploy" |
102 |
description="compile the sources, create the jar file" |
103 |
depends="init,create-jar,copy-data-files,move-to-andami"> |
104 |
</target>
|
105 |
|
106 |
<target name="batch-build" |
107 |
description="compile the sources, create the jar file" |
108 |
depends="init,compile,create-jar,copy-data-files,move-to-andami"> |
109 |
</target>
|
110 |
|
111 |
<target name="compile" description="compile the source" > |
112 |
<!-- Compile the Java code from ${src} to ${build} -->
|
113 |
<mkdir dir="${build}" /> |
114 |
<javac srcdir="${src}" |
115 |
destdir="${build}" |
116 |
source="${JavaSourceVersion}" |
117 |
target="${JavaTargetVersion}" |
118 |
debug="${debug}" |
119 |
debuglevel="${debuglevel}" |
120 |
classpath="${compile-classpath}"/> |
121 |
</target>
|
122 |
|
123 |
<target name="create-jar" |
124 |
description="Creates the plugin jar"> |
125 |
<jar jarfile="${without_src}/${plugin}.jar" basedir="${bin}"/> |
126 |
</target>
|
127 |
|
128 |
<target name="copy-data-files"> |
129 |
<copy file="config/config.xml" todir="${without_src}"/> |
130 |
<copy file="build.number" todir="${without_src}"/> |
131 |
<copy file="config/about.htm" todir="${without_src}"/> |
132 |
<loadproperties srcFile="build.number"/> |
133 |
<replace casesensitive="true" |
134 |
file="${without_src}/about.htm" |
135 |
token="#build.number#" |
136 |
value="${build.number}"/> |
137 |
<copy todir="${without_src}"> |
138 |
<fileset dir="config" includes="text*.properties"/> |
139 |
</copy>
|
140 |
<copy todir="${without_src}/images"> |
141 |
<fileset dir="images/" includes="*"/> |
142 |
</copy>
|
143 |
</target>
|
144 |
|
145 |
|
146 |
<target name="move-to-andami"> |
147 |
<move todir="${extensionDir}/${plugin}/"> |
148 |
<fileset dir="${without_src}" includes="**/**"/> |
149 |
</move>
|
150 |
</target>
|
151 |
|
152 |
<target name="import-build-number"> |
153 |
<copy todir="."> |
154 |
<fileset file="${buildNumberFile}"/> |
155 |
</copy>
|
156 |
</target>
|
157 |
</project>
|
158 |
|