svn-gvsig-desktop / trunk / extensions / org.gvsig.installer.app.extension / build.xml @ 34540
History | View | Annotate | Download (2.76 KB)
1 |
<project name="Generar extension en Andami" default="generate-without-source" basedir="."> |
---|---|
2 |
<description>
|
3 |
Instala el plugin de instalaciĆ³n de gvSIG en Andami. |
4 |
</description>
|
5 |
<!-- set global properties for this build -->
|
6 |
<property name="src" location="src"/> |
7 |
<property name="build" location="target/classes"/> |
8 |
<property name="dist" location="dist-temp"/> |
9 |
<property name="plugin" value="org.gvsig.installer.app.extension"/> |
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}/lib"/> |
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}/lib/${plugin}.jar" basedir="${build}"/> |
50 |
</target>
|
51 |
|
52 |
<target name="copy-data-files" |
53 |
depends="make-package-info"> |
54 |
<copy todir="${dist}"> |
55 |
<fileset dir="./src/main/resources/config" includes="**/**"/> |
56 |
<fileset dir="./src/main/resources/locale" includes="**/**"/> |
57 |
</copy>
|
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 |
<target name="make-package-info"> |
77 |
<echo file="src/main/resources/config/package.info"> |
78 |
state=devel |
79 |
name=${plugin} |
80 |
official=true |
81 |
code=${plugin} |
82 |
operating-system=all |
83 |
architecture=all |
84 |
java-version=j1_5 |
85 |
gvSIG-version=1.11 |
86 |
version=1.0.0 |
87 |
type=plugin |
88 |
build=1 |
89 |
description= |
90 |
model-version=1.0.0 |
91 |
</echo>
|
92 |
</target>
|
93 |
</project>
|