svn-gvsig-desktop / tags / v1_1_2_Build_1044 / prototypes / VectorialAvanzado / extensions / extGraph / build.xml @ 20099
History | View | Annotate | Download (5.43 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" token="#build.number#" value="${build.number}" dir="${dist-src}" includes="Leeme-predes.txt, Readme-predes.txt" /> |
48 |
<zip destfile="${dist-src}/gvSIG_pilot_redes-10_${build.number}-src.zip" basedir="${dist-src-name}" excludes="*.zip,**/.svn" /> |
49 |
|
50 |
</target>
|
51 |
|
52 |
<target name="buildNumber"> |
53 |
<propertyfile file="build.number" comment="Build Number for ANT. Do not edit!"> |
54 |
<entry key="build.number" default="0" type="int" operation="+" /> |
55 |
</propertyfile>
|
56 |
<property file="build.number" /> |
57 |
</target>
|
58 |
|
59 |
<target name="distribution" description="increment build number and generate the distribution without the source file" depends="buildNumber,generate-without-source"> |
60 |
</target>
|
61 |
|
62 |
|
63 |
<target name="generate independent library"> |
64 |
<jar jarfile="fmap-graph.jar" |
65 |
basedir="${build}" |
66 |
includes="com/iver/cit/gvsig/graph/core/** com/iver/cit/gvsig/graph/solvers/**" |
67 |
update="true" /> |
68 |
|
69 |
</target>
|
70 |
<target name="generate-without-source" description="generate the distribution without the source file"> |
71 |
<!-- Create the distribution directory -->
|
72 |
<mkdir dir="${dist}" /> |
73 |
<mkdir dir="${dist}/lib" /> |
74 |
|
75 |
|
76 |
|
77 |
<!--
|
78 |
- ->
|
79 |
<jar jarfile="${fmapLibs}/jts-1.7.jar" basedir="${build}" update="yes" includes="com/vividsolutions/**"/>
|
80 |
|
81 |
<!- - Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
82 |
<jar jarfile="${dist}/lib/${plugin-fmap-gvsig}.jar" basedir="${build}" includes="com/iver/cit/fmap/**,com/iver/cit/gvsig/**,com/iver/cit/project/**" excludes="com/iver/cit/gvsig/project/documents/view/**" /> |
83 |
<jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}" includes="com/iver/cit/**" /> |
84 |
<jar jarfile="${extension-dir}/${mainPlugin}/lib/${plugin-graph-gvsig}.jar" basedir="${build}" includes="com/iver/cit/gvsig/project/documents/view/**" /> |
85 |
|
86 |
|
87 |
<copy file="config/config.xml" todir="${dist}" /> |
88 |
<copy file="config/about.htm" todir="${dist}" /> |
89 |
<loadproperties srcFile="build.number" /> |
90 |
<replace casesensitive="true" file="${dist}/about.htm" token="#build.number#" value="${build.number}" /> |
91 |
<copy file="build.number" todir="${dist}" /> |
92 |
<copy todir="${dist}"> |
93 |
<fileset dir="config/" includes="text*.properties" /> |
94 |
</copy>
|
95 |
<copy todir="${dist}/lib"> |
96 |
<fileset dir="lib" includes="*" /> |
97 |
</copy>
|
98 |
<copy todir="${dist}/images"> |
99 |
<fileset dir="images/" includes="*" /> |
100 |
</copy>
|
101 |
<copy todir="${dist}/symbols"> |
102 |
<fileset dir="symbols/" includes="**/**" /> |
103 |
</copy>
|
104 |
|
105 |
<copy todir="${extension-dir}/${plugin}/"> |
106 |
<!--<fileset dir="${dist}" includes="**/**"/>-->
|
107 |
<fileset dir="${dist}"> |
108 |
<exclude name="**/${plugin-fmap-gvsig}.jar" /> |
109 |
<include name="**/**" /> |
110 |
</fileset>
|
111 |
</copy>
|
112 |
<copy todir="${extension-dir}/${mainPlugin}/lib/"> |
113 |
<fileset dir="${dist}/lib" includes="**/${plugin-fmap-gvsig}.jar" /> |
114 |
</copy>
|
115 |
<!--${extension-dir}/${mainPlugin}/lib/${mainPlugin}.jar <copy todir="${fmapLibs}">
|
116 |
<fileset dir="${dist}/lib" includes="**/${plugin-fmap-gvsig}.jar"/>
|
117 |
</copy> -->
|
118 |
<delete dir="${dist}" /> |
119 |
</target>
|
120 |
|
121 |
<target name="save-gvsig-jar-to-install-dir" description="Save the gvsig.jar to installdir"> |
122 |
<!-- ******************************* -->
|
123 |
|
124 |
<copy todir="./install"> |
125 |
<fileset dir="${extension-dir}/com.iver.cit.gvsig/lib/"> |
126 |
<include name="{plugin-graph-gvsig}.jar" /> |
127 |
</fileset>
|
128 |
</copy>
|
129 |
<!-- ******************************* -->
|
130 |
|
131 |
</target>
|
132 |
</project>
|
133 |
|