svn-gvsig-desktop / trunk / extensions / extgvSIGPiloto-Raster / build.xml @ 9922
History | View | Annotate | Download (5.27 KB)
1 |
<project name="extgvSIGPiloto-Raster" default="generate-without-source" basedir="."> |
---|---|
2 |
<description>
|
3 |
Instala el plugin en Andami |
4 |
</description>
|
5 |
<!-- set global properties for this build -->
|
6 |
<property name="src" location="src"/> |
7 |
<property name="build" location="bin"/> |
8 |
<property name="dist" location="dist"/> |
9 |
<property name="andami" location="../_fwAndami"/> |
10 |
<property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
11 |
<property name="mainplugin" value="com.iver.cit.gvsig"/> |
12 |
<property name="lib-dir" location="${extensionsDir}/${mainplugin}/lib"/> |
13 |
<property name="drivers-dir" location="${extensionsDir}/${mainplugin}/drivers" /> |
14 |
|
15 |
<!--Plugins-->
|
16 |
<property name="plugin" value="com.iver.cit.gvsig.pilotoraster"/> |
17 |
<property name="jarName" value="${plugin}.jar"/> |
18 |
|
19 |
<target name="init"> |
20 |
<!-- Create the time stamp -->
|
21 |
<tstamp/> |
22 |
|
23 |
<echo>
|
24 |
Compiling ${ant.project.name}...</echo>
|
25 |
<!-- Create the build directory structure used by compile -->
|
26 |
<mkdir dir="${dist}"/> |
27 |
<loadproperties srcFile="build.number"/> |
28 |
</target>
|
29 |
|
30 |
<target name="raw" depends="" description="Genera el driver del raw"> |
31 |
<mkdir dir="${drivers-dir}/raw" /> |
32 |
<jar jarfile="${drivers-dir}/raw/raw.jar" basedir="./bin" includes="org/gvsig/rasterTools/raw/**" /> |
33 |
</target>
|
34 |
|
35 |
<target name="generate-without-source" |
36 |
description="generate the distribution without the source file" |
37 |
depends="raw"> |
38 |
|
39 |
<!-- Create the distribution directory -->
|
40 |
<mkdir dir="${dist}"/> |
41 |
|
42 |
<!-- Jars de las extensiones -->
|
43 |
<jar jarfile="${dist}/${jarName}" basedir="${build}" |
44 |
includes="com/iver/cit/gvsig/**,org/gvsig/rasterTools/**"/> |
45 |
|
46 |
<!-- Instala extensión salvar a raster -->
|
47 |
<move todir="${extensionsDir}/${plugin}/"> |
48 |
<fileset dir="${dist}" includes="${jarName}"/> |
49 |
</move>
|
50 |
<copy file="config/config.xml" todir="${extensionsDir}/${plugin}" overwrite="yes"/> |
51 |
<copy file="config/about.htm" todir="${extensionsDir}/${plugin}" overwrite="yes"/> |
52 |
<copy file="build.number" todir="${extensionsDir}/${plugin}" overwrite="yes"/> |
53 |
<loadproperties srcFile="build.number"/> |
54 |
<replace casesensitive="true" |
55 |
file="${extensionsDir}/${plugin}/about.htm" |
56 |
token="#build.number#" |
57 |
value="${build.number}" |
58 |
></replace> |
59 |
<copy file="config/plugin.dtd" todir="${extensionsDir}/${plugin}" overwrite="yes"/> |
60 |
|
61 |
<copy file="config/palettes.xml" todir="${user.home}/gvSIG" overwrite="no"/> |
62 |
<copy file="lib/gvsig-ui.jar" todir="${lib-dir}" overwrite="yes"/> |
63 |
<copy file="lib/cms.jar" todir="${lib-dir}" overwrite="yes"/> |
64 |
<copy file="lib/jcommon-1.0.0.jar" todir="${lib-dir}"/> |
65 |
<copy file="lib/jfreechart-1.0.1.jar" todir="${lib-dir}"/> |
66 |
<copy file="lib/jfreechart-1.0.1-demo.jar" todir="${lib-dir}"/> |
67 |
<copy todir="${extensionsDir}/${plugin}"> |
68 |
<fileset dir="config" includes="text*.properties"/> |
69 |
<fileset dir="." includes="images/"/> |
70 |
</copy>
|
71 |
|
72 |
</target>
|
73 |
<target name="buildNumber"> |
74 |
<!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
|
75 |
<buildnumber/> |
76 |
</target>
|
77 |
<target name="distribution" |
78 |
description="compile the sources, create the jar file for distribution (generate new build number)" |
79 |
depends="buildNumber,init,compile,create-jar,copy-data-files,move-to-andami" |
80 |
>
|
81 |
|
82 |
</target>
|
83 |
|
84 |
<target name="batch-build" |
85 |
description="compile the sources, create the jar file" |
86 |
depends="init,compile,create-jar,copy-data-files,move-to-andami"> |
87 |
</target>
|
88 |
|
89 |
<target name="compile" description="compile the source" > |
90 |
<!-- Compile the Java code from ${src} to ${build} -->
|
91 |
<mkdir dir="${build}" /> |
92 |
<javac srcdir="${src}" |
93 |
destdir="${build}" |
94 |
source="1.4" |
95 |
target="1.4" |
96 |
debug="${debug}" |
97 |
debuglevel="${debuglevel}" |
98 |
classpath="${compile-classpath}"/> |
99 |
</target>
|
100 |
|
101 |
<target name="create-jar" |
102 |
description="Creates the plugin jar"> |
103 |
<mkdir dir="${dist}"/> |
104 |
<jar jarfile="${dist}/${jarName}" basedir="${build}" |
105 |
includes="com/iver/cit/gvsig/**,org/gvsig/rasterTools/**"/> |
106 |
</target>
|
107 |
|
108 |
<target name="copy-data-files"> |
109 |
<copy file="config/config.xml" todir="${dist}" overwrite="yes"/> |
110 |
<copy file="config/about.htm" todir="${dist}" overwrite="yes"/> |
111 |
<replace casesensitive="true" |
112 |
file="${dist}/about.htm" |
113 |
token="#build.number#" |
114 |
value="${build.number}" |
115 |
></replace> |
116 |
<copy file="build.number" todir="${dist}" overwrite="yes"/> |
117 |
<copy file="config/plugin.dtd" todir="${dist}" overwrite="yes"/> |
118 |
<copy file="config/palettes.xml" todir="${user.home}/gvSIG" overwrite="no"/> |
119 |
<copy file="lib/gvsig-ui.jar" todir="${lib-dir}" overwrite="yes"/> |
120 |
<copy file="lib/cms.jar" todir="${lib-dir}" overwrite="yes"/> |
121 |
<copy file="lib/jcommon-1.0.0.jar" todir="${lib-dir}"/> |
122 |
<copy file="lib/jfreechart-1.0.1.jar" todir="${lib-dir}"/> |
123 |
<copy file="lib/jfreechart-1.0.1-demo.jar" todir="${lib-dir}"/> |
124 |
<copy todir="${dist}"> |
125 |
<fileset dir="config" includes="text*.properties"/> |
126 |
<fileset dir="." includes="images/"/> |
127 |
</copy>
|
128 |
</target>
|
129 |
|
130 |
<target name="move-to-andami"> |
131 |
<move todir="${extensionsDir}/${plugin}/"> |
132 |
<fileset dir="${dist}" includes="**/**"/> |
133 |
</move>
|
134 |
</target>
|
135 |
|
136 |
<target name="clean" |
137 |
description="clean up" > |
138 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
139 |
<delete dir="${dist}"/> |
140 |
<delete dir="${build}"/> |
141 |
</target>
|
142 |
</project>
|
143 |
|