svn-gvsig-desktop / trunk / examples / exaLoadLayer / build.xml @ 39077
History | View | Annotate | Download (1.76 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="org.gvsig.example"/> |
11 |
<property name="gvsiglibjar" value="example-postgis"/> |
12 |
<property name="extensionDir" location="../_fwAndami/gvSIG/extensiones"/> |
13 |
|
14 |
<target name="init"> |
15 |
<!-- Create the time stamp -->
|
16 |
<tstamp/> |
17 |
<!-- Create the build directory structure used by compile -->
|
18 |
<mkdir dir="${build}"/> |
19 |
<mkdir dir="${dist}"/> |
20 |
|
21 |
</target>
|
22 |
|
23 |
<target name="generate-without-source" |
24 |
description="generate the distribution without the source file"> |
25 |
<!-- Create the distribution directory -->
|
26 |
<mkdir dir="${dist}"/> |
27 |
|
28 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
29 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}" includes="org/gvsig/example/**"/> |
30 |
<copy file="config/config.xml" todir="${dist}"/> |
31 |
<copy todir="${dist}"> |
32 |
<fileset dir="." includes="text*.properties"/> |
33 |
</copy>
|
34 |
<!-- <copy todir="${dist}/images">
|
35 |
<fileset dir="images/" includes="*"/>
|
36 |
</copy> -->
|
37 |
<move todir="${extensionDir}/${mainplugin}/lib"> |
38 |
<fileset dir="${dist}" includes="${gvsiglibjar}.jar"/> |
39 |
</move>
|
40 |
<move todir="${extensionDir}/${plugin}/"> |
41 |
<fileset dir="${dist}" includes="**/**"/> |
42 |
</move>
|
43 |
</target>
|
44 |
|
45 |
<target name="clean" |
46 |
description="clean up" > |
47 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
48 |
<delete dir="${dist}"/> |
49 |
</target>
|
50 |
</project>
|
51 |
|