svn-gvsig-desktop / tags / v2_0_Build_1214 / extensions / extNormalization / build.xml @ 37283
History | View | Annotate | Download (2.72 KB)
1 | 22677 | jsanz | <project name="extGeocoding" default="generate-without-source" basedir="."> |
---|---|---|---|
2 | <description>
|
||
3 | Install the Normalization plugin |
||
4 | </description>
|
||
5 | |||
6 | <!-- set global properties for this build -->
|
||
7 | <property name="src" location="src" /> |
||
8 | <property name="src-test" location="src-test" /> |
||
9 | <property name="build-test" location="bin-test" /> |
||
10 | <property name="build" location="bin" /> |
||
11 | <property name="dist" location="dist" /> |
||
12 | <property name="plugin" value="org.gvsig.normalization" /> |
||
13 | <property name="extension-dir" location="../_fwAndami/gvSIG/extensiones" /> |
||
14 | <import file="../binaries/ant/utilities.xml" /> |
||
15 | |||
16 | <target name="init"> |
||
17 | <!-- Create the time stamp -->
|
||
18 | <tstamp /> |
||
19 | <echo>Compiling ${ant.project.name}...</echo> |
||
20 | <buildnumber /> |
||
21 | </target>
|
||
22 | |||
23 | <target name="generate-without-source" description="generate the distribution without the source file" > |
||
24 | |||
25 | <!-- Create the distribution directory -->
|
||
26 | <mkdir dir="${dist}" /> |
||
27 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
28 | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}" /> |
||
29 | <copy file="config/config.xml" todir="${dist}" /> |
||
30 | <copy todir="${dist}"> |
||
31 | <fileset dir="config" includes="text*.properties" /> |
||
32 | <fileset dir="lib" includes="**/**" /> |
||
33 | </copy>
|
||
34 | <copy todir="${dist}/images"> |
||
35 | <fileset dir="images/" includes="*" /> |
||
36 | </copy>
|
||
37 | <move todir="${extension-dir}/${plugin}/"> |
||
38 | <fileset dir="${dist}" includes="**/**" /> |
||
39 | </move>
|
||
40 | </target>
|
||
41 | |||
42 | |||
43 | <target name="compile" description="compile the source"> |
||
44 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
45 | <!-- <antcall target="gvSIG-import-build-number"/> -->
|
||
46 | <mkdir dir="${build}" /> |
||
47 | <loadEclipseClasspath project="${basedir}" /> |
||
48 | <gvSIG-javac classpath="${eclipseClasspath}" /> |
||
49 | </target>
|
||
50 | |||
51 | <target name="create-jar" description="Creates the plugin jar"> |
||
52 | <mkdir dir="${dist}" /> |
||
53 | <jar jarfile="${dist}/${jarName}" basedir="${build}" /> |
||
54 | </target>
|
||
55 | |||
56 | <target name="copy-data-files"> |
||
57 | <copy file="config/config.xml" todir="${dist}" /> |
||
58 | <copy file="build.number" todir="${dist}" /> |
||
59 | <copy todir="${dist}"> |
||
60 | <fileset dir="config" includes="text*.properties" /> |
||
61 | </copy>
|
||
62 | <copy todir="${dist}/images"> |
||
63 | <fileset dir="images/" includes="*" /> |
||
64 | </copy>
|
||
65 | </target>
|
||
66 | |||
67 | <target name="move-to-installDir"> |
||
68 | <move todir="${installDir}"> |
||
69 | <fileset dir="${dist}" includes="**/**" /> |
||
70 | </move>
|
||
71 | </target>
|
||
72 | |||
73 | <target name="batch-build" description="compile the sources, create the jar file" depends="init,compile,create-jar,copy-data-files,move-to-installDir"> |
||
74 | </target>
|
||
75 | |||
76 | <target name="install" description="compile the sources, create the jar file" depends="init,create-jar,copy-data-files,move-to-installDir"> |
||
77 | </target>
|
||
78 | |||
79 | |||
80 | </project> |