svn-gvsig-desktop / tags / v1_9_Build_1228 / extensions / extNormalization / build.xml @ 31236
History | View | Annotate | Download (4.37 KB)
1 | 26217 | vsanjaime | <project name="extNormalization" default="move-andami" basedir="."> |
---|---|---|---|
2 | 22677 | jsanz | <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 | 26217 | vsanjaime | <property name="lib" value="lib" /> |
13 | 22677 | jsanz | <property name="plugin" value="org.gvsig.normalization" /> |
14 | <property name="extension-dir" location="../_fwAndami/gvSIG/extensiones" /> |
||
15 | <import file="../binaries/ant/utilities.xml" /> |
||
16 | |||
17 | |||
18 | 26217 | vsanjaime | <!-- =================================
|
19 | target: distribution
|
||
20 | ================================= -->
|
||
21 | <target name="create-dist" depends="clean-dist" description="generate the distribution without the source file"> |
||
22 | 22677 | jsanz | |
23 | 26217 | vsanjaime | <echo>Creating extension JAR and others folders</echo> |
24 | <jar jarfile="${dist}/${plugin}/${lib}/${plugin}.jar" basedir="${build}" /> |
||
25 | <copy file="config/config.xml" todir="${dist}/${plugin}/" /> |
||
26 | |||
27 | <copy todir="${dist}/${plugin}/"> |
||
28 | 22677 | jsanz | <fileset dir="config" includes="text*.properties" /> |
29 | </copy>
|
||
30 | 26217 | vsanjaime | |
31 | <copy todir="${dist}/${plugin}/${lib}"> |
||
32 | <fileset dir="${lib}" includes="**/**" /> |
||
33 | 22677 | jsanz | </copy>
|
34 | 26217 | vsanjaime | <copy todir="${dist}/${plugin}/images"> |
35 | <fileset dir="images/" includes="**/**" /> |
||
36 | 26212 | vsanjaime | </copy>
|
37 | 26217 | vsanjaime | <copy todir="${dist}/${plugin}/about"> |
38 | <fileset dir="about/" includes="**/**" /> |
||
39 | </copy>
|
||
40 | <echo>Created dist ended</echo> |
||
41 | 22677 | jsanz | </target>
|
42 | |||
43 | 26217 | vsanjaime | <!-- =================================
|
44 | target: distribution
|
||
45 | ================================= -->
|
||
46 | <target name="create-dist-bn" depends="build-number,create-dist" description="generate the distribution without the source file with BN"> |
||
47 | <echo>Changing de Build Number</echo> |
||
48 | 22677 | jsanz | |
49 | 26217 | vsanjaime | <delete dir="${dist}/${plugin}/about" /> |
50 | <mkdir dir="${dist}/${plugin}/about" /> |
||
51 | |||
52 | <mkdir dir="${dist}/tmp" /> |
||
53 | 22677 | jsanz | |
54 | 26217 | vsanjaime | <copy todir="${dist}/tmp"> |
55 | <fileset dir="about" includes="**" /> |
||
56 | </copy>
|
||
57 | 22677 | jsanz | |
58 | 26217 | vsanjaime | <loadproperties srcFile="build.number" /> |
59 | <replace casesensitive="true" file="${dist}/tmp/normabout.htm" token="#build.number#" value="${build.number}" /> |
||
60 | |||
61 | <copy todir="${dist}/${plugin}/about"> |
||
62 | <fileset dir="${dist}/tmp" includes="**" /> |
||
63 | 22677 | jsanz | </copy>
|
64 | 26217 | vsanjaime | |
65 | <copy file="build.number" todir="${dist}/${plugin}" /> |
||
66 | |||
67 | <delete dir="${dist}/tmp" /> |
||
68 | |||
69 | 22677 | jsanz | </target>
|
70 | |||
71 | 26217 | vsanjaime | <!-- =================================
|
72 | target: move andami
|
||
73 | ================================= -->
|
||
74 | <target name="move-andami" depends="create-dist" description="Move andami the extension"> |
||
75 | <echo>copy to Andami</echo> |
||
76 | <copy todir="${extension-dir}/"> |
||
77 | 22677 | jsanz | <fileset dir="${dist}" includes="**/**" /> |
78 | 26217 | vsanjaime | </copy>
|
79 | 22677 | jsanz | </target>
|
80 | |||
81 | 26217 | vsanjaime | <!-- =================================
|
82 | target: change build number
|
||
83 | ================================= -->
|
||
84 | <target name="build-number" description="up build number"> |
||
85 | <propertyfile file="build.number" comment="Build number for ANT. Do not edit!"> |
||
86 | <entry key="build.number" default="0" type="int" operation="+" /> |
||
87 | </propertyfile>
|
||
88 | <property file="build.number" /> |
||
89 | 22677 | jsanz | </target>
|
90 | |||
91 | 26217 | vsanjaime | <!-- =================================
|
92 | target: delete dist folder
|
||
93 | ================================= -->
|
||
94 | <target name="clean" description="clean up"> |
||
95 | <echo>Delete dist folder</echo> |
||
96 | <delete dir="${dist}" /> |
||
97 | 22677 | jsanz | </target>
|
98 | |||
99 | 26217 | vsanjaime | <!-- =================================
|
100 | target: make the dist folder
|
||
101 | ================================= -->
|
||
102 | <target name="clean-dist" depends="clean" description="Cleans the dist folder and prepares it to receive the extension files"> |
||
103 | <echo>Creating dist folder</echo> |
||
104 | <mkdir dir="${dist}" /> |
||
105 | <mkdir dir="${dist}/${plugin}" /> |
||
106 | <mkdir dir="${dist}/${plugin}/images" /> |
||
107 | <mkdir dir="${dist}/${plugin}/lib" /> |
||
108 | <mkdir dir="${dist}/${plugin}/about" /> |
||
109 | </target>
|
||
110 | 22677 | jsanz | |
111 | 26217 | vsanjaime | <!-- =================================
|
112 | target: generate installer
|
||
113 | ================================= -->
|
||
114 | <target name="generate-installer" depends="create-dist-bn" description="generate the extension installer for win, linux and mac"> |
||
115 | <ant antfile="install/buildExt.xml" target="init"> |
||
116 | <property name="basedir" location="install" /> |
||
117 | </ant>
|
||
118 | </target>
|
||
119 | |||
120 | |||
121 | 22677 | jsanz | </project> |