svn-gvsig-desktop / tags / tmp_build / extensions / extTableSummarize / build.xml @ 40339
History | View | Annotate | Download (4.44 KB)
1 | 27644 | cmartinez | <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 | 34510 | fdiaz | <target name="generate-without-source" description="generate the distribution without the source file" depends="make-package-info"> |
61 | 27644 | cmartinez | <!-- 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 | 34510 | fdiaz | <copy file="package.info" todir="${dist}"/> |
72 | 27644 | cmartinez | |
73 | <copy todir="${dist}/images"> |
||
74 | <fileset dir="images/" includes="*"/> |
||
75 | </copy>
|
||
76 | <copy todir="${dist}"> |
||
77 | <fileset dir="config" includes="text*.properties"/> |
||
78 | </copy>
|
||
79 | <move todir="${extension-dir}/${plugin}/"> |
||
80 | <fileset dir="${dist}" includes="**/**"/> |
||
81 | </move>
|
||
82 | |||
83 | <!--mkdir dir="${extension-dir}/${plugin}/data"/>
|
||
84 | <copy todir="${extension-dir}/${plugin}/data">
|
||
85 | <fileset dir="data" includes="**/**"/>
|
||
86 | </copy-->
|
||
87 | 27771 | cmartinez | <copy todir="${extension-dir}/${plugin}/"> |
88 | <fileset dir="${lib}" includes="**/*.jar"/> |
||
89 | 27644 | cmartinez | </copy>
|
90 | |||
91 | </target>
|
||
92 | |||
93 | <target name="copy-data-files"> |
||
94 | <copy file="config/config.xml" todir="${without_src}"/> |
||
95 | <copy file="build.number" todir="${without_src}"/> |
||
96 | <copy file="config/about.htm" todir="${without_src}"/> |
||
97 | <loadproperties srcFile="build.number"/> |
||
98 | <replace casesensitive="true" |
||
99 | file="${without_src}/about.htm" |
||
100 | token="#build.number#" |
||
101 | value="${build.number}"/> |
||
102 | <copy todir="${without_src}"> |
||
103 | <fileset dir="config" includes="text*.properties"/> |
||
104 | </copy>
|
||
105 | <copy todir="${without_src}/images"> |
||
106 | <fileset dir="images/" includes="*"/> |
||
107 | </copy>
|
||
108 | </target>
|
||
109 | |||
110 | <target name="batch-build" |
||
111 | description="compile the sources, create the jar file" |
||
112 | depends="init,compile,generate-without-source"> |
||
113 | </target>
|
||
114 | |||
115 | <target name="clean" |
||
116 | description="cleans the build directories"> |
||
117 | <delete dir="${build}"/> |
||
118 | <delete dir="${dist}"/> |
||
119 | </target>
|
||
120 | |||
121 | <!--target name="run-tests" depends="batch-build,compile-tests">
|
||
122 | <antcall target="generic-run-tests">
|
||
123 | <param name="TestSuite.Name" value="org.gvsig.crs.AllTests"/>
|
||
124 | </antcall>
|
||
125 | </target-->
|
||
126 | </project>
|
||
127 |