svn-gvsig-desktop / tags / v2_0_0_Build_2001 / extensions / extGridViewLayout / build.xml @ 44465
History | View | Annotate | Download (3.5 KB)
1 |
<project name="Generar extension en Andami" default="generate-without-source" basedir="."> |
---|---|
2 |
<description>
|
3 |
Instala el plugin 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"/> |
9 |
<property name="mainplugin" value="com.iver.cit.gvsig"/> |
10 |
<property name="plugin" value="com.iver.cit.gvsig.gridlayout"/> |
11 |
<property name="gvsiglibjar" value="gvsig-grid"/> |
12 |
<property name="andami" location="../_fwAndami" /> |
13 |
<property name="extensionsDir" location="../_fwAndami/gvSIG/extensiones"/> |
14 |
<property name="drivers-dir" location="${extensionsDir}/${mainplugin}/drivers" /> |
15 |
<property name="lib-dir" location="${extensionsDir}/${mainplugin}/lib"/> |
16 |
<property name="andamiLibs" location="${andami}/lib" /> |
17 |
<property name="andamiJar" location="${andami}/andami.jar"/> |
18 |
<property name="gvsigJar" location="${extensionsDir}/${mainplugin}/lib/${mainplugin}.jar"/> |
19 |
|
20 |
<target name="init"> |
21 |
<!-- Create the time stamp -->
|
22 |
<tstamp/> |
23 |
<!-- Create the build directory structure used by compile -->
|
24 |
<mkdir dir="${build}"/> |
25 |
<mkdir dir="${dist}"/> |
26 |
|
27 |
</target>
|
28 |
|
29 |
<target name="generate-without-source" |
30 |
description="generate the distribution without the source file"> |
31 |
<!-- Create the distribution directory -->
|
32 |
<mkdir dir="${dist}"/> |
33 |
|
34 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
35 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**" |
36 |
excludes="com/iver/cit/gvsig/fmap/**"/> |
37 |
<copy file="config/config.xml" todir="${dist}"/> |
38 |
<copy todir="${dist}"> |
39 |
<fileset dir="config" includes="text*.properties"/> |
40 |
</copy>
|
41 |
<copy todir="${dist}/images"> |
42 |
<fileset dir="images/" includes="*"/> |
43 |
</copy>
|
44 |
<!--copy todir="${lib-dir}">
|
45 |
<fileset dir="./lib" includes="*.jar,*.zip"/>
|
46 |
<fileset dir="." includes=".keystore"/>
|
47 |
</copy-->
|
48 |
<move todir="${extensionsDir}/${mainplugin}/lib"> |
49 |
<fileset dir="${dist}" includes="${gvsiglibjar}.jar"/> |
50 |
</move>
|
51 |
<move todir="${extensionsDir}/${plugin}/"> |
52 |
<fileset dir="${dist}" includes="**/**"/> |
53 |
</move>
|
54 |
</target>
|
55 |
|
56 |
|
57 |
<target name="batch-build" |
58 |
description="compile the sources, create the jar file" |
59 |
depends="compile,create-jar,copy-data-files"> |
60 |
</target>
|
61 |
|
62 |
<target name="compile" description="compile the source" > |
63 |
<!-- Compile the Java code from ${src} to ${build} -->
|
64 |
<mkdir dir="${build}" /> |
65 |
<echo>${compile-classpath}</echo> |
66 |
<javac srcdir="${src}" |
67 |
destdir="${build}" |
68 |
source="1.4" |
69 |
target="1.4" |
70 |
debug="${debug}" |
71 |
debuglevel="${debuglevel}" |
72 |
classpath="${compile-classpath}"/> |
73 |
</target>
|
74 |
|
75 |
<target name="create-jar" |
76 |
description="Creates the plugin jar"> |
77 |
<mkdir dir="${dist}/lib"/> |
78 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**" |
79 |
excludes="com/iver/cit/gvsig/fmap/**" |
80 |
/>
|
81 |
<jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
82 |
includes="com/iver/cit/gvsig/fmap/**" /> |
83 |
</target>
|
84 |
|
85 |
<target name="copy-data-files"> |
86 |
<copy file="config/config.xml" todir="${dist}"/> |
87 |
<copy todir="${dist}"> |
88 |
<fileset dir="config" includes="text*.properties"/> |
89 |
</copy>
|
90 |
<copy todir="${dist}/images"> |
91 |
<fileset dir="images/" includes="*"/> |
92 |
</copy>
|
93 |
</target>
|
94 |
|
95 |
|
96 |
<target name="clean" |
97 |
description="clean up" > |
98 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
99 |
<delete dir="${dist}"/> |
100 |
<delete dir="${build}"/> |
101 |
</target>
|
102 |
</project>
|
103 |
|