svn-gvsig-desktop / branches / v2_0_0_prep / extensions / extHelp / build.xml @ 34821
History | View | Annotate | Download (1.76 KB)
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 |
</description>
|
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" /> |
11 |
|
12 |
<target name="init"> |
13 |
<!-- Create the time stamp -->
|
14 |
<tstamp /> |
15 |
<!-- Create the build directory structure used by compile -->
|
16 |
<mkdir dir="${dist}" /> |
17 |
</target>
|
18 |
|
19 |
<target name="help-documentation-zip"> |
20 |
|
21 |
<!--get src="http://"
|
22 |
dest="${mydist}/gvSIG/manual-de-usuario.zip"
|
23 |
/-->
|
24 |
|
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>
|
29 |
</unzip>
|
30 |
|
31 |
<loadfile property="add_text" srcFile="${mydist}/gvSIG/map.jhm.add" /> |
32 |
<loadfile property="end_text" srcFile="${mydist}/gvSIG/end.add" /> |
33 |
|
34 |
<property name="total" value="${add_text}${end_text}" /> |
35 |
|
36 |
<replace file="${mydist}/gvSIG/manual-de-usuario/es/map.jhm" value="${total}"> |
37 |
<replacetoken>
|
38 |
<![CDATA[</map>]]></replacetoken> |
39 |
</replace>
|
40 |
|
41 |
<zip destfile="${dist}/gvSIG/manual-de-usuario.zip" basedir="${mydist}/gvSIG" includes="manual-de-usuario/**/**" excludes="**/*.db" update="true" /> |
42 |
</target>
|
43 |
|
44 |
<target name="move-to-andami"> |
45 |
<move todir="${extension-dir}/${plugin}/"> |
46 |
<fileset dir="${dist}" includes="**/**" /> |
47 |
</move>
|
48 |
</target>
|
49 |
|
50 |
<target name="clean"> |
51 |
<delete dir="${dist}" failonerror="no" /> |
52 |
</target>
|
53 |
|
54 |
</project>
|