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