svn-gvsig-desktop / tags / v1_11_0_Build_1303 / extensions / extRemoteSensing / build.xml @ 45573
History | View | Annotate | Download (3.34 KB)
1 |
<project name="Generar extension en Andami" default="generate-without-source" basedir="."> |
---|---|
2 |
<description>
|
3 |
Instala la extension RemoteSensing 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 |
<property name="plugin" value="org.gvsig.remotesensing"/> |
11 |
<property name="extension-dir" location="../_fwAndami/gvSIG/extensiones"/> |
12 |
<property name="andami-dir" location="../_fwAndami"/> |
13 |
<property name="targetDir" location="../libFMap/lib" /> |
14 |
|
15 |
<import file="../binaries/ant/utilities.xml"/> |
16 |
|
17 |
<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 |
<mkdir dir="${dist}/lib"/> |
24 |
|
25 |
<!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
|
26 |
<!--<buildnumber/>-->
|
27 |
|
28 |
</target>
|
29 |
|
30 |
|
31 |
<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 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
56 |
<jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}"/> |
57 |
</target>
|
58 |
|
59 |
<target name="copy-data-files"> |
60 |
<copy file="config/config.xml" todir="${dist}"/> |
61 |
<copy file="build.number" todir="${dist}"/> |
62 |
<copy file="config/about.htm" todir="${dist}"/> |
63 |
<loadproperties srcFile="build.number"/> |
64 |
<propertyfile file="package.info"> |
65 |
<entry key="build" value="${build.number}"/> |
66 |
<entry key="buildNumber" value="${build.number}"/> |
67 |
</propertyfile>
|
68 |
<copy file="package.info" todir="${dist}"/> |
69 |
<replace casesensitive="true" |
70 |
file="${dist}/about.htm" |
71 |
token="#build.number#" |
72 |
value="${build.number}"/> |
73 |
<copy todir="${dist}"> |
74 |
<fileset dir="config" includes="text*.properties"/> |
75 |
</copy>
|
76 |
<copy todir="${dist}/images"> |
77 |
<fileset dir="images/" includes="*"/> |
78 |
</copy>
|
79 |
<copy todir="${dist}/lib"> |
80 |
<fileset dir="${lib}" includes="**/**"/> |
81 |
</copy>
|
82 |
|
83 |
</target>
|
84 |
|
85 |
<target name="move-to-andami"> |
86 |
<move todir="${extension-dir}/${plugin}/"> |
87 |
<fileset dir="${dist}" includes="**/**"/> |
88 |
</move>
|
89 |
</target>
|
90 |
|
91 |
|
92 |
<target name="clean" |
93 |
description="clean up" > |
94 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
95 |
<delete dir="${dist}"/> |
96 |
<delete dir="${build}"/> |
97 |
</target>
|
98 |
|
99 |
<target name="buildNumber"> |
100 |
<propertyfile file="build.number" |
101 |
comment="Build Number for ANT. Do not edit!"> |
102 |
<entry key="build.number" default="0" type="int" operation="+" pattern="0" /> |
103 |
</propertyfile>
|
104 |
<property file="build.number" /> |
105 |
</target>
|
106 |
|
107 |
<target name="distribution" |
108 |
depends="buildNumber,generate-without-source"/> |
109 |
|
110 |
</project>
|
111 |
|
112 |
|