svn-gvsig-desktop / tags / v2_0_Build_1220 / extensions / extRemoteSensing / build.xml @ 47840
History | View | Annotate | Download (2.57 KB)
1 | 12096 | dguerrero | <project name="Generar extension en Andami" default="generate-without-source" basedir="."> |
---|---|---|---|
2 | <description>
|
||
3 | Instala la extension RasterRaster 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="lib" location="lib"/> |
||
10 | 14669 | jmvivo | <property name="plugin" value="org.gvsig.remotesensing"/> |
11 | 12096 | dguerrero | <property name="extension-dir" location="../_fwAndami/gvSIG/extensiones"/> |
12 | <property name="andami-dir" location="../_fwAndami"/> |
||
13 | <property name="targetDir" location="../libFMap/lib" /> |
||
14 | |||
15 | 14606 | jmvivo | <import file="../binaries/ant/utilities.xml"/> |
16 | |||
17 | 12096 | dguerrero | <target name="init"> |
18 | <!-- Create the time stamp -->
|
||
19 | <tstamp/> |
||
20 | <!-- Create the build directory structure used by compile -->
|
||
21 | <mkdir dir="${build}"/> |
||
22 | <mkdir dir="${dist}"/> |
||
23 | 14669 | jmvivo | <mkdir dir="${dist}/lib"/> |
24 | |||
25 | 12096 | dguerrero | <!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
|
26 | 14606 | jmvivo | <!--<buildnumber/>-->
|
27 | |||
28 | 12096 | dguerrero | </target>
|
29 | |||
30 | |||
31 | 14606 | jmvivo | <target name="batch-build" |
32 | description="compile the sources, create the jar file" |
||
33 | depends="init,compile,create-jar,copy-data-files,move-to-andami"> |
||
34 | </target>
|
||
35 | |||
36 | <target name="compile" description="compile the source" > |
||
37 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
38 | <antcall target="gvSIG-import-build-number"/> |
||
39 | <mkdir dir="${build}" /> |
||
40 | <loadEclipseClasspath project="${basedir}"/> |
||
41 | <gvSIG-javac
|
||
42 | classpath="${eclipseClasspath}" |
||
43 | />
|
||
44 | </target>
|
||
45 | |||
46 | |||
47 | |||
48 | <target name="generate-without-source" |
||
49 | description="generate the distribution without the source file" |
||
50 | depends="init,create-jar,copy-data-files,move-to-andami" |
||
51 | />
|
||
52 | |||
53 | <target name="create-jar"> |
||
54 | |||
55 | 12096 | dguerrero | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
56 | 14669 | jmvivo | <jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}"/> |
57 | 14606 | jmvivo | </target>
|
58 | |||
59 | <target name="copy-data-files"> |
||
60 | 12096 | dguerrero | <copy file="config/config.xml" todir="${dist}"/> |
61 | 14606 | jmvivo | <copy file="build.number" todir="${dist}"/> |
62 | 12096 | dguerrero | <copy todir="${dist}"> |
63 | <fileset dir="config" includes="text*.properties"/> |
||
64 | </copy>
|
||
65 | <copy todir="${dist}/images"> |
||
66 | <fileset dir="images/" includes="*"/> |
||
67 | </copy>
|
||
68 | 14669 | jmvivo | <copy todir="${dist}/lib"> |
69 | 12096 | dguerrero | <fileset dir="${lib}" includes="**/**"/> |
70 | </copy>
|
||
71 | 14606 | jmvivo | |
72 | </target>
|
||
73 | |||
74 | <target name="move-to-andami"> |
||
75 | |||
76 | 12096 | dguerrero | <move todir="${extension-dir}/${plugin}/"> |
77 | <fileset dir="${dist}" includes="**/**"/> |
||
78 | </move>
|
||
79 | </target>
|
||
80 | 14606 | jmvivo | |
81 | |||
82 | <target name="clean" |
||
83 | description="clean up" > |
||
84 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
85 | <delete dir="${dist}"/> |
||
86 | <delete dir="${build}"/> |
||
87 | </target>
|
||
88 | 12096 | dguerrero | </project>
|
89 |