| 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
|---|
| 2 | <project name="Bui_ScServer" default="All.osNoDefine" basedir=".">
|
|---|
| 3 | <!-- Executer les déclinaisons Win ou Linux de ce bui -->
|
|---|
| 4 | <import file="${basedir}/../Bui_Conf/overrideAppDef.xml" optional="true"/>
|
|---|
| 5 |
|
|---|
| 6 | <!-- propriétés -->
|
|---|
| 7 | <property name="server.webapp.name" value="SCENARIserver3"/>
|
|---|
| 8 | <property name="server.work.path" value="C:/tmp/SCserverWork"/>
|
|---|
| 9 | <property name="server.url" value="http://127.0.0.1:8080"/><!-- url + port. ATTENTION : a reconfigurer sur tous les serveurs -->
|
|---|
| 10 |
|
|---|
| 11 | <property name="destactordirname" value="users"/>
|
|---|
| 12 | <property name="server.actor.path" value="${server.work.path}/${destactordirname}"/>
|
|---|
| 13 | <property name="server.tmprep.path" value="${server.work.path}/transfcach"/>
|
|---|
| 14 | <property name="server.wsp.path" value="${server.work.path}/wsps"/>
|
|---|
| 15 | <property name="server.javaserver.path" value="${server.work.path}/javaserver"/>
|
|---|
| 16 | <property name="destssofssdirname" value="ssofss"/>
|
|---|
| 17 | <property name="server.ssofss.path" value="${server.work.path}/${destssofssdirname}"/>
|
|---|
| 18 | <property name="server.appExt.lame.binName" value="lame"/>
|
|---|
| 19 | <property name="server.appExt.sox.binName" value="sox"/>
|
|---|
| 20 | <property name="server.appExt.soxmix.binName" value="soxmix"/> |
|---|
| 21 | <!--
|
|---|
| 22 | <property name="destnativdirname" value="nativlib"/>
|
|---|
| 23 | <property name="server.nativdir.path" value="${server.work.path}/${destnativdirname}"/>
|
|---|
| 24 | -->
|
|---|
| 25 | <!-- Définition des paths : ressources, out, ... -->
|
|---|
| 26 | <property name="destappdir" value="${basedir}/../../releases/scserver/win"/>
|
|---|
| 27 | <property name="destapprootdir" value="${destappdir}"/>
|
|---|
| 28 | <property name="licencedir" value="${destapprootdir}/licence"/>
|
|---|
| 29 | <property name="destwebappdirname" value="webApp"/>
|
|---|
| 30 | <property name="destwebappdir" value="${destapprootdir}/${destwebappdirname}"/>
|
|---|
| 31 | <property name="destworkdir" value="${destapprootdir}/data"/>
|
|---|
| 32 | <property name="destlibendorsed" value="${destapprootdir}/libendorsed"/>
|
|---|
| 33 | <property name="destlibext" value="${destapprootdir}/libext"/><!-- les libExt sont maintenant incluses dans la webApp ${destapprootdir}/libext -->
|
|---|
| 34 |
|
|---|
| 35 | <property name="tmpRep" value="${basedir}/tmp"/>
|
|---|
| 36 | <property name="resourcesdir" value="${basedir}/resources"/>
|
|---|
| 37 | <property name="resourcesdir.server" value="${resourcesdir}/confServer"/>
|
|---|
| 38 | <property name="resourcesdir.genBui" value="${resourcesdir}/genBui"/>
|
|---|
| 39 | <property name="resourcesdir.genBui.propertyFileName" value="build.property"/>
|
|---|
| 40 | <property name="resourcesdir.applets" value="${resourcesdir}/applets"/>
|
|---|
| 41 |
|
|---|
| 42 | <!-- Fichier de description de l'appli-->
|
|---|
| 43 | <property name="appAbout" value="${basedir}/about.xml"/>
|
|---|
| 44 | <xmlproperty file="${appAbout}"/>
|
|---|
| 45 |
|
|---|
| 46 | <property name="destinstallerdir" value="${basedir}/../../releases"/>
|
|---|
| 47 |
|
|---|
| 48 | <!-- target/variables du core -->
|
|---|
| 49 | <import file="${basedir}/../Bui_Core/properties.xml"/>
|
|---|
| 50 | <import file="${basedir}/../Bui_Core/xBuildServer_SCserver.xml"/>
|
|---|
| 51 | <import file="${basedir}/../Bui_Core/xBuildServer.xml"/>
|
|---|
| 52 |
|
|---|
| 53 | <tstamp><format property="timestamp" pattern="yyMMdd-HHmm"/></tstamp>
|
|---|
| 54 |
|
|---|
| 55 | <!-- Run principal -->
|
|---|
| 56 | <target name="All.osNoDefine">
|
|---|
| 57 | <echo message="Aucun OS n'est spécifié. Veuillez lancer le build.xml des sous-projets '_win', '_lin', ou '_mac'." level="error"/>
|
|---|
| 58 | </target>
|
|---|
| 59 |
|
|---|
| 60 | <target name="main.begin" description="création de SCENARIserver">
|
|---|
| 61 | <!-- # ini -->
|
|---|
| 62 | <echo message="initialisations"/>
|
|---|
| 63 | <delete dir="${destapprootdir}"/>
|
|---|
| 64 | <mkdir dir="${destapprootdir}"/>
|
|---|
| 65 | <!-- # création de la partie server -->
|
|---|
| 66 | <ant target="SCserver.mainBuiServer"/>
|
|---|
| 67 | <copy file="${resourcesdir.server}/init.xml" tofile="${destconfdir}/init.xml.tmp"/>
|
|---|
| 68 | <replaceregexp file="${destconfdir}/init.xml.tmp" match="##app.version\(major\)##" replace="${app.version(major)}" byline="yes" flags="g"/>
|
|---|
| 69 | <replaceregexp file="${destconfdir}/init.xml.tmp" match="##app.version\(medium\)##" replace="${app.version(medium)}" byline="yes" flags="g"/>
|
|---|
| 70 | <replaceregexp file="${destconfdir}/init.xml.tmp" match="##app.version\(minor\)##" replace="${app.version(minor)}" byline="yes" flags="g"/>
|
|---|
| 71 |
|
|---|
| 72 | <!-- # création du bui de construction de la webApp -->
|
|---|
| 73 | <copy todir="${destapprootdir}">
|
|---|
| 74 | <fileset dir="${resourcesdir.genBui}" includes="**/**"/>
|
|---|
| 75 | </copy>
|
|---|
| 76 |
|
|---|
| 77 | <replaceregexp file="${destapprootdir}/build.xml" match="##destwebappdirname##" replace="${destwebappdirname}" byline="yes" flags="g"/>
|
|---|
| 78 | <replaceregexp file="${destapprootdir}/build.xml" match="##propertyfilename##" replace="${resourcesdir.genBui.propertyFileName}" byline="yes" flags="g"/>
|
|---|
| 79 | <replaceregexp file="${destapprootdir}/build.xml" match="##destactordirname##" replace="${destactordirname}" byline="yes" flags="g"/>
|
|---|
| 80 | <replaceregexp file="${destapprootdir}/build.xml" match="##destssofssdirname##" replace="${destssofssdirname}" byline="yes" flags="g"/>
|
|---|
| 81 | <concat destfile="${destapprootdir}/${resourcesdir.genBui.propertyFileName}" append="false">###
|
|---|
| 82 | # SCserver - fichier de configuration de la WebAPP
|
|---|
| 83 | server.webapp.name=${server.webapp.name}
|
|---|
| 84 | server.work.path=${server.work.path}
|
|---|
| 85 | server.url=${server.url}
|
|---|
| 86 |
|
|---|
| 87 | ###
|
|---|
| 88 | # Packaging
|
|---|
| 89 | server.libExt.includeInWebapp=true
|
|---|
| 90 |
|
|---|
| 91 | ###
|
|---|
| 92 | # Configuration des applications tierces
|
|---|
| 93 | server.appExt.lame.path=${server.work.path}/nativlib/${server.appExt.lame.binName}
|
|---|
| 94 | server.appExt.sox.path=${server.work.path}/nativlib/${server.appExt.sox.binName}
|
|---|
| 95 | server.appExt.soxmix.path=${server.work.path}/nativlib/${server.appExt.soxmix.binName} |
|---|
| 96 | server.appExt.imagemagick.path=${server.appExt.imagemagick.binFolderPath}
|
|---|
| 97 |
|
|---|
| 98 | ###
|
|---|
| 99 | # Configuration du mode batch
|
|---|
| 100 | # server.conf.batch=true
|
|---|
| 101 | # server.conf.batch.destPathRoot=${server.work.path}/batchGen
|
|---|
| 102 |
|
|---|
| 103 | ###
|
|---|
| 104 | # Configuration du mode ASP
|
|---|
| 105 | # server.conf.repos=asp
|
|---|
| 106 | # server.conf.repos.asp.templateDomainKey=defaultWsps
|
|---|
| 107 |
|
|---|
| 108 | ###
|
|---|
| 109 | # Configuration du mode de gestion des users
|
|---|
| 110 | # server.conf.usermgr=build.conf.usermgr.xml
|
|---|
| 111 |
|
|---|
| 112 | ###
|
|---|
| 113 | # Autres proprietes
|
|---|
| 114 | server.conf.properties=build.conf.properties.xml |
|---|
| 115 | </concat>
|
|---|
| 116 | <!-- # fichier de licence -->
|
|---|
| 117 | <!-- licence -->
|
|---|
| 118 | <concat destfile="${licencedir}/licence.txt">${app.licence}</concat>
|
|---|
| 119 | <replaceregexp file="${licencedir}/licence.txt" match="##app.name##" replace="${app.name}" byline="yes"/>
|
|---|
| 120 | <replaceregexp file="${licencedir}/licence.txt" match="##app.sources##" replace="${app.sources(url)}" byline="yes"/>
|
|---|
| 121 | <ant target="generateLicenceFiles">
|
|---|
| 122 | <property name="pDestPath" value="${destwebappdir}/licence"/>
|
|---|
| 123 | </ant>
|
|---|
| 124 | <!-- # trace de la version dans la webApp -->
|
|---|
| 125 | <concat destfile="${destwebappdir}/readme.txt" append="false">${app.name}
|
|---|
| 126 | ----------------
|
|---|
| 127 | version : ${app.version(full)}${app.version(developmentStage)}
|
|---|
| 128 | publisher : ${app.publisher}
|
|---|
| 129 | compile : ${timestamp}
|
|---|
| 130 | infos : ${app(url)}
|
|---|
| 131 | </concat>
|
|---|
| 132 | <!-- # copie du répertoire applets -->
|
|---|
| 133 | <!--
|
|---|
| 134 | <copy todir="${destwebappdir}/applets">
|
|---|
| 135 | <fileset dir="${resourcesdir.applets}" includes="**/**"/>
|
|---|
| 136 | </copy>
|
|---|
| 137 | -->
|
|---|
| 138 | </target>
|
|---|
| 139 | <target name="main.end">
|
|---|
| 140 | </target>
|
|---|
| 141 |
|
|---|
| 142 | </project>
|
|---|