root / trunk / extensions / extRasterTools / build.xml @ 11445
History | View | Annotate | Download (4.28 KB)
1 | 8088 | cesar | <project name="extRasterTools" default="generate-without-source" basedir="."> |
---|---|---|---|
2 | 3890 | nacho | <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 | 5622 | cesar | <property name="andami" location="../_fwAndami"/> |
10 | <property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
||
11 | <property name="andamiJar" location="${andami}/andami.jar"/> |
||
12 | <property name="gvsigJar" location="${extensionsDir}/com.iver.cit.gvsig/lib/com.iver.cit.gvsig.jar"/> |
||
13 | <property name="cmsLibs" location="../libCq CMS for java/lib" /> |
||
14 | <property name="fmapLibs" location="../libFMap/lib" /> |
||
15 | <property name="andamiLibs" location="${andami}/lib" /> |
||
16 | 9667 | cesar | <property name="fmapJar" location="../libFMap/dist/lib/fmap.jar"/> |
17 | 10685 | cesar | <property name="compile-classpath" value="${andamiJar}:${gvsigJar}:${fmapLibs}/cms.jar:${fmapJar}:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${fmapLibs}/gvsig-exceptions.jar:${andamiLibs}/iver-utiles.jar:${cmsLibs}/jecw-0.0.1.jar:${cmsLibs}/jecwcompress-0.1.0.jar:${cmsLibs}/jgdal-0.6.0.jar:${cmsLibs}/jmrsid-0.0.2.jar" /> |
18 | 4548 | nacho | |
19 | 3890 | nacho | <!--Plugins-->
|
20 | 5622 | cesar | <property name="plugin" value="org.gvsig.rasterTools"/> |
21 | <property name="jarName" value="${plugin}.jar"/> |
||
22 | 3890 | nacho | |
23 | <target name="init"> |
||
24 | <!-- Create the time stamp -->
|
||
25 | <tstamp/> |
||
26 | 8088 | cesar | |
27 | <echo>
|
||
28 | Compiling ${ant.project.name}...</echo>
|
||
29 | 3890 | nacho | <!-- Create the build directory structure used by compile -->
|
30 | <mkdir dir="${dist}"/> |
||
31 | <!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
|
||
32 | 8088 | cesar | <!-- <buildnumber/> -->
|
33 | 3890 | nacho | </target>
|
34 | |||
35 | 10187 | jmvivo | <target name="import-build-number"> |
36 | <copy todir="."> |
||
37 | <fileset file="${buildNumberFile}"/> |
||
38 | </copy>
|
||
39 | </target>
|
||
40 | |||
41 | 3890 | nacho | <target name="generate-without-source" |
42 | description="generate the distribution without the source file"> |
||
43 | |||
44 | <!-- Create the distribution directory -->
|
||
45 | <mkdir dir="${dist}"/> |
||
46 | |||
47 | <!-- Jars de las extensiones -->
|
||
48 | 5622 | cesar | <jar jarfile="${dist}/${jarName}" basedir="${build}" |
49 | includes="org/gvsig/rasterTools/**" |
||
50 | 5534 | nacho | excludes="org/gvsig/rasterTools/brightnessContrast/**,org/gvsig/rasterTools/histogram/**"/> |
51 | 4582 | nacho | |
52 | 3890 | nacho | <!-- Instala extensión salvar a raster -->
|
53 | 5622 | cesar | <move todir="${extensionsDir}/${plugin}/"> |
54 | <fileset dir="${dist}" includes="${jarName}"/> |
||
55 | 3890 | nacho | </move>
|
56 | 5622 | cesar | <copy file="config/config.xml" todir="${extensionsDir}/${plugin}"/> |
57 | 10187 | jmvivo | <copy file="build.number" todir="${extensionsDir}/${plugin}"/> |
58 | 5622 | cesar | <copy file="config/plugin.dtd" todir="${extensionsDir}/${plugin}"/> |
59 | <copy todir="${extensionsDir}/${plugin}"> |
||
60 | 5623 | cesar | <fileset dir="config" includes="text*.properties"/> |
61 | 3890 | nacho | </copy>
|
62 | 5622 | cesar | <mkdir dir="${extensionsDir}/${plugin}/images"/> |
63 | <copy todir="${extensionsDir}/${plugin}/images"> |
||
64 | <fileset dir="./images/" includes="*"/> |
||
65 | 3890 | nacho | </copy>
|
66 | |||
67 | </target>
|
||
68 | |||
69 | 5622 | cesar | <target name="batch-build" |
70 | description="compile the sources, create the jar file" |
||
71 | 8088 | cesar | depends="init,compile,create-jar,copy-data-files,move-to-andami"> |
72 | 5622 | cesar | </target>
|
73 | |||
74 | <target name="compile" description="compile the source" > |
||
75 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
76 | <mkdir dir="${build}" /> |
||
77 | <javac srcdir="${src}" |
||
78 | destdir="${build}" |
||
79 | 7786 | cesar | source="1.4" |
80 | target="1.4" |
||
81 | 6296 | cesar | debug="${debug}" |
82 | debuglevel="${debuglevel}" |
||
83 | 5622 | cesar | classpath="${compile-classpath}"/> |
84 | </target>
|
||
85 | |||
86 | <target name="create-jar" |
||
87 | description="Creates the plugin jar"> |
||
88 | <mkdir dir="${dist}"/> |
||
89 | <jar jarfile="${dist}/${jarName}" basedir="${build}" |
||
90 | includes="org/gvsig/rasterTools/**" |
||
91 | excludes="org/gvsig/rasterTools/brightnessContrast/**,org/gvsig/rasterTools/histogram/**"/> |
||
92 | </target>
|
||
93 | |||
94 | <target name="copy-data-files"> |
||
95 | <copy file="config/config.xml" todir="${dist}"/> |
||
96 | 10187 | jmvivo | <copy file="build.number" todir="${dist}"/> |
97 | 5622 | cesar | <copy file="config/plugin.dtd" todir="${dist}"/> |
98 | <copy todir="${dist}"> |
||
99 | 5623 | cesar | <fileset dir="config" includes="text*.properties"/> |
100 | 5622 | cesar | </copy>
|
101 | <copy todir="${dist}/images"> |
||
102 | <fileset dir="images/" includes="*"/> |
||
103 | </copy>
|
||
104 | </target>
|
||
105 | |||
106 | <target name="move-to-andami"> |
||
107 | <move todir="${extensionsDir}/${plugin}/"> |
||
108 | <fileset dir="${dist}" includes="**/**"/> |
||
109 | </move>
|
||
110 | </target>
|
||
111 | |||
112 | 3890 | nacho | <target name="clean" |
113 | description="clean up" > |
||
114 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
115 | <delete dir="${dist}"/> |
||
116 | 5622 | cesar | <delete dir="${build}"/> |
117 | 3890 | nacho | </target>
|
118 | </project>
|