svn-gvsig-desktop / tags / v1_9_Build_1235 / extensions / extTopology / build.xml @ 44530
History | View | Annotate | Download (6.1 KB)
1 | 16996 | azabala | <!--REHACERLO PARA QUE SE COPIEN BIEN LAS LIBRERIAS-->
|
---|---|---|---|
2 | |||
3 | 21276 | azabala | <project name="Topology" default="generate-without-source" basedir="."> |
4 | 16996 | azabala | <description>
|
5 | Instala el plugin de Topologia en Andami. |
||
6 | </description>
|
||
7 | |||
8 | <property name="src" location="src"/> |
||
9 | <property name="build" location="bin"/> |
||
10 | <property name="src-test" location="src-test"/> |
||
11 | <property name="build-test" location="bin-test"/> |
||
12 | <property name="doc" location="doc"/> |
||
13 | <property name="dist" location="dist"/> |
||
14 | <property name="without_src" location="without_src"/> |
||
15 | <property name="plugin" value="org.gvsig.topology"/> |
||
16 | |||
17 | |||
18 | <property name="lib" value="lib"/> |
||
19 | <property name="andami" value="../_fwAndami"/> |
||
20 | <property name="jarName" value="${plugin}.jar"/> |
||
21 | <property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
||
22 | 21276 | azabala | <property name="docsGeoprocessDir" location="${extensionsDir}/${plugin}/docs"/> |
23 | 16996 | azabala | <property name="andamiJar" location="${andami}/andami.jar"/> |
24 | <property name="gvsigJar" location="${extensionsDir}/com.iver.cit.gvsig/lib/com.iver.cit.gvsig.jar"/> |
||
25 | <property name="andamiLibs" location="${andami}/lib"/> |
||
26 | <property name="fmapLibs" location="../libFMap/lib" /> |
||
27 | <property name="fmapJar" location="../libFMap/dist/lib/fmap.jar"/> |
||
28 | <import file="../binaries/ant/utilities.xml"/> |
||
29 | |||
30 | <target name="init"> |
||
31 | <!-- Create the time stamp -->
|
||
32 | <tstamp/> |
||
33 | <echo>
|
||
34 | Compiling ${ant.project.name}...</echo>
|
||
35 | </target>
|
||
36 | |||
37 | <buildnumber file="build.number"/> |
||
38 | |||
39 | <target name="dist" depends="init" |
||
40 | description="generate the distribution" > |
||
41 | <!-- Remove previous distribution directory -->
|
||
42 | <delete dir="${dist}"/> |
||
43 | <!-- Create the distribution directory structure -->
|
||
44 | <mkdir dir="${dist}"/> |
||
45 | <mkdir dir="${dist}/bin"/> |
||
46 | <mkdir dir="${dist}/bin/org"/> |
||
47 | <mkdir dir="${dist}/bin/org/gvsig"/> |
||
48 | <mkdir dir="${dist}/bin/org/gvsig/topology"/> |
||
49 | <mkdir dir="${dist}/bin/org/gvsig/topology/images"/> |
||
50 | <mkdir dir="${dist}/images"/> |
||
51 | <mkdir dir="${dist}/config"/> |
||
52 | 21276 | azabala | <mkdir dir="${dist}/config/docs"/> |
53 | 16996 | azabala | <mkdir dir="${dist}/lib"/> |
54 | <!-- Copy necessary distribution files to dist dir -->
|
||
55 | <copy todir="${dist}/images"> |
||
56 | <fileset dir="images"/> |
||
57 | </copy>
|
||
58 | <copy todir="${dist}/lib"> |
||
59 | <fileset dir="lib" includes="*.*"/> |
||
60 | </copy>
|
||
61 | <copy file="config/config.xml" todir="${dist}/config"/> |
||
62 | <copy file="build.number" todir="${dist}"/> |
||
63 | <copy file="build.xml" todir="${dist}"/> |
||
64 | <copy todir="${dist}"> |
||
65 | <fileset dir="config" includes="text*.properties"/> |
||
66 | </copy>
|
||
67 | <jar jarfile="${dist}/bin/org/gvsig/topology/${plugin}.jar" basedir="${build}"/> |
||
68 | <copy file="config/config.xml" todir="${dist}/bin/org/gvsig/topology"/> |
||
69 | <copy file="build.number" todir="${dist}/bin/org/gvsig/topology"/> |
||
70 | <copy todir="${dist}/bin/org/gvsig/topology/images"> |
||
71 | <fileset dir="images"/> |
||
72 | </copy>
|
||
73 | 21276 | azabala | <copy todir="${dist}/docs"> |
74 | <fileset dir="config/docs" includes="**/*.*"/> |
||
75 | </copy>
|
||
76 | 16996 | azabala | </target>
|
77 | |||
78 | <target name="clean-orig" |
||
79 | description="clean dist directory" > |
||
80 | <!-- Clean the distribution directory -->
|
||
81 | <delete dir="${dist}" /> |
||
82 | </target>
|
||
83 | |||
84 | <target name="generate-without-source" |
||
85 | depends="clean-orig" |
||
86 | description="generate the distribution without the source file" > |
||
87 | |||
88 | <!-- Create the distribution directory -->
|
||
89 | <mkdir dir="${without_src}"/> |
||
90 | <mkdir dir="${without_src}/lib"/> |
||
91 | 21276 | azabala | <mkdir dir="${without_src}/docs"/> |
92 | 16996 | azabala | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
93 | <jar jarfile="${without_src}/lib/${plugin}.jar" basedir="${build}"/> |
||
94 | <copy file="config/config.xml" todir="${without_src}"/> |
||
95 | <copy file="build.number" todir="${without_src}"/> |
||
96 | |||
97 | <copy todir="${without_src}"> |
||
98 | <fileset dir="config" includes="text*.properties"/> |
||
99 | </copy>
|
||
100 | |||
101 | 21276 | azabala | |
102 | 16996 | azabala | <copy todir="${without_src}/docs"> |
103 | <fileset dir="config/docs" includes="**/*.*"/> |
||
104 | </copy>
|
||
105 | |||
106 | 21276 | azabala | <!--
|
107 | 16996 | azabala | <copy todir="${without_src}/lib">
|
108 | <fileset dir="lib" includes="*.*"/>
|
||
109 | </copy>
|
||
110 | -->
|
||
111 | <copy todir="${without_src}/images"> |
||
112 | <fileset dir="images/" includes="*"/> |
||
113 | </copy>
|
||
114 | |||
115 | <move todir="${extensionsDir}/${plugin}/"> |
||
116 | <fileset dir="${without_src}" includes="**/**"/> |
||
117 | </move>
|
||
118 | </target>
|
||
119 | |||
120 | |||
121 | <target name="batch-build" |
||
122 | description="compile the sources, create the jar file" |
||
123 | depends="init,compile,create-jar,copy-data-files,copy-libs,move-to-andami"> |
||
124 | </target>
|
||
125 | |||
126 | <target name="compile" description="compile the source" > |
||
127 | <antcall target="gvSIG-import-build-number"/> |
||
128 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
129 | <mkdir dir="${build}" /> |
||
130 | <loadEclipseClasspath project="${basedir}"/> |
||
131 | <gvSIG-javac
|
||
132 | classpath="${eclipseClasspath}" |
||
133 | />
|
||
134 | |||
135 | <copy todir="${build}"> |
||
136 | <fileset dir="${src}" excludes="**/*.java" casesensitive="false"/> |
||
137 | </copy>
|
||
138 | </target>
|
||
139 | |||
140 | <target name="create-jar" |
||
141 | description="Creates the plugin jar"> |
||
142 | <mkdir dir="${dist}/lib"/> |
||
143 | <jar jarfile="${dist}/lib/${jarName}" basedir="${build}"/> |
||
144 | </target>
|
||
145 | |||
146 | <target name="copy-data-files"> |
||
147 | <copy file="config/config.xml" todir="${dist}"/> |
||
148 | <copy file="build.number" todir="${dist}"/> |
||
149 | <copy todir="${dist}"> |
||
150 | <fileset dir="config" includes="text*.properties"/> |
||
151 | </copy>
|
||
152 | <copy todir="${dist}/images"> |
||
153 | <fileset dir="images/" includes="*"/> |
||
154 | </copy>
|
||
155 | <copy todir="${dist}/docs"> |
||
156 | <fileset dir="config/docs" includes="**/*.*"/> |
||
157 | </copy>
|
||
158 | </target>
|
||
159 | |||
160 | <target name="copy-libs"> |
||
161 | <copy todir="${dist}/lib"> |
||
162 | <fileset dir="lib" includes="*.*"/> |
||
163 | </copy>
|
||
164 | </target>
|
||
165 | |||
166 | <target name="move-to-andami"> |
||
167 | <move todir="${extensionsDir}/${plugin}/"> |
||
168 | <fileset dir="${dist}" includes="**/**"/> |
||
169 | </move>
|
||
170 | </target>
|
||
171 | |||
172 | <target name="clean" |
||
173 | description="clean up" > |
||
174 | <delete dir="${build}"/> |
||
175 | <delete dir="${dist}"/> |
||
176 | </target>
|
||
177 | |||
178 | <target name="run-tests" depends="batch-build,compile-tests"> |
||
179 | <antcall target="generic-run-tests"> |
||
180 | <param name="TestSuite.Name" value="com.iver.cit.gvsig.geoprocess.AllTests"/> |
||
181 | </antcall>
|
||
182 | </target>
|
||
183 | |||
184 | </project>
|