svn-gvsig-desktop / tags / v2_0_0_prep_before_2001 / extensions / extPublish / build.xml @ 47056
History | View | Annotate | Download (3.6 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.publish"/> |
11 |
<property name="gvsiglibjar" value="gvsig-confwms"/> |
12 |
<property name="fmapjar" value="fmap-wms"/> |
13 |
<property name="driverjar" value="confwms"/> |
14 |
<!--<property name="remoteclientjar" value="../libFMap/lib/remote-clients.jar"/>-->
|
15 |
<property name="extensionDir" location="../_fwAndami/gvSIG/extensiones"/> |
16 |
<property name="drivers-dir" location="${extensionDir}/${mainplugin}/drivers" /> |
17 |
<property name="lib-dir" location="${extensionDir}/${mainplugin}/lib"/> |
18 |
<property name="fmap" location="../libFMap"/> |
19 |
<property name="andami" location="../_fwAndami"/> |
20 |
|
21 |
<target name="init"> |
22 |
<!-- Create the time stamp -->
|
23 |
<tstamp/> |
24 |
<!-- Create the build directory structure used by compile -->
|
25 |
<mkdir dir="${build}"/> |
26 |
<mkdir dir="${dist}"/> |
27 |
|
28 |
</target>
|
29 |
|
30 |
<target name="batch-build" |
31 |
description="compile the sources, create the jar file" |
32 |
depends="compile,generate-without-source"> |
33 |
</target>
|
34 |
|
35 |
<target name="compile" |
36 |
description="compile the source" > |
37 |
<!-- Compile the Java code from ${src} to ${bin} -->
|
38 |
<mkdir dir="${build}" /> |
39 |
<javac srcdir="${src}" |
40 |
destdir="${build}" |
41 |
classpath="${andami}/lib/log4j-1.2.8.jar:${andami}/andami.jar:${andami}/lib/beans.jar:${andami}/gvSIG/extensiones/com.iver.cit.gvsig/lib/com.iver.cit.gvsig.jar:${andami}/gvSIG/extensiones/com.iver.cit.gvsig/lib/fmap.jar:${andami}/lib/castor-0.9.5.3-xml.jar:${fmap}/lib/cms.jar:${fmap}/lib/driver-manager-1.1.jar"/> |
42 |
</target>
|
43 |
<!-- classpath="${andami}/lib/log4j-1.2.8.jar:${andami}/andami.jar:${andami}/lib/beans.jar:${andami}/gvSIG/extensiones/com.iver.cit.gvsig/lib/com.iver.cit.gvsig.jar:${andami}/gvSIG/extensiones/com.iver.cit.gvsig/lib/fmap.jar:${andami}/lib/castor-0.9.5.3-xml.jar:${fmap}/lib/cms.jar:${fmap}/lib/driver-manager-1.1.jar:${andami}/lib/tempFileManager.jar:${andami}/lib/iver-utiles.jar:${fmap}/lib/kxml2.jar:${fmap}/lib/remote-clients.jar"/> -->
|
44 |
<target name="generate-without-source" |
45 |
description="generate the distribution without the source file"> |
46 |
<!-- Create the distribution directory -->
|
47 |
<mkdir dir="${dist}"/> |
48 |
<copy todir="${build}/com/iver/cit/gvsig/gui/beans/images/"> |
49 |
<fileset dir="images/" includes="*"/> |
50 |
</copy>
|
51 |
|
52 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
53 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}" |
54 |
/>
|
55 |
<!-- excludes="com/iver/cit/gvsig/fmap/drivers/wms/**" />-->
|
56 |
<copy file="config/config.xml" todir="${dist}"/> |
57 |
<copy todir="${dist}"> |
58 |
<fileset dir="config" includes="text*.properties"/> |
59 |
</copy>
|
60 |
<copy todir="${dist}/images"> |
61 |
<fileset dir="images/" includes="*"/> |
62 |
</copy>
|
63 |
<copy todir="${lib-dir}"> |
64 |
<fileset dir="./lib" includes="*.jar,*.zip"/> |
65 |
<fileset dir="." includes=".keystore"/> |
66 |
</copy>
|
67 |
|
68 |
<move todir="${extensionDir}/${plugin}/"> |
69 |
<fileset dir="${dist}" includes="**/**"/> |
70 |
</move>
|
71 |
</target>
|
72 |
|
73 |
|
74 |
<target name="clean" |
75 |
description="clean up" > |
76 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
77 |
<delete dir="${dist}"/> |
78 |
<delete includeemptydirs="true" failonerror="no"> |
79 |
<fileset dir="${build}" includes="**/*"/> |
80 |
</delete>
|
81 |
</target>
|
82 |
</project>
|
83 |
|