svn-gvsig-desktop / tags / v1_9_Build_1235 / extensions / extTableSummarize / build.xml @ 42847
History | View | Annotate | Download (4.37 KB)
1 |
<project name="extTableSummarize" default="generate-without-source" basedir="."> |
---|---|
2 |
<description>
|
3 |
Instala el plugin de DBF Table Summarize en Andami. |
4 |
</description>
|
5 |
<!-- set global properties for this build -->
|
6 |
<property name="src" location="src"/> |
7 |
<property name="without_src" location="without_src"/> |
8 |
<property name="src-test" location="src-test"/> |
9 |
<property name="build" location="bin"/> |
10 |
<property name="build-test" location="bin-test"/> |
11 |
<property name="dist" location="dist"/> |
12 |
<property name="lib" location="lib"/> |
13 |
<property name="plugin" value="org.gvsig.tableSummarize"/> |
14 |
<property name="extension-dir" location="../_fwAndami/gvSIG/extensiones"/> |
15 |
<property name="gvSIGlib-dir" value="${extension-dir}/com.iver.cit.gvsig/lib"/> |
16 |
<property name="andami-dir" location="../_fwAndami"/> |
17 |
|
18 |
<import file="../binaries/ant/utilities.xml"/> |
19 |
|
20 |
<target name="init"> |
21 |
<!-- Create the time stamp -->
|
22 |
<tstamp/> |
23 |
<echo>
|
24 |
Compiling ${ant.project.name}...</echo>
|
25 |
<!-- Create the build directory structure used by compile -->
|
26 |
<mkdir dir="${build}"/> |
27 |
<mkdir dir="${dist}"/> |
28 |
</target>
|
29 |
|
30 |
<target name="buildNumber"> |
31 |
<propertyfile file="build.number" |
32 |
comment="Build Number for ANT. Do not edit!"> |
33 |
<entry key="build.number" default="0" type="int" operation="+" /> |
34 |
</propertyfile>
|
35 |
<property file="build.number" /> |
36 |
</target>
|
37 |
|
38 |
<target name="distribution" depends="buildNumber, copy-data-files, generate-without-source"> |
39 |
</target>
|
40 |
|
41 |
<target name="compile" |
42 |
description="compile the source" > |
43 |
<!-- Compile the Java code from ${src} to ${bin} -->
|
44 |
<antcall target="gvSIG-import-build-number"/> |
45 |
<loadEclipseClasspath project="${basedir}"/> |
46 |
<gvSIG-javac
|
47 |
classpath="${eclipseClasspath}" |
48 |
/>
|
49 |
<!--<javac srcdir="${src}"
|
50 |
destdir="${build}"
|
51 |
source="${JavaSourceVersion}"
|
52 |
target="${JavaTargetVersion}"
|
53 |
debug="${debug}"
|
54 |
debuglevel="${debuglevel}"
|
55 |
encoding="${encoding}"
|
56 |
classpath="${extension-dir}/com.iver.cit.gvsig/lib/fmap.jar:${extension-dir}/com.iver.cit.gvsig/lib/com.iver.cit.gvsig.jar:../FMap/lib/cms.jar:../Andami/lib/iver-utiles.jar:../FMap/lib/gdbms-0.8-SNAPSHOT.jar:../Andami/andami.jar"/>
|
57 |
-->
|
58 |
</target>
|
59 |
|
60 |
<target name="generate-without-source" description="generate the distribution without the source file" > |
61 |
<!-- Create the distribution directory -->
|
62 |
<mkdir dir="${dist}"/> |
63 |
|
64 |
<loadproperties srcFile="build.number"/> |
65 |
|
66 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
67 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/> |
68 |
|
69 |
<copy file="config/config.xml" todir="${dist}"/> |
70 |
<copy file="build.number" todir="${dist}"/> |
71 |
|
72 |
<copy todir="${dist}/images"> |
73 |
<fileset dir="images/" includes="*"/> |
74 |
</copy>
|
75 |
<copy todir="${dist}"> |
76 |
<fileset dir="config" includes="text*.properties"/> |
77 |
</copy>
|
78 |
<move todir="${extension-dir}/${plugin}/"> |
79 |
<fileset dir="${dist}" includes="**/**"/> |
80 |
</move>
|
81 |
|
82 |
<!--mkdir dir="${extension-dir}/${plugin}/data"/>
|
83 |
<copy todir="${extension-dir}/${plugin}/data">
|
84 |
<fileset dir="data" includes="**/**"/>
|
85 |
</copy-->
|
86 |
<copy todir="${extension-dir}/${plugin}/"> |
87 |
<fileset dir="${lib}" includes="**/*.jar"/> |
88 |
</copy>
|
89 |
|
90 |
</target>
|
91 |
|
92 |
<target name="copy-data-files"> |
93 |
<copy file="config/config.xml" todir="${without_src}"/> |
94 |
<copy file="build.number" todir="${without_src}"/> |
95 |
<copy file="config/about.htm" todir="${without_src}"/> |
96 |
<loadproperties srcFile="build.number"/> |
97 |
<replace casesensitive="true" |
98 |
file="${without_src}/about.htm" |
99 |
token="#build.number#" |
100 |
value="${build.number}"/> |
101 |
<copy todir="${without_src}"> |
102 |
<fileset dir="config" includes="text*.properties"/> |
103 |
</copy>
|
104 |
<copy todir="${without_src}/images"> |
105 |
<fileset dir="images/" includes="*"/> |
106 |
</copy>
|
107 |
</target>
|
108 |
|
109 |
<target name="batch-build" |
110 |
description="compile the sources, create the jar file" |
111 |
depends="init,compile,generate-without-source"> |
112 |
</target>
|
113 |
|
114 |
<target name="clean" |
115 |
description="cleans the build directories"> |
116 |
<delete dir="${build}"/> |
117 |
<delete dir="${dist}"/> |
118 |
</target>
|
119 |
|
120 |
<!--target name="run-tests" depends="batch-build,compile-tests">
|
121 |
<antcall target="generic-run-tests">
|
122 |
<param name="TestSuite.Name" value="org.gvsig.crs.AllTests"/>
|
123 |
</antcall>
|
124 |
</target-->
|
125 |
</project>
|
126 |
|
127 |
|