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