root / trunk / extensions / extHelp / build.xml @ 34510
History | View | Annotate | Download (2.41 KB)
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. |
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"/> |
15 |
|
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 |
<mkdir dir="${dist}/manuals"/> |
23 |
|
24 |
</target>
|
25 |
|
26 |
<target name="batch-build" |
27 |
description="compile the sources, create the jar file" |
28 |
depends="init,compile,create-jar,copy-data-files,move-to-andami"> |
29 |
</target>
|
30 |
|
31 |
<target name="compile" description="compile the source" > |
32 |
<antcall target="gvSIG-import-build-number"/> |
33 |
<!-- Compile the Java code from ${src} to ${build} -->
|
34 |
<mkdir dir="${build}" /> |
35 |
<loadEclipseClasspath project="${basedir}"/> |
36 |
<gvSIG-javac
|
37 |
classpath="${eclipseClasspath}" |
38 |
/>
|
39 |
</target>
|
40 |
|
41 |
<target name="generate-without-source" |
42 |
description="generate the distribution without the source file" |
43 |
depends="init,create-jar,copy-data-files,move-to-andami"> |
44 |
|
45 |
</target>
|
46 |
|
47 |
<target name="create-jar" |
48 |
description="Creates the plugin jar"> |
49 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/> |
50 |
</target>
|
51 |
|
52 |
<target name="copy-data-files" depends="make-package-info"> |
53 |
<copy todir="${dist}"> |
54 |
<fileset dir="./dist" includes="gvSIG/*.zip"/> |
55 |
<fileset dir="./config" includes="**/**"/> |
56 |
</copy>
|
57 |
<copy file="package.info" todir="${dist}"/> |
58 |
<copy todir="${dist}/lib"> |
59 |
<fileset dir="./lib" includes="**/**"/> |
60 |
</copy>
|
61 |
|
62 |
</target>
|
63 |
|
64 |
|
65 |
<target name="move-to-andami"> |
66 |
<move todir="${extension-dir}/${plugin}/"> |
67 |
<fileset dir="${dist}" includes="**/**"/> |
68 |
</move>
|
69 |
</target>
|
70 |
|
71 |
<target name="clean"> |
72 |
<delete dir="${dist}" failonerror="no"/> |
73 |
<delete dir="${build}" failonerror="no"/> |
74 |
</target>
|
75 |
|
76 |
</project>
|
77 |
|
78 |
|
79 |
|