root / tags / v1_0_RELEASE / docs / build.xml @ 39427
History | View | Annotate | Download (12.2 KB)
1 | 5052 | vacevedo | <project basedir=".." name="build"> |
---|---|---|---|
2 | <property name="sourceDir" value="docs/dist/html/APIReference"/> |
||
3 | <property name="apiReferenceDir" value="docs/dist/html/APIReference"/> |
||
4 | <property name="GDBMSDir" value="docs/dist/html/developersGuide"/> |
||
5 | <property name="extGeoProcessingDir" value="docs/dist/html/extGeoProcessing/manualDeUsuario"/> |
||
6 | |||
7 | <property name="projectsDir" value="."/> |
||
8 | <property name="passw" value="docdeploy"/> |
||
9 | <property name="server" value="www.gvsig.org"/> |
||
10 | <property name="port" value="8021"/> |
||
11 | <property name="user" value="docdeploy"/> |
||
12 | <property name="remoteDir" value="gvSIG"/> |
||
13 | <property name="scripts" value="scripts"/> |
||
14 | |||
15 | |||
16 | <!-- ========== Executable Targets ======================================== -->
|
||
17 | <target name="deployAll"> |
||
18 | <antcall target="deployGDBMSDevelopersGuide"></antcall> |
||
19 | <antcall target="deployAPIReference"></antcall> |
||
20 | <antcall target="deployExtGeoProcesingManualDelUsuario"></antcall> |
||
21 | </target>
|
||
22 | 5816 | vacevedo | |
23 | <target name="processManualDeUsuario"> |
||
24 | 5052 | vacevedo | <exec executable="python"> |
25 | 5816 | vacevedo | <arg value="${basedir}/docs/${scripts}/mkbook.py"/> |
26 | <arg value="${basedir}/docs/src/manualDeUsuario"/> <!-- rootSrc directorio origen de los documentos--> |
||
27 | <arg value="${basedir}/docs/src-bin/manualDeUsuario"/><!-- binRootDir directorio donde se transformaran los documentos--> |
||
28 | <arg value="${basedir}/docs/dist/html/manualDeUsuario"/><!-- distRootDir directorio donde se dejan los html generados--> |
||
29 | </exec>
|
||
30 | 5052 | vacevedo | </target>
|
31 | 5816 | vacevedo | |
32 | 5052 | vacevedo | <target name="deployGDBMSDevelopersGuide"> |
33 | <exec executable="python"> |
||
34 | <arg value="${basedir}/docs/${scripts}/mkbook.py"/> |
||
35 | <arg value="${basedir}/libGDBMS/docs/src/developersGuide"/> <!-- rootDir directorio origen de los documentos--> |
||
36 | <arg value="${basedir}/docs/src-bin/developersGuide"/><!-- binDir directorio donde se transformaran los documentos--> |
||
37 | <arg value="${basedir}/docs/dist/html/developersGuide"/><!-- distDir directorio donde se dejan los html generados--> |
||
38 | </exec>
|
||
39 | <!-- Deploy GDBMS en el directorio no Plone -->
|
||
40 | <antcall target="deleteRemoteFiles"> |
||
41 | <param name="remoteDir" value="${remoteDir}/portal2/GDBMSDevelopersGuide"/> |
||
42 | </antcall>
|
||
43 | <antcall target="deleteRemoteDirs"> |
||
44 | <param name="remoteDir" value="${remoteDir}/portal2/GDBMSDevelopersGuide"/> |
||
45 | </antcall>
|
||
46 | <antcall target="makeRemoteDirs"> |
||
47 | <param name="remoteDir" value="${remoteDir}/portal2/GDBMSDevelopersGuide"/> |
||
48 | </antcall>
|
||
49 | <antcall target="copyFilesToRemote"> |
||
50 | <param name="sourceDir" value="${GDBMSDir}"/> |
||
51 | <param name="remoteDir" value="${remoteDir}/portal2/GDBMSDevelopersGuide"/> |
||
52 | </antcall>
|
||
53 | <!-- Deploy GDBMS en el directorio Plone -->
|
||
54 | <antcall target="deleteRemoteFiles"> |
||
55 | <param name="remoteDir" value="${remoteDir}/portal/docdev/GDBMSDevelopersGuide"/> |
||
56 | </antcall>
|
||
57 | <antcall target="deleteRemoteDirs"> |
||
58 | <param name="remoteDir" value="${remoteDir}/portal/docdev/GDBMSDevelopersGuide"/> |
||
59 | </antcall>
|
||
60 | <antcall target="makeRemoteDirs"> |
||
61 | <param name="remoteDir" value="${remoteDir}/portal/docdev/GDBMSDevelopersGuide"/> |
||
62 | </antcall>
|
||
63 | <antcall target="copyFilesToRemote"> |
||
64 | <param name="sourceDir" value="${GDBMSDir}"/> |
||
65 | <param name="remoteDir" value="${remoteDir}/portal/docdev/GDBMSDevelopersGuide"/> |
||
66 | </antcall>
|
||
67 | </target>
|
||
68 | <!--=======================================================================-->
|
||
69 | <target name="deployExtGeoProcesingManualDelUsuario"> |
||
70 | <exec executable="python"> |
||
71 | <arg value="${basedir}/docs/${scripts}/mkbook.py"/> |
||
72 | <arg value="${basedir}/extGeoProcessing/doc/src/manualDeUsuario"/> <!-- rootDir directorio origen de los documentos--> |
||
73 | <arg value="${basedir}/docs/src-bin/extGeoProcessing/manualDeUsuario"/><!-- binDir directorio donde se transformaran los documentos--> |
||
74 | <arg value="${basedir}/docs/dist/html/extGeoProcessing/manualDeUsuario"/><!-- distDir directorio donde se dejan los html generados--> |
||
75 | </exec>
|
||
76 | <!-- Deploy GeoProcesing en el directorio no Plone -->
|
||
77 | <antcall target="deleteRemoteFiles"> |
||
78 | <param name="remoteDir" value="${remoteDir}/portal2/userdocs/extGeoProcessing/manualDeUsuario"/> |
||
79 | </antcall>
|
||
80 | <antcall target="deleteRemoteDirs"> |
||
81 | <param name="remoteDir" value="${remoteDir}/portal2/userdocs/extGeoProcessing/manualDeUsuario"/> |
||
82 | </antcall>
|
||
83 | <antcall target="makeRemoteDirs"> |
||
84 | <param name="remoteDir" value="${remoteDir}/portal2/userdocs/extGeoProcessing/manualDeUsuario"/> |
||
85 | </antcall>
|
||
86 | <antcall target="copyFilesToRemote"> |
||
87 | <param name="sourceDir" value="${extGeoProcessingDir}"/> |
||
88 | <param name="remoteDir" value="${remoteDir}/portal2/userdocs/extGeoProcessing/manualDeUsuario"/> |
||
89 | </antcall>
|
||
90 | <!-- Deploy GeoProcesing en el directorio Plone -->
|
||
91 | <antcall target="deleteRemoteFiles"> |
||
92 | <param name="remoteDir" value="${remoteDir}/portal/docdev/extGeoProcessing/manualDeUsuario"/> |
||
93 | </antcall>
|
||
94 | <antcall target="deleteRemoteDirs"> |
||
95 | <param name="remoteDir" value="${remoteDir}/portal/docdev/extGeoProcessing/manualDeUsuario"/> |
||
96 | </antcall>
|
||
97 | <antcall target="makeRemoteDirs"> |
||
98 | <param name="remoteDir" value="${remoteDir}/portal/docdev/extGeoProcessing/manualDeUsuario"/> |
||
99 | </antcall>
|
||
100 | <antcall target="copyFilesToRemote"> |
||
101 | <param name="sourceDir" value="${extGeoProcessingDir}"/> |
||
102 | <param name="remoteDir" value="${remoteDir}/portal/docdev/extGeoProcessing/manualDeUsuario"/> |
||
103 | </antcall>
|
||
104 | </target>
|
||
105 | |||
106 | <!--=======================================================================-->
|
||
107 | |||
108 | <!-- Deploy del API -->
|
||
109 | <target name="deployAPIReference" depends="buildAPIReference"> |
||
110 | <!-- Deploy del API en el directorio no Plone-->
|
||
111 | <antcall target="deleteRemoteFiles"> |
||
112 | <param name="remoteDir" value="${remoteDir}/portal2/apireference"/> |
||
113 | </antcall>
|
||
114 | <antcall target="deleteRemoteDirs"> |
||
115 | <param name="remoteDir" value="${remoteDir}/portal2/apireference"/> |
||
116 | </antcall>
|
||
117 | <antcall target="copyFilesToRemote"> |
||
118 | <param name="sourceDir" value="${apiReferenceDir}"/> |
||
119 | <param name="remoteDir" value="${remoteDir}/portal2/apireference"/> |
||
120 | </antcall>
|
||
121 | <antcall target="makeZipFile" |
||
122 | description="Crea un fichero .zip con la documentacion del api"> |
||
123 | <param name="dstDir" value="${basedir}/docs/dist/zip/apiref.zip"/> |
||
124 | <param name="srcDir" value="${apiReferenceDir}"/> |
||
125 | </antcall>
|
||
126 | <antcall target="copyFilesToRemote" |
||
127 | description="Copia el fichero apiref.zip al directorio remoto"> |
||
128 | <param name="sourceDir" value="${basedir}/docs/dist/zip"/> |
||
129 | <param name="remoteDir" value="${remoteDir}/portal2"/> |
||
130 | </antcall>
|
||
131 | |||
132 | <!-- Deploy del API en el directorio Plone-->
|
||
133 | <!-- FIXME:
|
||
134 | Portal es un directorio Plone. Existen dos directorios
|
||
135 | dentro de la documentacion del API que le dan problemas.
|
||
136 | es/gva/cit/catalogClient/ui/search
|
||
137 | es/gva/cit/gazetteer/ui/search
|
||
138 | Debido a que no podemos crear un directorio llamado search por
|
||
139 | ftp cambiamos de nombre a los directorios llamandolos search_
|
||
140 | -->
|
||
141 | <antcall target="moveDir" |
||
142 | description="Debido a que no podemos crear un directorio search por |
||
143 | ftp cambiamos de nombre al directorio"> |
||
144 | <param name="srcDir" value="${apiReferenceDir}/es/gva/cit/catalogClient/ui/search"/> |
||
145 | <param name="dstDir" value="${apiReferenceDir}/es/gva/cit/catalogClient/ui/search_"/> |
||
146 | </antcall>
|
||
147 | <antcall target="moveDir" |
||
148 | description="Debido a que no podemos crear un directorio search por |
||
149 | ftp cambiamos de nombre al directorio"> |
||
150 | <param name="srcDir" value="${apiReferenceDir}/es/gva/cit/gazetteer/ui/search"/> |
||
151 | <param name="dstDir" value="${apiReferenceDir}/es/gva/cit/gazetteer/ui/search_"/> |
||
152 | </antcall>
|
||
153 | <antcall target="deleteRemoteFiles"> |
||
154 | <param name="remoteDir" value="${remoteDir}/portal/docdev/apireference"/> |
||
155 | </antcall>
|
||
156 | <antcall target="deleteRemoteDirs"> |
||
157 | <param name="remoteDir" value="${remoteDir}/portal/docdev/apireference"/> |
||
158 | </antcall>
|
||
159 | <antcall target="copyFilesToRemote"> |
||
160 | <param name="remoteDir" value="${remoteDir}/portal/docdev/apireference"/> |
||
161 | </antcall>
|
||
162 | <!-- FIXME:
|
||
163 | Para dejar el directorio dist correcto deshacemos el cambio
|
||
164 | de nombre de los directorios search -->
|
||
165 | <antcall target="moveDir" |
||
166 | description="Debido a que no podemos crear un directorio search por |
||
167 | ftp cambiamos de nombre al directorio"> |
||
168 | <param name="srcDir" value="${apiReferenceDir}/es/gva/cit/catalogClient/ui/search_"/> |
||
169 | <param name="dstDir" value="${apiReferenceDir}/es/gva/cit/catalogClient/ui/search"/> |
||
170 | </antcall>
|
||
171 | <antcall target="moveDir" |
||
172 | description="Debido a que no podemos crear un directorio search por |
||
173 | ftp cambiamos de nombre al directorio"> |
||
174 | <param name="srcDir" value="${apiReferenceDir}/es/gva/cit/gazetteer/ui/search_"/> |
||
175 | <param name="dstDir" value="${apiReferenceDir}/es/gva/cit/gazetteer/ui/search"/> |
||
176 | </antcall>
|
||
177 | </target>
|
||
178 | |||
179 | <target name="buildAPIReference" |
||
180 | description="Crea el documento Javadoc del componente"> |
||
181 | <delete dir="${apiReferenceDir}" /> |
||
182 | <mkdir dir="${apiReferenceDir}"/> |
||
183 | <javadoc
|
||
184 | author="true" |
||
185 | version="true" |
||
186 | destdir="${apiReferenceDir}" |
||
187 | maxmemory="512m" |
||
188 | source="1.4" |
||
189 | doctitle="DOCUMENTACION DEL API" |
||
190 | bottom="Documentacion del API" |
||
191 | windowtitle="Documentacion API" |
||
192 | verbose="no" |
||
193 | >
|
||
194 | <fileset dir="${basedir}/"> |
||
195 | <include name="_fwAndami/src/**/*.java"/> |
||
196 | <include name="appCatalogYNomenclatorClient/src/**/*.java"/> |
||
197 | <include name="appgvSIG/src/**/*.java"/> |
||
198 | <include name="extAddEventTheme/src/**/*.java"/> |
||
199 | <include name="extCAD/src/**/*.java"/> |
||
200 | <include name="extCatalogYNomenclator/src/**/*.java"/> |
||
201 | <include name="extDataLocator/src/**/*.java"/> |
||
202 | <include name="extDwg/src/**/*.java"/> |
||
203 | <include name="extGeoProcessing/src/**/*.java"/> |
||
204 | <include name="extJDBC/src/**/*.java"/> |
||
205 | <include name="extRasterTools/src/**/*.java"/> |
||
206 | <include name="extWCS/src/**/*.java"/> |
||
207 | <include name="extWFS/src/**/*.java"/> |
||
208 | <include name="extWMS/src/**/*.java"/> |
||
209 | <include name="libCorePlugin/src/**/*.java"/> |
||
210 | <include name="libCostasPhotoService/src/**/*.java"/> |
||
211 | <include name="libCq CMS for java/src/**/*.java"/> |
||
212 | <include name="libDriverManager/src/**/*.java"/> |
||
213 | <include name="libDwg/src/**/*.java"/> |
||
214 | <include name="libFmap/src/**/*.java"/> |
||
215 | <include name="libInternationalization/src/**/*.java"/> |
||
216 | <include name="libIverUtiles/src/**/*.java"/> |
||
217 | <!--include name="libRemoteServices/src/**/*.java"/-->
|
||
218 | <!-- FIXME:
|
||
219 | Se excluye libRemoteServices/src/ de momento porque crea
|
||
220 | problemas al javadoc a la hora de crear la documentacion,
|
||
221 | cuando se subsanen debera incluirse-->
|
||
222 | <include name="libGDBMS/src/main/driver/*.java"/> |
||
223 | <include name="libGDBMS/src/main/engine/*.java"/> |
||
224 | <!--<include name="libGDBMS/src/main/parser/*.java"/> -->
|
||
225 | <!-- FIXME:
|
||
226 | Se excluye libGDBMS/src/main/parser/*.java de momento porque
|
||
227 | crea problemas al javadoc a la hora de crear la documentacion,
|
||
228 | cuando se subsanen debera incluirse-->
|
||
229 | </fileset>
|
||
230 | </javadoc>
|
||
231 | </target>
|
||
232 | |||
233 | <!-- ============================= Scripts ================================= -->
|
||
234 | <target name="makeRemoteDirs" |
||
235 | description="Crea un directorio por ftp"> |
||
236 | <ftp
|
||
237 | action="mkdir" |
||
238 | server="${server}" |
||
239 | password="${passw}" |
||
240 | userid="${user}" |
||
241 | remotedir="${remoteDir}" |
||
242 | port="${port}" |
||
243 | />
|
||
244 | </target>
|
||
245 | <target name="deleteRemoteFiles" |
||
246 | description="Borra los archivos de los directorios remotos"> |
||
247 | <ftp
|
||
248 | action="del" |
||
249 | server="${server}" |
||
250 | password="${passw}" |
||
251 | userid="${user}" |
||
252 | remotedir="${remoteDir}" |
||
253 | port="${port}" |
||
254 | verbose="no"> |
||
255 | <fileset dir="${remoteDir}"> |
||
256 | <include name="**"/> |
||
257 | </fileset>
|
||
258 | </ftp>
|
||
259 | </target>
|
||
260 | <target name="deleteRemoteDirs" |
||
261 | description="Borra los directorios remotos"> |
||
262 | <ftp
|
||
263 | action="rmdir" |
||
264 | server="${server}" |
||
265 | password="${passw}" |
||
266 | userid="${user}" |
||
267 | remotedir="${remoteDir}" |
||
268 | port="${port}" |
||
269 | verbose="no"> |
||
270 | <fileset>
|
||
271 | <include name="**"/> |
||
272 | </fileset>
|
||
273 | </ftp>
|
||
274 | </target>
|
||
275 | <target name="copyFilesToRemote" |
||
276 | description="Copia archivos por ftp"> |
||
277 | <ftp server="${server}" |
||
278 | password="${passw}" |
||
279 | userid="${user}" |
||
280 | remotedir="${remoteDir}" |
||
281 | port="${port}" |
||
282 | verbose="no" |
||
283 | binary="true"> |
||
284 | |||
285 | <fileset dir="${sourceDir}"> |
||
286 | <include name="**/*"/> |
||
287 | </fileset>
|
||
288 | </ftp>
|
||
289 | </target>
|
||
290 | <target name="moveDir" |
||
291 | description="Mueve un directorio a otro"> |
||
292 | <move todir="${dstDir}"> |
||
293 | <fileset dir="${srcDir}"/> |
||
294 | </move>
|
||
295 | </target>
|
||
296 | <target name="makeZipFile" |
||
297 | description="Crea un archivo zip"> |
||
298 | <zip destfile="${dstDir}" |
||
299 | basedir="${srcDir}" |
||
300 | includes="**/*.html"> |
||
301 | </zip>
|
||
302 | |||
303 | </target>
|
||
304 | </project> |