svn-gvsig-desktop / tags / v1_9_Build_1250 / extensions / extRemoteSensing / build.xml @ 47056
History | View | Annotate | Download (3.13 KB)
1 | 12096 | dguerrero | <project name="Generar extension en Andami" default="generate-without-source" basedir="."> |
---|---|---|---|
2 | <description>
|
||
3 | 30343 | yhijazi | Instala la extension RemoteSensing en Andami. |
4 | 12096 | dguerrero | </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 | 30343 | yhijazi | <copy file="build.number" todir="${dist}"/> |
62 | <copy file="config/about.htm" todir="${dist}"/> |
||
63 | <loadproperties srcFile="build.number"/> |
||
64 | <replace casesensitive="true" |
||
65 | file="${dist}/about.htm" |
||
66 | token="#build.number#" |
||
67 | value="${build.number}"/> |
||
68 | <copy todir="${dist}"> |
||
69 | 12096 | dguerrero | <fileset dir="config" includes="text*.properties"/> |
70 | </copy>
|
||
71 | <copy todir="${dist}/images"> |
||
72 | <fileset dir="images/" includes="*"/> |
||
73 | </copy>
|
||
74 | 14669 | jmvivo | <copy todir="${dist}/lib"> |
75 | 12096 | dguerrero | <fileset dir="${lib}" includes="**/**"/> |
76 | </copy>
|
||
77 | 14606 | jmvivo | |
78 | </target>
|
||
79 | |||
80 | <target name="move-to-andami"> |
||
81 | |||
82 | 12096 | dguerrero | <move todir="${extension-dir}/${plugin}/"> |
83 | <fileset dir="${dist}" includes="**/**"/> |
||
84 | </move>
|
||
85 | </target>
|
||
86 | 14606 | jmvivo | |
87 | |||
88 | <target name="clean" |
||
89 | description="clean up" > |
||
90 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
91 | <delete dir="${dist}"/> |
||
92 | <delete dir="${build}"/> |
||
93 | </target>
|
||
94 | 30343 | yhijazi | |
95 | <target name="buildNumber"> |
||
96 | <propertyfile file="build.number" |
||
97 | comment="Build Number for ANT. Do not edit!"> |
||
98 | <entry key="build.number" default="0" type="int" operation="+" /> |
||
99 | </propertyfile>
|
||
100 | <property file="build.number" /> |
||
101 | </target>
|
||
102 | |||
103 | <target name="distribution" |
||
104 | depends="buildNumber,generate-without-source"/> |
||
105 | |||
106 | 12096 | dguerrero | </project>
|
107 |