svn-gvsig-desktop / tags / v1_9_Build_1230 / extensions / extAnnotations / build.xml
History | View | Annotate | Download (5.1 KB)
1 |
<project name="extAnnotations" default="deploy" basedir="."> |
---|---|
2 |
<description>
|
3 |
Instala el plugin en Andami |
4 |
</description>
|
5 |
<import file="../binaries/ant/utilities.xml"/> |
6 |
<!-- set global properties for this build -->
|
7 |
<property name="src" location="src"/> |
8 |
<property name="build" location="bin"/> |
9 |
<property name="src-test" location="src-test"/> |
10 |
<property name="build-test" location="bin-test"/> |
11 |
<property name="dist" location="dist"/> |
12 |
<property name="mainplugin" value="com.iver.cit.gvsig"/> |
13 |
<property name="plugin" value="com.iver.cit.gvsig.annotation"/> |
14 |
<property name="gvsiglibjar" value="gvsig-annotation"/> |
15 |
<property name="extensionDir" location="../_fwAndami/gvSIG/extensiones"/> |
16 |
<property name="dist-src-name" value="dist-src"/> |
17 |
<property name="dist-src" location="${dist-src-name}"/> |
18 |
<property name="readMe.files" value="Leeme-Annotation.txt, Readme-Annotation.txt"/> |
19 |
<property name="andami" location="../_fwAndami"/> |
20 |
<property name="andamiLibs" location="${andami}/lib"/> |
21 |
<property name="fmap" location="../libFMap"/> |
22 |
<property name="fmapLibs" location="${fmap}/lib"/> |
23 |
<property name="installLibDir" location="${extensionDir}/${mainplugin}/lib"/> |
24 |
|
25 |
<target name="init"> |
26 |
<echo>
|
27 |
Compiling ${ant.project.name}...</echo>
|
28 |
<!-- Create the time stamp -->
|
29 |
<tstamp/> |
30 |
<!-- Create the build directory structure used by compile -->
|
31 |
<mkdir dir="${build}"/> |
32 |
<mkdir dir="${dist}"/> |
33 |
<mkdir dir="${dist}/lib"/> |
34 |
|
35 |
</target>
|
36 |
|
37 |
<target name="generate-source-package"> |
38 |
<delete dir="${dist-src}" quiet="yes"/> |
39 |
<mkdir dir="${dist-src}"/> |
40 |
<basename file="${basedir}" property="extensionProjectDir"/> |
41 |
<mkdir dir="${dist-src}/${extensionProjectDir}"/> |
42 |
<copy todir="${dist-src}/${extensionProjectDir}"> |
43 |
<fileset dir="${basedir}"/> |
44 |
</copy>
|
45 |
<copy todir="${dist-src}"> |
46 |
<fileset dir="${basedir}/install/resources" includes="${readMe.files}"/> |
47 |
</copy>
|
48 |
<delete dir="${dist-src}/${extensionProjectDir}/bin"/> |
49 |
<mkdir dir="${dist-src}/${extensionProjectDir}/bin"/> |
50 |
<delete dir="${dist-src}/${extensionProjectDir}/install"/> |
51 |
<delete dir="${dist-src}/${extensionProjectDir}/dist" quiet="yes"/> |
52 |
<delete dir="${dist-src}/${extensionProjectDir}/dist-src" quiet="yes"/> |
53 |
<loadproperties srcFile="build.number"/> |
54 |
<replace casesensitive="true" |
55 |
token="#build.number#" |
56 |
value="${build.number}" |
57 |
dir="${dist-src}" |
58 |
includes="${readMe.files}"/> |
59 |
<zip destfile="${dist-src}/gvsig_annotation-01_${build.number}-src.zip" |
60 |
basedir="${dist-src-name}" |
61 |
excludes="*.zip" |
62 |
/>
|
63 |
|
64 |
</target>
|
65 |
|
66 |
<target name="batch-build" |
67 |
description="compile the sources, create the jar file" |
68 |
depends="init,compile,create-jar,copy-data-files,move-to-andami"> |
69 |
</target>
|
70 |
|
71 |
<target name="deploy" |
72 |
description="compile the sources, create the jar file" |
73 |
depends="init,create-jar,copy-data-files,move-to-andami"> |
74 |
</target>
|
75 |
|
76 |
<target name="compile" description="compile the source" > |
77 |
<!-- Compile the Java code from ${src} to ${build} -->
|
78 |
<antcall target="gvSIG-import-build-number"/> |
79 |
<mkdir dir="${build}" /> |
80 |
<loadEclipseClasspath project="${basedir}"/> |
81 |
<gvSIG-javac
|
82 |
classpath="${eclipseClasspath}" /> |
83 |
</target>
|
84 |
|
85 |
<target name="create-jar" |
86 |
description="Creates the plugin jar"> |
87 |
<jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}" excludes="com/iver/cit/gvsig/fmap/**"/> |
88 |
<jar jarfile="${dist}/lib/gvsig-annotation.jar" basedir="${build}" includes="com/iver/cit/gvsig/fmap/**"/> |
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 file="config/about.htm" todir="${dist}"/> |
95 |
<loadproperties srcFile="build.number"/> |
96 |
<replace casesensitive="true" |
97 |
file="${dist}/about.htm" |
98 |
token="#build.number#" |
99 |
value="${build.number}"/> |
100 |
<copy todir="${dist}"> |
101 |
<fileset dir="config" includes="text*.properties"/> |
102 |
</copy>
|
103 |
<copy todir="${dist}/lib" failonerror="false"> |
104 |
<fileset dir="./lib" includes="*.jar,*.zip"/> |
105 |
<!-- <fileset dir="." includes=".keystore"/> -->
|
106 |
</copy>
|
107 |
<copy todir="${dist}/images"> |
108 |
<fileset dir="images" includes="*"/> |
109 |
</copy>
|
110 |
</target>
|
111 |
|
112 |
|
113 |
<target name="move-to-andami"> |
114 |
<move todir="${extensionDir}/${mainplugin}/lib" file="${dist}/lib/gvsig-annotation.jar"/> |
115 |
<move todir="${extensionDir}/${plugin}/"> |
116 |
<fileset dir="${dist}" includes="**/**"/> |
117 |
</move>
|
118 |
</target>
|
119 |
|
120 |
<target name="import-build-number"> |
121 |
<copy todir="."> |
122 |
<fileset file="${buildNumberFile}"/> |
123 |
</copy>
|
124 |
</target>
|
125 |
|
126 |
<target name="clean" |
127 |
description="clean up" > |
128 |
<delete dir="${dist}"/> |
129 |
</target>
|
130 |
|
131 |
<target name="run-tests" depends="batch-build,compile-tests"> |
132 |
<antcall target="generic-run-tests"> |
133 |
<param name="TestSuite.Name" value="com.iver.cit.gvsig.annotations.AllTests"/> |
134 |
</antcall>
|
135 |
</target>
|
136 |
</project>
|
137 |
|