source: versions/3.5.201/Bui_Core/xBuildServer_SCserver.xml @ 11837

Revision 11837, 9.0 KB checked in by anp, 4 years ago (diff)

debug genDeploy FTP; review libext

Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!--
3 * LICENCE[[
4 * Version: MPL 1.1/GPL 2.0/LGPL 2.1/CeCILL 2.O
5 *
6 * The contents of this file are subject to the Mozilla Public License Version
7 * 1.1 (the "License"); you may not use this file except in compliance with
8 * the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
9 *
10 * Software distributed under the License is distributed on an "AS IS" basis,
11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 * for the specific language governing rights and limitations under the
13 * License.
14 *
15 * The Original Code is utc.fr code.
16 *
17 * The Initial Developer of the Original Code is
18 * Universite de Technologie de Compiegne.
19 *
20 * Portions created by the Initial Developer are Copyright (C) 2005
21 * the Initial Developer. All Rights Reserved.
22 *
23 * Contributor(s):
24 *
25 *
26 * Alternatively, the contents of this file may be used under the terms of
27 * either of the GNU General Public License Version 2 or later (the "GPL"),
28 * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
29 * or the CeCILL Licence Version 2.0 (http://www.cecill.info/licences.en.html),
30 * in which case the provisions of the GPL, the LGPL or the CeCILL are applicable
31 * instead of those above. If you wish to allow use of your version of this file
32 * only under the terms of either the GPL or the LGPL, and not to allow others
33 * to use your version of this file under the terms of the MPL, indicate your
34 * decision by deleting the provisions above and replace them with the notice
35 * and other provisions required by the GPL or the LGPL. If you do not delete
36 * the provisions above, a recipient may use your version of this file under
37 * the terms of any one of the MPL, the GPL, the LGPL or the CeCILL.
38 * ]]LICENCE
39  -->
40
41<project name="xBuildServer_SCserver" default="SCserver.mainBuiServer" basedir=".">
42        <!--**
43                *  Copie des différents éléments permettant d'intégrer la couche serveur à un client SC
44                *       Properties à déclarer :
45                *               - destwebappdir
46                *               - destapprootdir
47                *       - destworkdir
48                *       - server.work.path
49                *       - server.webapp.name
50                **-->
51
52        <!-- destinations -->
53       
54        <property name="dst.webapp.webinf" value="${destwebappdir}/WEB-INF"/>
55        <property name="dst.sclib" value="${dst.webapp.webinf}/lib"/>
56       
57        <property name="server.actor.path" value="${server.work.path}/users"/>
58        <property name="destjardir" value="${dst.sclib}"/>      <!-- Dossier de destination des JARS à créer -->
59        <property name="destlibext" value="${destapprootdir}/libext/"/> <!-- Dossier de destination des librairies externes -->
60        <property name="destnativdirname" value="nativlib"/>
61        <property name="destnativdir" value="${destworkdir}/${destnativdirname}"/>      <!-- Dossier de destination des DLL, exe utilisées par les JAR -->
62        <property name="destlibendorsed" value="${destapprootdir}/libendorsed"/>        <!-- Dossier de destination des librairies endorsed de la JVM -->
63        <property name="destactordirname" value="users"/>
64        <property name="destconfdirname" value="conf"/>
65        <property name="destconfdir" value="${destwebappdir}/${destconfdirname}"/><!-- ATTENTION : si cette arborescence change, modifier également le path relatif dans web.xml -->
66        <property name="destssofssdirname" value="ssofss"/>
67        <property name="destssofssdir" value="${destworkdir}/${destssofssdirname}"/>
68        <!--<property name="jarprefix" value="scenari"/>--><!-- Préfixes des JARS à créer -->
69       
70        <!-- Emplacement des sources -->
71        <property name="coreresourcesdir" value="${coredir}\resources"/>
72        <property name="corescserverconfdir.webapp" value="${coreresourcesdir}\SCserver\webapp"/>
73        <property name="corescserverconfdir.actors" value="${coreresourcesdir}\SCserver\actors"/>
74        <!-- variables diverses -->
75
76       
77        <!-- targets MAIN -->
78        <target name="SCserver.mainBuiServer" description="création des différents éléments de SCserver">
79                <echo message="### BUIserver"/>
80                <property name="modeNoServletEngine" value="true"/><!-- utilisé dans le bui de Jav_Main  et dans xCopyLib (xBuildServer.xml)-->
81                <!-- compilation des jars. ATTENTION : l'ordre de compile est important -->
82                <!-- # Compilation des jar XPCom -->
83                <echo message=" - Compilation des XPCom JAVA"/>
84                <ant target="xJarXulImage"/>
85                <!-- # Compilation des projets SCENARI -->
86                <echo message=" - Compilation des projets SCENARI"/>
87                <ant target="xJarFW"/>
88                <ant target="xJarUPDT"/>
89                <ant target="xJarEXT"/>
90                <ant target="xJarEL"/>
91                <ant target="xJarCO"/>
92                <ant target="xJarGE"/>
93                <ant target="xJarBDP"/>
94                <ant target="xJarLDAP"/>
95                <ant target="xJarAudio"/>
96                <ant target="xJarBDP_FS"/>
97                <ant target="xJarIhmMoz"/>
98                <ant target="xJarClient"/>
99                <!-- # copie des api externes (jar) -->
100                <echo message=" - Copies des librairies externes"/>
101                <ant target="xCopySrvLib"/>
102                <!-- # copie des api externes natives os dependant (exe, dll, ...) -->
103                <echo message=" - Copies des api natives"/>
104                <ant target="xCopyNativLib"/>
105                <!-- # fichiers de config du server -->
106                <echo message=" - Copie des fichiers de conf du server"/>
107                <copy file="${corescserverconfdir.webapp}/web.xml" tofile="${dst.webapp.webinf}/web.xml"/>
108                <replaceregexp file="${dst.webapp.webinf}/web.xml" match="##scServer_destconfdirname##" replace="${destconfdirname}" byline="yes"/>
109                <ant target="copyServerInit">
110                        <property name="pServerConfDir" value="${coreserverconfdir}"/>
111                </ant>
112                <ant target="xCopySsOfSs">
113                        <property name="ssofssdir" value="${destssofssdir}"/>
114                </ant>
115                <!-- # création de la partie work (acteurs, ...) -->
116                <echo message=" - Création de la partie 'work' (acteurs, ...)"/>
117                <copy todir="${destworkdir}\${destactordirname}">
118                        <fileset dir="${corescserverconfdir.actors}" casesensitive="yes">
119                                <include name="**/*"/>
120                        </fileset>
121                </copy>
122                <!-- création du répertoire d'appelts -->
123                <!--ant target="xCreateAppletDirectory"/-->
124        </target>
125       
126<!--**
127         *  Librairies externes
128         * NOTE : penser à déclarer les licences liées à toute nouvelle librairie dans generateLicenceFiles
129         **--> 
130        <target name="xCopySrvLib" description="Copie les librairies java nécessaires.">
131                <!-- @param : destlibext, destlibendorsed, app.os
132                        -->
133                <echo message="Copy Java Librairies..."/>
134                <mkdir dir="${destlibext}"/>
135                <!-- libs considérées comme présentes dans Tomcat -->
136                <copy file="${ant.jar}" tofile="${destlibext}/ant.jar" preservelastmodified="true" failonerror="true"/>
137                <copy file="${ant.nodeps.jar}" tofile="${destlibext}/ant.nodeps.jar" preservelastmodified="true" failonerror="true"/>
138                <copy file="${ant.launcher.jar}" tofile="${destlibext}/ant.launcher.jar" preservelastmodified="true" failonerror="true"/>
139                <copy file="${ant.contrib.jar}" tofile="${destlibext}/ant.contrib.jar" preservelastmodified="true" failonerror="true"/>
140                <copy file="${ant.xmltask.jar}" tofile="${destlibext}/ant.xmltask.jar" preservelastmodified="true" failonerror="true"/>
141                <copy file="${ant.trax.jar}" tofile="${destlibext}/ant.trax.jar" preservelastmodified="true" failonerror="true"/>
142                <copy file="${ant.bsf.jar}" tofile="${destlibext}/ant.bsf.jar" preservelastmodified="true" failonerror="true"/>
143                <copy file="${bsf.jar}" tofile="${destlibext}/bsf.jar" preservelastmodified="true" failonerror="true"/>
144                <copy file="${net.jar}" tofile="${destlibext}/net.jar" preservelastmodified="true" failonerror="true"/>
145                <copy file="${beanshell.jar}" tofile="${destlibext}/beanshell.jar" preservelastmodified="true"/>
146                <copy file="${logging.jar}" tofile="${destlibext}/logging.jar" preservelastmodified="true"/>
147                <copy file="${fileupload.jar}" tofile="${destlibext}/fileupload.jar" preservelastmodified="true"/>
148                <copy file="${webmacro.jar}" tofile="${destlibext}/webmacro.jar" preservelastmodified="true"/>
149                <!--<copy file="${servlet.jar}" tofile="${destlibext}/servlet.jar" preservelastmodified="true"/>-->
150                <copy file="${oro.jar}" tofile="${destlibext}/oro.jar" preservelastmodified="true"/>
151
152                <!-- libs copiées dans la webApp -->
153                <copy file="${oo.unofinder.jar}" tofile="${destjardir}/unofinder.jar" preservelastmodified="true"/><!-- FIXME : à personnaliser -->
154                <copy file="${jing.res.jar}" tofile="${destjardir}/jingrelaxng.jar" preservelastmodified="true" failonerror="true"/><!-- FIXME : à personnaliser -->
155                <copy file="${scxmlserializer.res.jar}" tofile="${destjardir}/scxmlserializer.jar" preservelastmodified="true" failonerror="true"/>
156                <copy file="${scxmlserializer.res.jar}" tofile="${destjardir}/scxmlserializer.jar" preservelastmodified="true" failonerror="true"/>
157                <copy file="${scxmlparser.res.jar}" tofile="${destjardir}/scxmlparser.jar" preservelastmodified="true" failonerror="true"/>
158                <copy file="${scxslt.res.jar}" tofile="${destjardir}/scxslt.jar" preservelastmodified="true" failonerror="true"/>
159        </target>
160       
161        <target name="SCserver.createWar" description="création du .war">
162                <echo message=" - Création du war"/>
163                <zip destfile="${destapprootdir}/${server.webapp.name}.war" basedir="${destwebappdir}"/>
164        </target>
165
166</project>
Note: See TracBrowser for help on using the repository browser.