Revision 28837 branches/v2_0_0_prep/extensions/extHelp/build.xml
build.xml | ||
---|---|---|
1 |
<project name="Generar extension en Andami" default="generate-without-source" basedir=".">
|
|
2 |
<description>
|
|
3 |
Instala el plugin de de Ayuda de gvSIG en Andami.
|
|
1 |
<project name="Generar extension en Andami" default="help-documentation-zip" basedir=".">
|
|
2 |
<description>
|
|
3 |
Prepara el manual de usuario para el plugin de de Ayuda de gvSIG en Andami.
|
|
4 | 4 |
</description> |
5 |
<!-- set global properties for this build --> |
|
6 |
<property name="src" location="src"/> |
|
7 |
<property name="build" location="bin"/> |
|
8 |
<property name="dist" location="dist-temp"/> |
|
9 |
<property name="plugin" value="org.gvsig.help"/> |
|
10 |
<property name="extension-dir" location="../_fwAndami/gvSIG/extensiones"/> |
|
11 |
<property name="andami-dir" location="../_fwAndami"/> |
|
12 |
<property name="gvSIG_lib" value="${extension-dir}/com.iver.cit.gvsig/lib"/> |
|
13 |
<property name="mydist" location="dist"/> |
|
14 |
<import file="../binaries/ant/utilities.xml"/> |
|
5 |
<!-- set global properties for this build --> |
|
6 |
<property name="dist" location="dist-temp" /> |
|
7 |
<property name="plugin" value="org.gvsig.help" /> |
|
8 |
<property name="extension-dir" location="../build/product/gvSIG/extensiones" /> |
|
9 |
<property name="mydist" location="dist" /> |
|
10 |
<import file="../binaries/ant/utilities.xml" /> |
|
15 | 11 |
|
16 |
<target name="init"> |
|
17 |
<!-- Create the time stamp --> |
|
18 |
<tstamp/> |
|
19 |
<!-- Create the build directory structure used by compile --> |
|
20 |
<mkdir dir="${build}"/> |
|
21 |
<mkdir dir="${dist}"/> |
|
22 |
|
|
23 |
</target> |
|
24 |
|
|
25 |
<target name="batch-build" |
|
26 |
description="compile the sources, create the jar file" |
|
27 |
depends="init,compile,create-jar,copy-data-files,help-documentation-zip,move-to-andami"> |
|
12 |
<target name="init"> |
|
13 |
<!-- Create the time stamp --> |
|
14 |
<tstamp /> |
|
15 |
<!-- Create the build directory structure used by compile --> |
|
16 |
<mkdir dir="${dist}" /> |
|
28 | 17 |
</target> |
29 | 18 |
|
30 |
<target name="compile" description="compile the source" > |
|
31 |
<antcall target="gvSIG-import-build-number"/> |
|
32 |
<!-- Compile the Java code from ${src} to ${build} --> |
|
33 |
<mkdir dir="${build}" /> |
|
34 |
<loadEclipseClasspath project="${basedir}"/> |
|
35 |
<gvSIG-javac |
|
36 |
classpath="${eclipseClasspath}" |
|
37 |
/> |
|
38 |
</target> |
|
39 |
|
|
40 |
<target name="generate-without-source" |
|
41 |
description="generate the distribution without the source file" |
|
42 |
depends="init,create-jar,copy-data-files,help-documentation-zip,move-to-andami"> |
|
43 |
|
|
44 |
</target> |
|
45 |
|
|
46 |
<target name="create-jar" |
|
47 |
description="Creates the plugin jar"> |
|
48 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/> |
|
49 |
</target> |
|
50 |
|
|
51 |
<target name="copy-data-files"> |
|
52 |
<copy todir="${dist}"> |
|
53 |
<fileset dir="./dist" includes="gvSIG/*.zip"/> |
|
54 |
<fileset dir="./config" includes="**/**"/> |
|
55 |
</copy> |
|
56 |
<copy todir="${dist}/lib"> |
|
57 |
<fileset dir="./lib" includes="**/**"/> |
|
58 |
</copy> |
|
59 |
|
|
60 |
</target> |
|
61 |
|
|
62 | 19 |
<target name="help-documentation-zip"> |
63 | 20 |
|
64 |
<!--get src="http://"
|
|
21 |
<!--get src="http://" |
|
65 | 22 |
dest="${mydist}/gvSIG/manual-de-usuario.zip" |
66 | 23 |
/--> |
67 | 24 |
|
68 |
|
|
69 |
<unzip src="${mydist}/gvSIG/manual-de-usuario.zip" |
|
70 |
dest="${mydist}/gvSIG"> |
|
71 |
<patternset> |
|
72 |
<include name="manual-de-usuario/es/map.jhm"/> |
|
73 |
</patternset> |
|
25 |
<unzip src="${mydist}/gvSIG/manual-de-usuario.zip" dest="${mydist}/gvSIG"> |
|
26 |
<patternset> |
|
27 |
<include name="manual-de-usuario/es/map.jhm" /> |
|
28 |
</patternset> |
|
74 | 29 |
</unzip> |
75 | 30 |
|
76 |
<loadfile property="add_text" |
|
77 |
srcFile="${mydist}/gvSIG/map.jhm.add"/> |
|
78 |
<loadfile property="end_text" |
|
79 |
srcFile="${mydist}/gvSIG/end.add"/> |
|
31 |
<loadfile property="add_text" srcFile="${mydist}/gvSIG/map.jhm.add" /> |
|
32 |
<loadfile property="end_text" srcFile="${mydist}/gvSIG/end.add" /> |
|
80 | 33 |
|
81 |
<property name="total" value="${add_text}${end_text}"/> |
|
34 |
<property name="total" value="${add_text}${end_text}" />
|
|
82 | 35 |
|
83 | 36 |
<replace file="${mydist}/gvSIG/manual-de-usuario/es/map.jhm" value="${total}"> |
84 |
<replacetoken><![CDATA[</map>]]></replacetoken> |
|
37 |
<replacetoken> |
|
38 |
<![CDATA[</map>]]></replacetoken> |
|
85 | 39 |
</replace> |
86 | 40 |
|
87 |
<zip destfile="${dist}/gvSIG/manual-de-usuario.zip" |
|
88 |
basedir="${mydist}/gvSIG" |
|
89 |
includes="manual-de-usuario/**/**" |
|
90 |
excludes="**/*.db" |
|
91 |
update="true"/> |
|
41 |
<zip destfile="${dist}/gvSIG/manual-de-usuario.zip" basedir="${mydist}/gvSIG" includes="manual-de-usuario/**/**" excludes="**/*.db" update="true" /> |
|
92 | 42 |
</target> |
93 | 43 |
|
94 | 44 |
<target name="move-to-andami"> |
95 | 45 |
<move todir="${extension-dir}/${plugin}/"> |
96 |
<fileset dir="${dist}" includes="**/**"/> |
|
46 |
<fileset dir="${dist}" includes="**/**" />
|
|
97 | 47 |
</move> |
98 | 48 |
</target> |
99 | 49 |
|
100 | 50 |
<target name="clean"> |
101 |
<delete dir="${dist}" failonerror="no"/> |
|
102 |
<delete dir="${build}" failonerror="no"/> |
|
51 |
<delete dir="${dist}" failonerror="no" /> |
|
103 | 52 |
</target> |
104 | 53 |
|
105 |
</project> |
|
106 |
|
|
107 |
|
|
108 |
|
|
54 |
</project> |
Also available in: Unified diff