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