svn-gvsig-desktop / trunk / extensions / extGraph / build.xml @ 14512
History | View | Annotate | Download (3.33 KB)
1 |
<project name="Generar extension en Andami" default="generate-without-source" basedir="."> |
---|---|
2 |
<description>
|
3 |
Instala el plugin de ejemplo 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="plugin" value="com.iver.cit.gvsig.graph"/> |
10 |
<property name="plugin-fmap-gvsig" value="com.iver.cit.gvsig.graph-fmap-gvsig"/> |
11 |
<property name="extension-dir" location="../_fwAndami/gvSIG/extensiones"/> |
12 |
<property name="mainPlugin" value="com.iver.cit.gvsig" /> |
13 |
<property name="fmapLibs" location="../libFMap/lib"/> |
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 |
<!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
|
21 |
<buildnumber/> |
22 |
|
23 |
</target>
|
24 |
|
25 |
<target name="generate-without-source" description="generate the distribution without the source file" > |
26 |
<!-- Create the distribution directory -->
|
27 |
<mkdir dir="${dist}"/> |
28 |
<mkdir dir="${dist}/lib"/> |
29 |
|
30 |
|
31 |
|
32 |
<!--<jar jarfile="${fmapLibs}/jts-1.7.jar" basedir="${build}" update="yes" includes="com/vividsolutions/**"/>-->
|
33 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
34 |
<!-- These files have been moved to FMap
|
35 |
|
36 |
<jar jarfile="${dist}/lib/${plugin-fmap-gvsig}.jar" basedir="${build}" includes="com/iver/cit/fmap/**,com/iver/cit/gvsig/**,com/iver/cit/project/**"
|
37 |
excludes="com/iver/cit/gvsig/project/documents/view/legend/gui/**" />
|
38 |
-->
|
39 |
<jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}" includes="com/iver/cit/**"/> |
40 |
<jar jarfile="${extension-dir}/${mainPlugin}/lib/${mainPlugin}.jar" |
41 |
basedir="${build}" |
42 |
includes="com/iver/cit/gvsig/project/documents/view/legend/gui/**" |
43 |
update="yes" /> |
44 |
|
45 |
|
46 |
<copy file="config/config.xml" todir="${dist}"/> |
47 |
<copy file="config/about.htm" todir="${dist}"/> |
48 |
<copy todir="${dist}"> |
49 |
<fileset dir="config/" includes="text*.properties"/> |
50 |
</copy>
|
51 |
<copy todir="${dist}/lib"> |
52 |
<fileset dir="lib" includes="*"/> |
53 |
</copy>
|
54 |
<copy todir="${dist}/images"> |
55 |
<fileset dir="images/" includes="*"/> |
56 |
</copy>
|
57 |
<copy todir="${dist}/symbols"> |
58 |
<fileset dir="symbols/" includes="**/**"/> |
59 |
</copy>
|
60 |
|
61 |
<copy todir="${extension-dir}/${plugin}/"> |
62 |
<!--<fileset dir="${dist}" includes="**/**"/>-->
|
63 |
<fileset dir="${dist}"> |
64 |
<exclude name="**/${plugin-fmap-gvsig}.jar"/> |
65 |
<include name="**/**"/> |
66 |
</fileset>
|
67 |
</copy>
|
68 |
<copy todir="${extension-dir}/${mainPlugin}/lib/"> |
69 |
<fileset dir="${dist}/lib" includes="**/${plugin-fmap-gvsig}.jar"/> |
70 |
</copy>
|
71 |
<!--${extension-dir}/${mainPlugin}/lib/${mainPlugin}.jar <copy todir="${fmapLibs}">
|
72 |
<fileset dir="${dist}/lib" includes="**/${plugin-fmap-gvsig}.jar"/>
|
73 |
</copy> -->
|
74 |
<delete dir="${dist}"/> |
75 |
</target>
|
76 |
|
77 |
<target name="save-gvsig-jar-to-install-dir" description="Save the gvsig.jar to installdir" > |
78 |
<!-- ******************************* -->
|
79 |
|
80 |
<copy todir="./install"> |
81 |
<fileset dir="${extension-dir}/com.iver.cit.gvsig/lib/"> |
82 |
<include name="com.iver.cit.gvsig.jar"/> |
83 |
</fileset>
|
84 |
</copy>
|
85 |
<!-- ******************************* -->
|
86 |
|
87 |
</target>
|
88 |
</project>
|
89 |
|