root / tags / PilotoRedes_Build_3 / extensions / extGraph_predes / build.xml @ 11678
History | View | Annotate | Download (5.4 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="dist-src-name" value="dist-src"/> |
10 |
<property name="dist-src" location="${dist-src-name}"/> |
11 |
<property name="plugin" value="com.iver.cit.gvsig.graph"/> |
12 |
<property name="plugin-fmap-gvsig" value="com.iver.cit.gvsig.graph-fmap-gvsig"/> |
13 |
<property name="plugin-graph-gvsig" value="com.iver.cit.gvsig.graph-gvsig"/> |
14 |
<property name="extension-dir" location="../_fwAndami/gvSIG/extensiones"/> |
15 |
<property name="mainPlugin" value="com.iver.cit.gvsig" /> |
16 |
<property name="fmapLibs" location="../libFMap/lib"/> |
17 |
<target name="init"> |
18 |
<!-- Create the time stamp -->
|
19 |
<tstamp/> |
20 |
<!-- Create the build directory structure used by compile -->
|
21 |
<mkdir dir="${build}"/> |
22 |
<mkdir dir="${dist}"/> |
23 |
|
24 |
</target>
|
25 |
|
26 |
<target name="generate-source-package"> |
27 |
<delete dir="${dist-src}" quiet="yes"/> |
28 |
<mkdir dir="${dist-src}"/> |
29 |
<basename file="${basedir}" property="extensionProjectDir"/> |
30 |
<mkdir dir="${dist-src}/${extensionProjectDir}"/> |
31 |
<copy todir="${dist-src}/${extensionProjectDir}"> |
32 |
<fileset dir="${basedir}"/> |
33 |
</copy>
|
34 |
<copy todir="${dist-src}"> |
35 |
<fileset dir="${basedir}/install/resources" includes="Leeme-predes.txt, Readme-predes.txt"/> |
36 |
</copy>
|
37 |
<delete dir="${dist-src}/${extensionProjectDir}/bin"/> |
38 |
<mkdir dir="${dist-src}/${extensionProjectDir}/bin"/> |
39 |
<delete dir="${dist-src}/${extensionProjectDir}/src-test"/> |
40 |
<mkdir dir="${dist-src}/${extensionProjectDir}/src-test"/> |
41 |
<delete dir="${dist-src}/${extensionProjectDir}/install"/> |
42 |
<delete dir="${dist-src}/${extensionProjectDir}/dist" quiet="yes"/> |
43 |
<delete dir="${dist-src}/${extensionProjectDir}/dist-src" quiet="yes"/> |
44 |
<delete dir="${dist-src}/${extensionProjectDir}/test-files" quiet="yes"/> |
45 |
<delete dir="${dist-src}/${extensionProjectDir}/test-file" quiet="yes"/> |
46 |
<loadproperties srcFile="build.number"/> |
47 |
<replace casesensitive="true" |
48 |
token="#build.number#" |
49 |
value="${build.number}" |
50 |
dir="${dist-src}" |
51 |
includes="Leeme-predes.txt, Readme-predes.txt"/> |
52 |
<zip destfile="${dist-src}/gvSIG_pilot_redes-10_${build.number}-src.zip" |
53 |
basedir="${dist-src-name}" |
54 |
excludes="*.zip" |
55 |
/>
|
56 |
|
57 |
</target>
|
58 |
|
59 |
<target name="buildNumber"> |
60 |
<propertyfile
|
61 |
file="build.number" |
62 |
comment="Build Number for ANT. Do not edit!"> |
63 |
<entry key="build.number" default="0" type="int" operation="+"/> |
64 |
</propertyfile>
|
65 |
<property file="build.number"/> |
66 |
</target>
|
67 |
|
68 |
<target name="distribution" |
69 |
description="increment build number and generate the distribution without the source file" |
70 |
depends="buildNumber,generate-without-source"> |
71 |
</target>
|
72 |
|
73 |
<target name="generate-without-source" description="generate the distribution without the source file" > |
74 |
<!-- Create the distribution directory -->
|
75 |
<mkdir dir="${dist}"/> |
76 |
<mkdir dir="${dist}/lib"/> |
77 |
|
78 |
|
79 |
|
80 |
<!--
|
81 |
- ->
|
82 |
<jar jarfile="${fmapLibs}/jts-1.7.jar" basedir="${build}" update="yes" includes="com/vividsolutions/**"/>
|
83 |
|
84 |
<!- - Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
85 |
<jar jarfile="${dist}/lib/${plugin-fmap-gvsig}.jar" basedir="${build}" includes="com/iver/cit/fmap/**,com/iver/cit/gvsig/**,com/iver/cit/project/**" |
86 |
excludes="com/iver/cit/gvsig/project/documents/view/**" /> |
87 |
<jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}" includes="com/iver/cit/**"/> |
88 |
<jar jarfile="${extension-dir}/${mainPlugin}/lib/${plugin-graph-gvsig}.jar" |
89 |
basedir="${build}" |
90 |
includes="com/iver/cit/gvsig/project/documents/view/**" |
91 |
/>
|
92 |
|
93 |
|
94 |
<copy file="config/config.xml" todir="${dist}"/> |
95 |
<copy file="config/about.htm" todir="${dist}"/> |
96 |
<loadproperties srcFile="build.number"/> |
97 |
<replace casesensitive="true" |
98 |
file="${dist}/about.htm" |
99 |
token="#build.number#" |
100 |
value="${build.number}"/> |
101 |
<copy file="build.number" todir="${dist}"/> |
102 |
<copy todir="${dist}"> |
103 |
<fileset dir="config/" includes="text*.properties"/> |
104 |
</copy>
|
105 |
<copy todir="${dist}/lib"> |
106 |
<fileset dir="lib" includes="*"/> |
107 |
</copy>
|
108 |
<copy todir="${dist}/images"> |
109 |
<fileset dir="images/" includes="*"/> |
110 |
</copy>
|
111 |
<copy todir="${dist}/symbols"> |
112 |
<fileset dir="symbols/" includes="**/**"/> |
113 |
</copy>
|
114 |
|
115 |
<copy todir="${extension-dir}/${plugin}/"> |
116 |
<!--<fileset dir="${dist}" includes="**/**"/>-->
|
117 |
<fileset dir="${dist}"> |
118 |
<exclude name="**/${plugin-fmap-gvsig}.jar"/> |
119 |
<include name="**/**"/> |
120 |
</fileset>
|
121 |
</copy>
|
122 |
<copy todir="${extension-dir}/${mainPlugin}/lib/"> |
123 |
<fileset dir="${dist}/lib" includes="**/${plugin-fmap-gvsig}.jar"/> |
124 |
</copy>
|
125 |
<!--${extension-dir}/${mainPlugin}/lib/${mainPlugin}.jar <copy todir="${fmapLibs}">
|
126 |
<fileset dir="${dist}/lib" includes="**/${plugin-fmap-gvsig}.jar"/>
|
127 |
</copy> -->
|
128 |
<delete dir="${dist}"/> |
129 |
</target>
|
130 |
|
131 |
<target name="save-gvsig-jar-to-install-dir" description="Save the gvsig.jar to installdir" > |
132 |
<!-- ******************************* -->
|
133 |
|
134 |
<copy todir="./install"> |
135 |
<fileset dir="${extension-dir}/com.iver.cit.gvsig/lib/"> |
136 |
<include name="{plugin-graph-gvsig}.jar"/> |
137 |
</fileset>
|
138 |
</copy>
|
139 |
<!-- ******************************* -->
|
140 |
|
141 |
</target>
|
142 |
</project>
|
143 |
|