svn-gvsig-desktop / tags / CalculadoraCampos_Build_2 / extensions / extExpressionField / build.xml @ 26479
History | View | Annotate | Download (3.54 KB)
1 | 10229 | caballero | <project name="Generar extension en Andami" default="generate-without-source" basedir="."> |
---|---|---|---|
2 | <description>
|
||
3 | Instala el plugin de Centrar la Vista sobre un punto en Andami. |
||
4 | </description>
|
||
5 | <!-- set global properties for this build -->
|
||
6 | <property name="src" location="src"/> |
||
7 | <property name="bin" location="bin"/> |
||
8 | <property name="doc" location="doc"/> |
||
9 | <property name="dist" location="dist"/> |
||
10 | 11531 | jmvivo | <property name="dist-src-name" value="dist-src"/> |
11 | <property name="dist-src" location="${dist-src-name}"/> |
||
12 | 10229 | caballero | <property name="without_src" location="without_src"/> |
13 | <property name="plugin" value="com.iver.gvsig.expresionfield"/> |
||
14 | <property name="mainplugin" value="com.iver.cit.gvsig"/> |
||
15 | <property name="extensionDir" location="../_fwAndami/gvSIG/extensiones"/> |
||
16 | 11531 | jmvivo | <property name="readMe.files" value="Leeme-ExpresionField.txt, Readme-ExpresionField.txt"/> |
17 | 10229 | caballero | |
18 | <property name="build" location="bin"/> |
||
19 | <target name="init"> |
||
20 | <!-- Create the time stamp -->
|
||
21 | <tstamp/> |
||
22 | </target>
|
||
23 | 11531 | jmvivo | |
24 | |||
25 | <target name="generate-source-package"> |
||
26 | <delete dir="${dist-src}" quiet="yes"/> |
||
27 | <mkdir dir="${dist-src}"/> |
||
28 | <basename file="${basedir}" property="extensionProjectDir"/> |
||
29 | <mkdir dir="${dist-src}/${extensionProjectDir}"/> |
||
30 | <copy todir="${dist-src}/${extensionProjectDir}"> |
||
31 | <fileset dir="${basedir}"/> |
||
32 | </copy>
|
||
33 | <copy todir="${dist-src}"> |
||
34 | <fileset dir="${basedir}/install/resources" includes="${readMe.files}"/> |
||
35 | </copy>
|
||
36 | <delete dir="${dist-src}/${extensionProjectDir}/bin"/> |
||
37 | <mkdir dir="${dist-src}/${extensionProjectDir}/bin"/> |
||
38 | <delete dir="${dist-src}/${extensionProjectDir}/install"/> |
||
39 | <delete dir="${dist-src}/${extensionProjectDir}/dist" quiet="yes"/> |
||
40 | <delete dir="${dist-src}/${extensionProjectDir}/dist-src" quiet="yes"/> |
||
41 | <loadproperties srcFile="build.number"/> |
||
42 | <replace casesensitive="true" |
||
43 | token="#build.number#" |
||
44 | value="${build.number}" |
||
45 | dir="${dist-src}" |
||
46 | includes="${readMe.files}"/> |
||
47 | <zip destfile="${dist-src}/gvsig_expresionfield-01_${build.number}-src.zip" |
||
48 | basedir="${dist-src-name}" |
||
49 | excludes="*.zip" |
||
50 | />
|
||
51 | |||
52 | </target>
|
||
53 | |||
54 | |||
55 | |||
56 | |||
57 | 10335 | caballero | <target name="buildNumber"> |
58 | <propertyfile
|
||
59 | file="build.number" |
||
60 | comment="Build Number for ANT. Do not edit!"> |
||
61 | <entry key="build.number" default="0" type="int" operation="+"/> |
||
62 | </propertyfile>
|
||
63 | <property file="build.number"/> |
||
64 | </target>
|
||
65 | <target name="distribution" |
||
66 | description="increment build number and generate the distribution without the source file" |
||
67 | depends="buildNumber,generate-without-source"> |
||
68 | </target>
|
||
69 | 10229 | caballero | <target name="generate-without-source" description="generate the distribution without the source file" > |
70 | <!-- Create the distribution directory -->
|
||
71 | <mkdir dir="${without_src}"/> |
||
72 | |||
73 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
74 | <jar jarfile="${without_src}/${plugin}.jar" basedir="${bin}"/> |
||
75 | <copy file="config/config.xml" todir="${without_src}"/> |
||
76 | 10335 | caballero | <copy file="build.number" todir="${without_src}"/> |
77 | <copy file="config/about.htm" todir="${without_src}"/> |
||
78 | <loadproperties srcFile="build.number"/> |
||
79 | <replace casesensitive="true" |
||
80 | file="${without_src}/about.htm" |
||
81 | token="#build.number#" |
||
82 | value="${build.number}"/> |
||
83 | <copy todir="${without_src}"> |
||
84 | 10229 | caballero | <fileset dir="config" includes="text*.properties"/> |
85 | </copy>
|
||
86 | <copy todir="${without_src}/images"> |
||
87 | <fileset dir="images/" includes="*"/> |
||
88 | </copy>
|
||
89 | <move todir="${extensionDir}/${plugin}/"> |
||
90 | <fileset dir="${without_src}" includes="**/**"/> |
||
91 | </move>
|
||
92 | </target>
|
||
93 | |||
94 | </project>
|