First Commit - Source Code from Reply

This commit is contained in:
vincenzofariello
2024-05-13 12:54:14 +02:00
parent 73e32a5020
commit a15aee1f08
11184 changed files with 1065913 additions and 0 deletions

View File

@@ -0,0 +1,828 @@
<project name="mnp" default="speaker" basedir=".">
<condition property="isWindowsOs">
<os family="windows"/>
</condition>
<condition property="isWindowsXpOs">
<os family="windows" name="Windows XP"/>
</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 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"/>
<!-- 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="web.resources">
<exclude name="**/CVS/*"/>
</patternset>
<!-- PATTERN SET PER LE RISORSE DI HIBERNATE -->
<patternset id="mnp.hibernate.hbm.xml">
<include name="**/*.hbm.xml"/>
</patternset>
<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.0.5-xml.jar"/>
<file name="jakarta-oro-2.0.5.jar"/>
<file name="databinding.jar"/>
<!-- LIB sftp-->
<file name="j2ssh-common-0.2.6.jar"/>
<file name="j2ssh-core-0.2.6.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-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-MvnoDataBinding.jar"/>
<file name="Castor-MSPDataBinding.jar"/>
<file name="Castor-GispHZDataBinding.jar"/>
<file name="Castor-NotificaDBCFX_DBC_HZ.jar"/>
<file name="Castor-AomDataBinding.jar"/>
<!-- LIB common-->
<file name="commons-net-1.3.0.jar"/>
<file name="commons-logging-1.1.jar"/>
<file name="jakarta-regexp-1.1.jar"/>
<file name="jug-lgpl-2.0.0.jar"/>
</filelist>
<!-- 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"/>
</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 >
<!-- ################################################################################ -->
<!-- ################################################################################ -->
<!-- ################################################################################ -->
<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">
<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">
<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>
</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" depends="jar_crontab_common,jar_mnp_common,jar_mnp_serviziogwoloR4_client,jar_mnp_serviziogwoloAsinch_client,jar_mnp_HZService_client"/>
<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">
<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="${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"/>
<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"/>
-->
</project>