Files
gateway-mnp-dbc/dbcmnpsrc/FE/mnpdev/build/build.xml

1085 lines
39 KiB
XML

<project name="mnp" default="speaker" basedir=".">
<condition property="isWindowsOs">
<os family="windows"/>
</condition>
<condition property="isWindowsXpOs">
<os family="windows" />
</condition>
<condition property="isUnix">
<os family="unix"/>
</condition>
<condition property="isAixOs">
<os family="unix" name="aix"/>
</condition>
<condition property="build.prop.file.path" value="winxp">
<isset property="isWindowsXpOs"/>
</condition>
<condition property="build.prop.file.path" value="aix">
<isset property="isAixOs"/>
</condition>
<property name="build.prop.file" value="${build.prop.file.path}/build_${user.name}.properties"/>
<property file="cobertura.properties" />
<!--
TOGLIERE COMMENTO SE SI VUOLE INSTRUMENTARE MNP CON COBERTURA
<property name="instrument-with-cobertura" value="true"/>
-->
<!-- <path id="cobertura.classpath">
<fileset dir="${cobertura.dir}">
<include name="*.jar" />
</fileset>
</path>
<taskdef classpathref="cobertura.classpath" resource="tasks.properties" /> -->
<property environment="env"/>
<property file="${build.prop.file}"/>
<property name="build.path" value="${project.home}/build"/>
<property name="building.path" value="${build.path}/building"/>
<property name="mnp.src.path" value="${project.home}/mnp/src"/>
<property name="mnp.web.path" value="${project.home}/mnp/web"/>
<property name="mnp.webaom.path" value="${project.home}/mnp/webaom"/>
<property name="mnp.ejb.path" value="${project.home}/mnp/ejb"/>
<property name="crontab.ejb.path" value="${project.home}/crontab/ejb"/>
<property name="mnp.ear.path" value="${project.home}/mnp/ear"/>
<property name="mnp.classes.path" value="${building.path}/mnp-classes"/>
<property name="crontab.src.path" value="${project.home}/crontab/src"/>
<property name="crontab.src.processexecutor.path" value="$(crontab.src.path)/it/valueteam/crontab/processexecutor"></property>
<property name="crontab.web.path" value="${project.home}/crontab/web"/>
<property name="crontab.classes.path" value="${building.path}/crontab-classes"/>
<!-- Directory destinazione librerie per test -->
<property name="tst-dir" location="${project.home}/test" />
<!-- Configurazione per le classi generate da hibernate -->
<property name="mnp.hibernateDAO.destdir.path" value="${mnp.src.path}/${destDir}"/>
<property name="mnp.hibernatePojoXml.destdir.path" value="${mnp.src.path}/${destDir}"/>
<property name="mnp.hibernate.gen.configFile" value="${build.path}/hibernate/hibernateGen.cfg.xml"/>
<property name="mnp.hibernate.gen.revengeFile" value="${build.path}/hibernate/hibernate.reveng.xml"/>
<property name="mnp.hibernate.gen.revengeFileFK" value="${build.path}/hibernate/hibernateFK.reveng.xml"/>
<property name="mnp.hibernate.gen.lib.path" value="${build.path}/hibernate/genLib"/>
<!-- Configurazione per le classi del WS da DBSS -->
<property name="wsdev.home" value="${project.home}/wsdbc" />
<property name="wsdev.wsdl.home" value="${wsdev.home}/wsdl" />
<property name="wsdev.wssrc.path" value="${mnp.src.path}"/>
<property name="wsdev.wsdl.dbss.path" value="${wsdev.wsdl.home}/dbss" />
<property name="wsdev.wsdl.gisp.path" value="${wsdev.wsdl.home}/gisp" />
<property name="wsdev.dbss.building.path" value="${wsdev.home}/dbss/building" />
<property name="wsdev.gisp.building.path" value="${wsdev.home}/gisp/building" />
<property name="wsdev.dbss.war.name" value="MobileNumberPortabilityMgmt.war"/>
<property name="wsdev.lastPortability.war.name" value="LastPortability.war"/>
<property name="wsdev.notifyGispEvent.war.name" value="NotifyGispEvent.war"/>
<property name="wsdev.esitoCessMnp.war.name" value="esitoCessMnp.war"/>
<property name="wsdev.cessLineaDonor.war.name" value="IBK50richiestaCessazioneLineaDonor.war"/>
<!-- Configurazione per le classi dei WS da O2C -->
<property name="wsdev.o2c.building.path" value="${wsdev.home}/o2c/building" />
<property name="wsdev.esitoRicMvno.war.name" value="esitoRicMvno.war"/>
<!-- define a mapper for Home to DAO -->
<mapper id="DAOMapper" type="glob" from="*Home.java" to="*DAO.java"/>
<patternset id="mnp.web.classes">
<include name="*.txt"/>
<!--
<include name="**/servlets/**/*.class"/>
-->
</patternset>
<patternset id="mnp.ejc.classes">
<include name="**/DbcGoControllerStubEJB*.class"/>
<include name="**/DbcGoFormatDTOException.class"/>
<include name="**/DbcGoData.class"/>
<include name="**/DbcGoMap.class"/>
<include name="**/PriorityRequest.class"/>
<include name="**/MovimentazioneRecipient.class"/>
<include name="**/DbcGoUpdateDco.class"/>
</patternset>
<patternset id="mnp.ejb.classes">
<include name="**/*MSSGUIEJB*.class"/>
<include name="**/*MessageConsumer*.class"/>
<include name="**/*ServizioGwOlo*.class"/>
<include name="**/*RecoveryManager*.class"/>
<include name="**/*MnpCcrmRecuperoOut*.class"/>
<include name="**/*MnpCcrmWebCoopRecuperoOut*.class"/>
<include name="**/*MnpBitRecipientRecuperoOut*.class"/>
<include name="**/*MnpSidRecipientRecuperoOut*.class"/>
<include name="**/*MnpMssCessRecuperoOut*.class"/>
<include name="**/*MnpMssPortingRecuperoOut*.class"/>
<include name="**/*MnpMspRecipientRecuperoOut*.class"/>
<include name="**/*MnpMspCoopRecipientRecuperoOut*.class"/>
<include name="**/*HZMscRecuperoOut*.class"/>
<include name="**/*HZMspRecuperoOut*.class"/>
<include name="**/*TimerExecutorEJB*.class"/>
<include name="**/*HZService*.class"/>
<include name="**/*MessageConsumer*.class"/>
<include name="**/DbcGoControllerStubEJB*.class"/>
<include name="**/DbcGoFormatDTOException.class"/>
<include name="**/DbcGoData.class"/>
<include name="**/DbcGoMap.class"/>
<include name="**/PriorityRequest.class"/>
<include name="**/DbcGoUpdateDco.class"/>
<include name="**/MovimentazioneRecipient.class"/>
<include name="**/ProcessMapper.class"/>
<include name="**/MnpGestioneFileAom*.class"/>
<include name="**/MnpInternalStateEJB*.class"/>
<!-- SERVIZI MDB SULLE CODE ESPOSTE A IB -->
<include name="**/GispAcqServiceEJB.class"/>
<include name="**/MVNOAcqServiceEJB.class"/>
<!-- SERVIZI MDB SULLE CODE ESPOSTE A TRCS -->
<include name="**/TRCSAcqServiceEJB.class"/>
</patternset>
<patternset id="mnp.common.classes">
<include name="**/*.class"/>
<!--
<exclude name="**/servlets/**/*.class"/>
-->
<exclude name="**/*MSSGUIEJB*.class"/>
<exclude name="**/*MessageConsumer*.class"/>
<exclude name="**/*ServizioGwOlo*.class"/>
<exclude name="**/*RecoveryManager*.class"/>
<exclude name="**/*MnpCcrmRecuperoOut*.class"/>
<exclude name="**/*MnpCcrmWebCoopRecuperoOut*.class"/>
<exclude name="**/*MnpBitRecipientRecuperoOut*.class"/>
<exclude name="**/*MnpSidRecipientRecuperoOut*.class"/>
<exclude name="**/*MnpMssCessRecuperoOut*.class"/>
<exclude name="**/*MnpMssPortingRecuperoOut*.class"/>
<exclude name="**/*MnpMspRecipientRecuperoOut*.class"/>
<exclude name="**/*MnpMspCoopRecipientRecuperoOut*.class"/>
<exclude name="**/*HZMscRecuperoOut*.class"/>
<exclude name="**/*HZMspRecuperoOut*.class"/>
<exclude name="**/*TimerExecutorEJB*.class"/>
<exclude name="**/*HZService*.class"/>
<exclude name="**/*MessageConsumer*.class"/>
<exclude name="**/Autentication*.class"/>
<exclude name="**/DbcGoControllerStubEJB*.class"/>
<exclude name="**/DbcGoFormatDTOException.class"/>
<exclude name="**/DbcGoData.class"/>
<exclude name="**/DbcGoMap.class"/>
<exclude name="**/PriorityRequest.class"/>
<include name="**/DbcGoUpdateDco.class"/>
<exclude name="**/MovimentazioneRecipient.class"/>
<exclude name="**/MnpGestioneFileAom*.class"/>
<exclude name="**/MnpInternalStateEJB*.class"/>
<!-- SERVIZI MDB SULLE CODE ESPOSTE A IB -->
<exclude name="**/GispAcqServiceEJB.class"/>
<exclude name="**/MVNOAcqServiceEJB.class"/>
<!-- SERVIZI MDB SULLE CODE ESPOSTE A TRCS -->
<exclude name="**/TRCSAcqServiceEJB.class"/>
</patternset>
<patternset id="crontab.web.classes">
<include name="*.txt"/>
<!--
<include name="**/servlets/**/*.class"/>
-->
</patternset>
<patternset id="crontab.common.classes">
<include name="**/*.class"/>
<exclude name="**/Autentication*.class"/>
<exclude name="**/LoginBeanDTO.class"/>
<exclude name="**/FunctionBeanDTO.class"/>
<exclude name="**/LoginRetCodeIF.class"/>
<exclude name="**/processexecutor/**/*.class"/>
<!--
<exclude name="**/servlets/**/*.class"/>
-->
</patternset>
<patternset id="crontab.ejb.classes">
<include name="**/Autentication*.class"/>
<include name="**/LoginBeanDTO.class"/>
<include name="**/FunctionBeanDTO.class"/>
<include name="**/LoginRetCodeIF.class"/>
</patternset>
<patternset id="crontab.processexecutor.classes">
<include name="**/processexecutor/**/*.class"/>
<include name="**/ClusterRoundRobinServiceLocator.class"/>
<include name="**/ClusterServiceLocator.class"/>
<include name="**/ejbrouter/**/*.class"/>
</patternset>
<patternset id="mnp.serviziogwoloclientR4.classes">
<include name="**/*ServizioGwOloWrapper.class"/>
<include name="**/*ServizioGwOloWrapperHome.class"/>
</patternset>
<patternset id="mnp.serviziogwoloAsichClient.classes">
<include name="**/*ServizioGWOloAsynch.class"/>
<include name="**/*ServizioGWOloAsynchHome.class"/>
</patternset>
<!-- Kit Ottobre 07 - Nuovo pattern-set per il nuovo servizio HZService-->
<patternset id="mnp.HZServiceClient.classes">
<include name="**/*HZService.class"/>
<include name="**/*HZServiceHome.class"/>
</patternset>
<patternset id="mnp.FrontendProxy.classes">
<include name="**/*FrontendProxyEJB.class"/>
<include name="**/*FrontendProxyEJBHome.class"/>
<include name="**/*OutWindowTimeException.class"/>
</patternset>
<patternset id="web.resources">
<exclude name="**/CVS/*"/>
</patternset>
<!-- PATTERN SET PER LE RISORSE DI HIBERNATE -->
<patternset id="mnp.hibernate.hbm.xml">
<include name="**/*.hbm.xml"/>
</patternset>
<!-- LIB per la compilazione WS DBSS -->
<filelist id="mnp.ws.dbss.libs" dir="${mnp.lib.path}">
<file name="WSDBSSCommon.jar"/>
<!-- <file name="WSDBSSCommonResponse"/> -->
<file name="WSDBSS-Response-Client.jar"/>
<file name="WSDBSS-PortingOutMgmt-Client.jar"/>
<file name="WSDBSS-MNPTransferCreditOrderMgmt-Client.jar"/>
<file name="WSPortabilityCommon.jar"/>
<file name="WSNotifyGispEventCommon.jar"/>
<file name="WSDBSS-CustomerQueryResponse-x.jar"/>
</filelist>
<filelist id="mnp.files.classpath" dir="${mnp.lib.path}">
<!-- LIB xml -->
<file name="jaxp-api.jar"/>
<file name="hibernate-dom4j-1.5.2.jar"/>
<file name="xalan.jar"/>
<file name="sax.jar"/>
<file name="hibernate-xerces-2.6.2.jar"/>
<file name="castor-1.3.2-anttasks.jar"/>
<file name="castor-1.3.2-codegen.jar"/>
<file name="castor-1.3.2-core.jar"/>
<file name="castor-1.3.2-ddlgen.jar"/>
<file name="castor-1.3.2-xml-schema.jar"/>
<file name="castor-1.3.2-xml.jar"/>
<file name="castor-1.3.2.jar"/>
<file name="commons-lang-2.1.jar"/>
<file name="jakarta-oro-2.0.8.jar"/>
<!-- LIB sftp-->
<file name="j2ssh-common-0.2.9.jar"/>
<file name="j2ssh-core-0.2.9.jar"/>
<!-- LIB client dbcgo-->
<file name="dbcgo-ejbclient.jar"/>
<!-- LIB sicurezza-->
<file name="security-utility.jar"/>
<!-- LIB databinding-->
<file name="Castor-GispResponse.jar"/>
<file name="Castor-GinoDataBinding-Resp.jar"/>
<file name="Castor-GinoDataBinding-Req.jar"/>
<file name="Castor-MvnoSlaDonDataBinding.jar"/>
<file name="Castor-MvnoSlaRecDataBinding.jar"/>
<file name="Castor-GispRetreive.jar"/>
<file name="Castor-NotificaCCRMWEBCOOP.jar"/>
<file name="Castor-CrmcHZDataBinding.jar"/>
<file name="Castor-BitDataBinding.jar"/>
<file name="Castor-InfoTracciati.jar"/>
<file name="InfoTracciatiFW.jar"/>
<file name="Castor-CCRMWebDataBinding.jar"/>
<file name="Castor-GispDataBinding.jar"/>
<file name="Castor-GispDonorStdDataBinding.jar"/>
<file name="Castor-MvnoDataBinding.jar"/>
<file name="Castor-MSPDataBinding.jar"/>
<file name="Castor-GispHZDataBinding.jar"/>
<file name="Castor-NotificaDBCFX_DBC_HZ.jar"/>
<file name="Castor-AomDataBinding.jar"/>
<file name="Castor-GispRestTP.jar"/>
<file name="WSIBK50client.jar"/>
<file name="WSO2CIBK61Client.jar"/>
<file name="WSEsitoCessMnpCommon.jar"/>
<file name="WSEsitoRicMvnoCommon.jar"/>
<file name="Castor-GispCessTP.jar"/>
<file name="Castor-CrmcPortDataBinding.jar"/>
<!-- wsdl -->
<file name="jaxrpc.jar"/>
<file name="axis.jar"/>
<!-- LIB common-->
<file name="commons-net-1.3.0.jar"/>
<file name="commons-logging-1.1.1.jar"/>
<file name="commons-io-1.3.2.jar"/>
<file name="commons-fileupload-1.2.jar"/>
<file name="jakarta-regexp-1.5.jar"/>
<file name="jug-lgpl-2.0.0.jar"/>
<file name="httpclient-4.5.6.jar"/>
<file name="httpcore-4.4.5.jar"/>
<file name="gson-2.3.1.jar"/>
<!-- x2/2011 INIZIO fenp -->
<file name="Castor-FENPRequest.jar"/>
<file name="Castor-FENPResponse.jar"/>
<file name="Castor-MessageReplyFENP.jar"/>
<file name="GatewayProxy-client.jar"/>
<!-- x10/2o11 sftp per mvno -->
<file name="jsch-0.1.55.jar"/>
<file name="mnpgw-ejbclient.jar"/>
<!-- x2/2011 FINE -->
<!-- DBSS Rientri BU KS9 2015 (W1G1) -->
<file name="WSDBSSCommon.jar"/>
<file name="WSPortabilityCommon.jar"/>
<file name="WSNotifyGispEventCommon.jar"/>
<file name="j2ssh-maverick-1.5.5.jar"/>
</filelist>
<path id="ws.gen.all.classpath">
<filelist refid="mnp.files.classpath"/>
<filelist refid="weblogic.jar"/>
</path>
<!-- LIB per la compilazione degli oggetti di hibernate -->
<filelist id="hibernate.compile.files.classpath" dir="${mnp.lib.path}">
<file name="hibernate-c3p0-0.9.0.jar"/>
<file name="hibernate-cglib-2.1.3.jar"/>
<file name="hibernate-ehcache-1.2.jar"/>
<file name="hibernate3.jar"/>
<file name="hibernate-jgroups-2.2.8.jar"/>
<file name="hibernate-antlr-2.7.6rc1.jar"></file>
<file name="logging.jar"></file>
<file name="log4j-1.2.7.jar"></file>
<file name="hibernate-dom4j-1.5.2.jar"/>
<file name="hibernate-asm.jar"/>
<file name="hibernate-asm-attrs.jar"/>
<file name="hibernate-commons-collections-2.1.1.jar"/>
</filelist>
<!-- LIB per la generazione degli oggetti di hibernate -->
<filelist id="hibernate.gen.files.classpath" dir="${mnp.hibernate.gen.lib.path}" >
<file name="hibernate-tools-MNPcustom.jar"/>
<file name="classes12.jar"/>
<!-- <file name="commons-fileupload.jar"/> -->
<file name="freemarker.jar"/>
<file name="jtidy-r8-20060801.jar"/>
</filelist>
<!-- LIB per la compilazione crontab -->
<filelist id="crontab.files.classpath" dir="${mnp.lib.path}">
<file name="commons-collections.jar"/>
<file name="log4j-1.2.7.jar"/>
<file name="Castor-CrontabConfig.jar"/>
<!-- LIB security log-->
<file name="logging.jar"/>
<file name="datedFileAppender-1.0.2.jar"/>
</filelist>
<filelist id="appmanager.files.classpath" dir="${mnp.lib.path}">
<file name="Castor-SistemiInterni.jar"/>
<file name="Castor-SistemaXML.jar"/>
</filelist>
<filelist id="weblogic.jar" dir="${weblogic.home}/server/lib">
<file name="weblogic.jar"/>
</filelist>
<filelist id="infobus.classpath" dir="${mnp.lib.path}">
<file name="eai_commons-1.0.0.jar"/>
<file name="ejb-ibj-connector-1.0.0.jar"/>
<file name="ib_commons-1.0.0.jar"/>
</filelist>
<!-- Classpath preso dallo startWebLogic.sh -->
<path id="all.classpath">
<!-- MNP -->
<filelist refid="mnp.files.classpath"/>
<filelist refid="weblogic.jar"/>
<filelist refid="hibernate.compile.files.classpath"/>
<!-- LIB SSL AIX x compilazione su WINDOWS-->
<fileset dir="${mnp.lib.path}">
<include name="ibmjsseprovider.jar" if="isWindowsOs"/>
</fileset>
<!-- Crontab specific (forse) -->
<filelist refid="crontab.files.classpath"/>
<!-- App-Manager specific (forse) -->
<filelist refid="appmanager.files.classpath"/>
<!-- Infobus -->
<filelist refid="infobus.classpath"/>
<!-- Crontab classes -->
<pathelement path="${crontab.classes.path}"/>
<!-- MNP classes -->
<pathelement path="${mnp.classes.path}"/>
<!-- Java compiler tools.jar -->
<pathelement location="${sdk.home}/lib/tools.jar"/>
<!-- WS DBSS -->
<filelist refid="mnp.ws.dbss.libs"/>
</path>
<!-- Classpath preso dallo startWebLogic.sh END -->
<path id="hibernate.gen.all.claspath">
<filelist refid="mnp.files.classpath"/>
<filelist refid="hibernate.gen.files.classpath"/>
<filelist refid="hibernate.compile.files.classpath"/>
<filelist refid="weblogic.jar"/>
</path >
<!-- DEFINIZIONE TASK PER CREAZIONE ARTEFATTI SERVER WEB SERVICE -->
<taskdef name="jwsc" classname="weblogic.wsee.tools.anttasks.JwscTask" classpathref="ws.gen.all.classpath" />
<taskdef name="wsdlc" classname="weblogic.wsee.tools.anttasks.WsdlcTask" classpathref="ws.gen.all.classpath"/>
<!-- ################################################################################ -->
<!-- ################################################################################ -->
<!-- ################################################################################ -->
<target name="test">
<echo>
isWindowsOs=${isWindowsOs}
isWindowsXpOs=${isWindowsXpOs}
isAixOs=${isAixOs}
isUnix=${isUnix}
user.name=${user.name}
prop.file.path=${prop.file.path}
build.prop.file=${build.prop.file}
</echo>
</target>
<target name="echo">
<echo>
Starting build using:
sdk.home= ${sdk.home}
weblogic.home= ${weblogic.home}
project.home= ${project.home}
mnp.lib.path= ${mnp.lib.path}
build.prop.file= ${build.prop.file}
</echo>
<input
message="Ok to continue? "
validargs="y,n"
addproperty="do.continue"
/>
<condition property="do.abort">
<equals arg1="n" arg2="${do.continue}"/>
</condition>
<fail if="do.abort">Build aborted by user.</fail>
</target>
<target name="init">
<tstamp prefix="start"/>
<echo>
Build started at: ${start.DSTAMP} ${start.TSTAMP}
-----------------
sdk.home= ${sdk.home}
weblogic.home= ${weblogic.home}
project.home= ${project.home}
mnp.lib.path= ${mnp.lib.path}
build.prop.file= ${build.prop.file}
</echo>
<delete dir="${building.path}"/>
<mkdir dir="${building.path}"/>
<mkdir dir="${mnp.classes.path}"/>
<mkdir dir="${crontab.classes.path}"/>
<mkdir dir="${building.path}/mnp-gui-war/WEB-INF/classes" />
<mkdir dir="${building.path}/crontab-gui-war/WEB-INF/classes" />
<mkdir dir="${building.path}/mnp-webaom-war/WEB-INF/classes" />
<mkdir dir="${building.path}/crontab-processexecutor-jar" />
<mkdir dir="${building.path}/mnp-ejbmodule-jar" />
<mkdir dir="${building.path}/mnp-ejbclient-jar" />
<mkdir dir="${building.path}/mnp-ear/APP-INF/classes" />
<mkdir dir="${building.path}/mnp-ear/APP-INF/lib" />
<!--
<copy todir="${building.path}/jar">
<fileset dir="${build.path}">
<include name="META-INF/**"/>
</fileset>
</copy>
-->
</target>
<target name="compile_crontab" depends="init">
<echo>
Compiling Crontab
-----------------
</echo>
<javac srcdir="${crontab.src.path}"
destdir="${crontab.classes.path}"
debug="on"
debuglevel="lines,vars,source"
deprecation="off"
failonerror="true"
includeantruntime="false">
<classpath refid="all.classpath"/>
</javac>
</target>
<target name="compile_mnp" depends="compile_crontab">
<echo>
Compiling MNP
-------------
</echo>
<javac srcdir="${mnp.src.path}"
destdir="${mnp.classes.path}"
debug="on"
deprecation="off"
failonerror="true"
includeantruntime="false">
<classpath refid="all.classpath"/>
</javac>
</target>
<target name="compile" depends="compile_mnp"/>
<target name="jar_crontab_common" depends="compile">
<jar destfile="${building.path}/crontab-common.jar" >
<fileset dir="${crontab.classes.path}">
<patternset refid="crontab.common.classes"/>
</fileset>
</jar>
</target>
<target name="jar_mnp_common" depends="jar_crontab_common">
<jar destfile="${building.path}/mnp-common.jar" >
<fileset dir="${mnp.classes.path}">
<patternset refid="mnp.common.classes"/>
</fileset>
<fileset dir="${mnp.src.path}">
<patternset refid="mnp.hibernate.hbm.xml"/>
</fileset>
</jar>
<antcall target="cobertura-instrumenting"/>
</target>
<target name="cobertura-instrumenting" if="instrument-with-cobertura">
<echo>
COBERTURA: Instrumenting common-mnp.jar
ATTENZIONE!!!!!!!!!!!! il classpath dell'as deve contenere il cobertura.jar e deve essere presente la servlet per lo
scaricamento dei dati
-------------
</echo>
<mkdir dir="${instrumented.dir}" />
<cobertura-instrument datafile="${basedir}/cobertura.ser" todir="${instrumented.dir}">
<fileset dir="${building.path}">
<include name="mnp-common.jar" />
</fileset>
</cobertura-instrument>
<echo>
COBERTURA: ricopro il jar con quello instrumentato
-------------
</echo>
<copy file="${instrumented.dir}/mnp-common.jar" tofile="${building.path}/mnp-common.jar" overwrite="true"/>
<echo>
COBERTURA: copio il ser
-------------
</echo>
<copy file="${basedir}/cobertura.ser" tofile="${bea.domain}/cobertura.ser" overwrite="true"/>
</target>
<target name="jar_mnp_serviziogwoloR4_client" depends="compile">
<jar destfile="${building.path}/serviziogwoloR4-client.jar" >
<fileset dir="${mnp.classes.path}">
<patternset refid="mnp.serviziogwoloclientR4.classes"/>
</fileset>
</jar>
</target>
<target name="jar_mnp_serviziogwoloAsinch_client" depends="compile">
<jar destfile="${building.path}/serviziogwoloAsinch-client.jar" >
<fileset dir="${mnp.classes.path}">
<patternset refid="mnp.serviziogwoloAsichClient.classes"/>
</fileset>
</jar>
</target>
<target name="jar_mnp_HZService_client" depends="compile">
<jar destfile="${building.path}/hzService-client.jar" >
<fileset dir="${mnp.classes.path}">
<patternset refid="mnp.HZServiceClient.classes"/>
</fileset>
</jar>
</target>
<target name="jar_mnp_FeProxy" depends="compile">
<jar destfile="${building.path}/FrontendProxy-client.jar" >
<fileset dir="${mnp.classes.path}">
<patternset refid="mnp.FrontendProxy.classes"/>
</fileset>
</jar>
</target>
<target name="jar" depends="jar_crontab_common,jar_mnp_common,jar_mnp_serviziogwoloR4_client,jar_mnp_serviziogwoloAsinch_client,jar_mnp_HZService_client,jar_mnp_FeProxy"/>
<target name="war_crontab" depends="compile">
<copy todir="${building.path}/crontab-gui-war">
<fileset dir="${crontab.web.path}">
<patternset refid="web.resources"/>
</fileset>
</copy>
<copy todir="${building.path}/crontab-gui-war/WEB-INF/classes">
<fileset dir="${crontab.classes.path}">
<patternset refid="crontab.web.classes"/>
</fileset>
</copy>
<war destfile="${building.path}/crontab-gui.war" webxml="${building.path}/crontab-gui-war/WEB-INF/web.xml">
<fileset dir="${building.path}/crontab-gui-war"/>
</war>
</target>
<target name="war_mnp" depends="compile">
<copy todir="${building.path}/mnp-gui-war">
<fileset dir="${mnp.web.path}">
<patternset refid="web.resources"/>
</fileset>
</copy>
<copy todir="${building.path}/mnp-gui-war/WEB-INF/classes">
<fileset dir="${mnp.classes.path}">
<patternset refid="mnp.web.classes"/>
</fileset>
</copy>
<war destfile="${building.path}/mnp-gui.war" webxml="${building.path}/mnp-gui-war/WEB-INF/web.xml">
<fileset dir="${building.path}/mnp-gui-war"/>
</war>
</target>
<target name="war_mnpaom" depends="compile">
<copy todir="${building.path}/mnp-webaom-war">
<fileset dir="${mnp.webaom.path}">
<patternset refid="web.resources"/>
</fileset>
</copy>
<copy todir="${building.path}/mnp-webaom-war/WEB-INF/classes">
<fileset dir="${mnp.classes.path}">
<patternset refid="mnp.web.classes"/>
</fileset>
</copy>
<war destfile="${building.path}/mnp-webaom.war" webxml="${building.path}/mnp-webaom-war/WEB-INF/web.xml">
<fileset dir="${building.path}/mnp-webaom-war"/>
</war>
</target>
<target name="war" depends="war_crontab,war_mnp,war_mnpaom"/>
<target name="jar_ejb" depends="compile">
<copy todir="${building.path}/mnp-ejbmodule-jar">
<fileset dir="${mnp.ejb.path}">
<patternset refid="web.resources"/>
</fileset>
<fileset dir="${mnp.classes.path}">
<patternset refid="mnp.ejb.classes"/>
</fileset>
<fileset dir="${crontab.classes.path}">
<patternset refid="crontab.ejb.classes"/>
</fileset>
</copy>
<jar destfile="${building.path}/mnp-ejbmodule-src.jar">
<fileset dir="${building.path}/mnp-ejbmodule-jar"/>
</jar>
<java fork="true" failonerror="true" classname="weblogic.ejbc">
<classpath refid="all.classpath"/>
<arg value="${building.path}/mnp-ejbmodule-src.jar"/>
<arg value="${building.path}/mnp-ejbmodule.jar"/>
</java>
</target>
<target name="jar_crontab_processexecutor" depends="jar_ejb">
<copy todir="${building.path}/crontab-processexecutor-jar">
<fileset dir="${crontab.ejb.path}">
<patternset refid="web.resources"/>
</fileset>
<fileset dir="${crontab.classes.path}">
<patternset refid="crontab.processexecutor.classes"/>
</fileset>
</copy>
<jar destfile="${building.path}/crontab-processexecutor-src.jar" >
<fileset dir="${building.path}/crontab-processexecutor-jar"/>
</jar>
<java fork="true" failonerror="true" classname="weblogic.ejbc">
<classpath refid="all.classpath"/>
<arg value="${building.path}/crontab-processexecutor-src.jar"/>
<!-- modulo jar risultante -->
<arg value="${building.path}/process-executor.jar"/>
</java>
</target>
<target name="jar_ejb_client" depends="jar_crontab_processexecutor">
<unzip src="${building.path}/mnp-ejbmodule.jar" dest="${building.path}/mnp-ejbclient-jar">
<patternset>
<include name="**/DbcGoControllerStubEJB*.class"/>
<include name="**/DbcGoData.class"/>
<include name="**/DbcGoMap.class"/>
<include name="**/PriorityRequest.class"/>
<include name="**/DbcGoFormatDTOException.class"/>
<include name="**/DbcGoUpdateDco.class"/>
<include name="**/MovimentazioneRecipient.class"/>
<include name="**/ProcessMapper.class"/>
<include name="**/Autentication*.class"/>
<include name="**/LoginBeanDTO.class"/>
<include name="**/FunctionBeanDTO.class"/>
<include name="**/LoginRetCodeIF.class"/>
<exclude name="**/DbcGoControllerStubEJBBean.class"/>
<exclude name="**/AutenticationBean.class"/>
</patternset>
</unzip>
<jar destfile="${building.path}/mnp-ejbclient.jar" >
<fileset dir="${building.path}/mnp-ejbclient-jar" />
</jar>
</target>
<target name="ear" depends="jar,war,jar_ejb,jar_ejb_client,buildDBssService,buildLastPortService,buildNotifyGispEventService,buildEsitoCessMnpService,buildEsitoRicMvnoService">
<copy todir="${building.path}/mnp-ear">
<fileset dir="${mnp.ear.path}">
<patternset refid="web.resources"/>
</fileset>
</copy>
<copy todir="${building.path}/mnp-ear" file="${building.path}/mnp-ejbmodule.jar"/>
<copy todir="${building.path}/mnp-ear" file="${building.path}/mnp-gui.war"/>
<copy todir="${building.path}/mnp-ear" file="${building.path}/crontab-gui.war"/>
<copy todir="${building.path}/mnp-ear" file="${building.path}/mnp-webaom.war"/>
<copy todir="${building.path}/mnp-ear" file="${building.path}/process-executor.jar"/>
<!--<copy todir="${building.path}/mnp-ear/APP-INF/lib">
<fileset dir="${mnp.lib.path}">
<patternset refid="jar.resources"/>
</fileset>
</copy>-->
<copy todir="${building.path}/mnp-ear/APP-INF/lib" file="${building.path}/mnp-common.jar"/>
<copy todir="${building.path}/mnp-ear/APP-INF/lib" file="${building.path}/crontab-common.jar"/>
<ear destfile="${building.path}/mnp.ear" appxml="${mnp.ear.path}/META-INF/application.xml">
<fileset dir="${building.path}/mnp-ear"/>
</ear>
</target>
<target name="cleanup" depends="ear">
<mkdir dir="${build.path}/deploy_${start.DSTAMP}_${start.TSTAMP}" />
<copy todir="${build.path}/deploy_${start.DSTAMP}_${start.TSTAMP}" file="${building.path}/mnp.ear"/>
<copy todir="${build.path}/deploy_${start.DSTAMP}_${start.TSTAMP}" file="${building.path}/mnp-ejbmodule.jar"/>
<copy todir="${build.path}/deploy_${start.DSTAMP}_${start.TSTAMP}" file="${building.path}/mnp-common.jar"/>
<copy todir="${build.path}/deploy_${start.DSTAMP}_${start.TSTAMP}" file="${building.path}/crontab-common.jar"/>
<copy todir="${build.path}/deploy_${start.DSTAMP}_${start.TSTAMP}" file="${building.path}/serviziogwoloR4-client.jar"/>
<copy todir="${build.path}/deploy_${start.DSTAMP}_${start.TSTAMP}" file="${building.path}/serviziogwoloAsinch-client.jar"/>
<copy todir="${build.path}/deploy_${start.DSTAMP}_${start.TSTAMP}" file="${building.path}/mnp-ejbclient.jar"/>
<copy todir="${build.path}/deploy_${start.DSTAMP}_${start.TSTAMP}" file="${building.path}/hzService-client.jar"/>
<copy todir="${build.path}/deploy_${start.DSTAMP}_${start.TSTAMP}" file="${building.path}/process-executor.jar"/>
<copy todir="${build.path}/deploy_${start.DSTAMP}_${start.TSTAMP}" file="${building.path}/FrontendProxy-client.jar"/>
<copy todir="${tst-dir}/mnplib" file="${building.path}/mnp-ejbmodule.jar"/>
<copy todir="${tst-dir}/mnplib" file="${building.path}/mnp-common.jar"/>
<copy todir="${tst-dir}/mnplib" file="${building.path}/crontab-common.jar"/>
<copy todir="${tst-dir}/mnplib" file="${building.path}/serviziogwoloR4-client.jar"/>
<copy todir="${tst-dir}/mnplib" file="${building.path}/serviziogwoloAsinch-client.jar"/>
<copy todir="${tst-dir}/mnplib" file="${building.path}/mnp-ejbclient.jar"/>
<copy todir="${tst-dir}/mnplib" file="${building.path}/hzService-client.jar"/>
<copy todir="${tst-dir}/mnplib" file="${building.path}/process-executor.jar"/>
<copy todir="${tst-dir}/mnplib" file="${building.path}/FrontendProxy-client.jar"/>
<delete dir="${building.path}"/>
</target>
<target name="ftp">
<ftp server="svi-babele"
remotedir="/dbarea/beamnp/linkedDomain/mnp4/applications/"
userid="beamnp"
password="beamnp"
binary="yes">
<fileset file="file://mnp.ear"/>
</ftp>
</target>
<target name="speaker" if="isWindowsOs" unless="fun.done" depends="cleanup">
<sound>
<success source="${env.ANT_HOME}/sounds/all_systems_functioning.wav"/>
<fail source="${env.ANT_HOME}/sounds/system_alert.wav" loops="2"/>
</sound>
<property name="fun.done" value="true"/>
</target>
<!-- TARGET PER LA CREAZIONE DEI DTO E FILE XML DI MAPPING-->
<target name="hibernateGenDto">
<echo>
Creating Hibernate DTO Objects and XML Mapping
-------------
</echo>
<!-- DEFINIZIONE TASK GENERAZIONE XML E POJO -->
<taskdef name="hibernatetoolGenPojoXml"
classname="org.hibernate.tool.ant.HibernateToolTask"
classpathref="hibernate.gen.all.claspath"
/>
<!-- DEFINIZIONE TASK GENERAZIONE XML E POJO PER LE TABELLE CON FK-->
<taskdef name="hibernatetoolFKGenPojoXml"
classname="org.hibernate.tool.ant.HibernateToolTask"
classpathref="hibernate.gen.all.claspath"
/>
<!-- IMPLEMENTAZIONE TASK GENERAZIONE XML E POJO-->
<hibernatetoolGenPojoXml >
<jdbcconfiguration
configurationfile="${mnp.hibernate.gen.configFile}"
revengfile="${mnp.hibernate.gen.revengeFile}"
detectmanytomany="false"
detectoptimisticlock="true"/>
<hbm2hbmxml destdir="${mnp.hibernatePojoXml.destdir.path}"/>
<hbm2java destdir="${mnp.hibernatePojoXml.destdir.path}" />
</hibernatetoolGenPojoXml>
<!-- IMPLEMENTAZIONE TASK GENERAZIONE XML E POJO LE TABELLE CON FK -->
<hibernatetoolFKGenPojoXml >
<jdbcconfiguration
configurationfile="${mnp.hibernate.gen.configFile}"
revengfile="${mnp.hibernate.gen.revengeFileFK}"
detectmanytomany="false"
detectoptimisticlock="true"/>
<hbm2hbmxml destdir="${mnp.hibernatePojoXml.destdir.path}"/>
<hbm2java destdir="${mnp.hibernatePojoXml.destdir.path}"/>
</hibernatetoolFKGenPojoXml>
</target>
<!-- FINE TARGET PER LA CREAZIONE DEI DTO E FILE XML DI MAPPING-->
<!-- INIZIO DEI TARGET PER LA GESTIONE DELLA CREAZIONE DEI DAO-->
<target name="hibernateDAO">
<echo>
Creating Hibernate DAO Objects -
ATTENZIONE VERRANNO GENERATI I DAO STANDARD ELIMINADO COSI' LE PERSONALIZZAZIONI
-------------
</echo>
<!-- DEFINIZIONE TASK GENERAZIONE DAO -->
<taskdef name="hibernatetoolGenDAO"
classname="org.hibernate.tool.ant.HibernateToolTask"
classpathref="hibernate.gen.all.claspath"
/>
<!-- DEFINIZIONE TASK GENERAZIONE DAO PER LE TABELLE CON FK-->
<taskdef name="hibernatetoolFKGenDAO"
classname="org.hibernate.tool.ant.HibernateToolTask"
classpathref="hibernate.gen.all.claspath"
/>
<!-- IMPLEMENTAZIONE TASK GENERAZIONE DAO-->
<hibernatetoolGenDAO >
<jdbcconfiguration
configurationfile="${mnp.hibernate.gen.configFile}"
revengfile="${mnp.hibernate.gen.revengeFile}"
detectmanytomany="false"
detectoptimisticlock="true"/>
<hbm2dao destdir="${mnp.hibernateDAO.destdir.path}"/>
</hibernatetoolGenDAO>
<!-- IMPLEMENTAZIONE TASK GENERAZIONE DAO LE TABELLE CON FK -->
<hibernatetoolFKGenDAO >
<jdbcconfiguration
configurationfile="${mnp.hibernate.gen.configFile}"
revengfile="${mnp.hibernate.gen.revengeFileFK}"
detectmanytomany="false"
detectoptimisticlock="true"/>
<hbm2dao destdir="${mnp.hibernateDAO.destdir.path}"/>
</hibernatetoolFKGenDAO>
</target>
<target name="hibernateGenDao" depends="hibernateDAO">
<echo>
Renaming Hibernate DAO
-------------
</echo>
<taskdef name="move"
classname="org.apache.tools.ant.taskdefs.Move"
classpathref="hibernate.gen.all.claspath"/>
<move todir="${mnp.hibernateDAO.destdir.path}">
<!-- the files to move -->
<fileset dir="${mnp.hibernateDAO.destdir.path}">
<include name="**/*Home.java" />
</fileset>
<mapper refid="DAOMapper" />
</move>
</target>
<!-- FINE DEI TARGET PER LA GESTIONE DELLA CREAZIONE DEI DAO-->
<!--
<target name="deploy">
<wldeploy action="deploy"
source="file://mnp.ear"
name="mnp.ear"
user="weblogic"
password="weblogic"
adminurl="t3://svi-babele:7801"
remote="true"
debug="true"
verbose="true"
targets="mnpserver"/>
</target>
<target name="deploy2">
<wldeploy action="deploy"
source="file://mnp.ear"
name="mnp.ear"
user="weblogic"
password="weblogic"
adminurl="t3://svi-babele:7801"
remote="true"
debug="true"
verbose="true"
targets="mnpserver"/>
</target>
<taskdef name="wldeploy"
classname="weblogic.ant.taskdefs.management.WLDeploy"
classpath="${weblogic.home}/server/lib/weblogic.jar"/>
<taskdef name="mydeploy"
classname="weblogic.Deployer"
classpath="${weblogic.home}/server/lib/weblogic.jar"/>
-->
<!-- <target name="coverage-reports">
<mkdir dir="${coverage.xml.dir}" />
<cobertura-report datafile="${bea.domain}/cobertura.ser" srcdir="${src.dir}" destdir="${coverage.xml.dir}" format="xml" />
<mkdir dir="${coverage.html.dir}" />
<cobertura-report datafile="${bea.domain}/cobertura.ser" destdir="${coverage.html.dir}">
<fileset dir="${src.dir}">
<include name="**/*.java" />
</fileset>
</cobertura-report>
</target> -->
<target name="buildDBssService" depends="init">
<jwsc
srcdir="${wsdev.wssrc.path}"
destdir="${wsdev.dbss.building.path}"
keepGenerated="true"
classpathref="all.classpath"
debug="on"
>
<module name="MobileNumberPortabilityMgmt">
<jws file="mnp/proxy/ws/dbss/MobileNumberPortabilityMgmtPortTypeImpl.java" compiledWsdl="${mnp.ear.path}/APP-INF/lib/WSDBSSCommon.jar"/>
</module>
</jwsc>
<copy todir="${building.path}/mnp-ear" file="${wsdev.dbss.building.path}/${wsdev.dbss.war.name}"/>
</target>
<target name="buildLastPortService" depends="init">
<echo>
-------------
buildLastPortService
-------------
</echo>
<jwsc
srcdir="${wsdev.wssrc.path}"
destdir="${wsdev.dbss.building.path}"
keepGenerated="true"
classpathref="all.classpath"
debug="on"
>
<module name="lastPortability">
<jws file="mnp/proxy/ws/portabilitystate/LastPortabilityPortTypeImpl.java" compiledWsdl="${mnp.ear.path}/APP-INF/lib/WSPortabilityCommon.jar"/>
</module>
</jwsc>
<copy todir="${building.path}/mnp-ear" file="${wsdev.dbss.building.path}/${wsdev.lastPortability.war.name}"/>
</target>
<target name="buildNotifyGispEventService" depends="init">
<echo>
-------------
buildNotifyGispEventService
-------------
</echo>
<jwsc
srcdir="${wsdev.wssrc.path}"
destdir="${wsdev.gisp.building.path}"
keepGenerated="true"
classpathref="all.classpath"
debug="on"
>
<module name="notifyGispEvent">
<jws file="mnp/proxy/ws/gisp/NotifyGispEventPortTypeImpl.java" compiledWsdl="${mnp.ear.path}/APP-INF/lib/WSNotifyGispEventCommon.jar"/>
</module>
</jwsc>
<copy todir="${building.path}/mnp-ear" file="${wsdev.gisp.building.path}/${wsdev.notifyGispEvent.war.name}"/>
</target>
<target name="buildEsitoCessMnpService" depends="init">
<echo>
-------------
buildNotifyGispEventService
-------------
</echo>
<jwsc
srcdir="${wsdev.wssrc.path}"
destdir="${wsdev.gisp.building.path}/esito"
keepGenerated="true"
classpathref="all.classpath"
debug="on"
>
<module name="esitoCessMnp">
<jws file="mnp/proxy/ws/gisp/EsitoCessMnpPortTypeImpl.java" compiledWsdl="${mnp.ear.path}/APP-INF/lib/WSEsitoCessMnpCommon.jar"/>
</module>
</jwsc>
<copy todir="${building.path}/mnp-ear" file="${wsdev.gisp.building.path}/esito/${wsdev.esitoCessMnp.war.name}"/>
</target>
<target name="buildEsitoRicMvnoService" depends="init">
<echo>
-------------
-------------
</echo>
<jwsc
srcdir="${wsdev.wssrc.path}"
destdir="${wsdev.o2c.building.path}/esitoRicMvno"
keepGenerated="true"
classpathref="all.classpath"
debug="on"
>
<module name="esitoRicMvno">
<jws file="mnp/proxy/ws/o2c/EsitoRicMvnoPortTypeImpl.java" compiledWsdl="${mnp.ear.path}/APP-INF/lib/WSEsitoRicMvnoCommon.jar"/>
</module>
</jwsc>
<copy todir="${building.path}/mnp-ear" file="${wsdev.o2c.building.path}/esitoRicMvno/${wsdev.esitoRicMvno.war.name}"/>
</target>
</project>