Files
gateway-mnp-dbc/dbcmnpsrc/FE/mnpdev/build/build_dbcgo.xml
2024-05-13 12:54:14 +02:00

514 lines
16 KiB
XML

<project name="mnp" default="speaker" basedir=".">
<property environment="env"/>
<property file="build_dbcgo.properties"/>
<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.ejb.path" value="${project.home}/mnp/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.web.path" value="${project.home}/crontab/web"/>
<property name="crontab.classes.path" value="${building.path}/crontab-classes"/>
<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"/>
</patternset>
<patternset id="mnp.ejb.classes">
<include name="**/*MSSGUIEJB*.class"/>
<include name="**/*MessageConsumer*.class"/>
<include name="**/*ServizioGwOlo*.class"/>
<include name="**/*MSSControllerStubEJB*.class"/>
<include name="**/*RecoveryManager*.class"/>
<include name="**/*MnpCcrmRecuperoOut*.class"/>
<include name="**/*MnpBitRecipientRecuperoOut*.class"/>
<include name="**/*MnpSidRecipientRecuperoOut*.class"/>
<include name="**/*MnpMssCessRecuperoOut*.class"/>
<include name="**/*MnpMssPortingRecuperoOut*.class"/>
<include name="**/*MnpMspRecipientRecuperoOut*.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"/>
</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="**/*MSSControllerStubEJB*.class"/>
<exclude name="**/*RecoveryManager*.class"/>
<exclude name="**/*MnpCcrmRecuperoOut*.class"/>
<exclude name="**/*MnpBitRecipientRecuperoOut*.class"/>
<exclude name="**/*MnpSidRecipientRecuperoOut*.class"/>
<exclude name="**/*MnpMssCessRecuperoOut*.class"/>
<exclude name="**/*MnpMssPortingRecuperoOut*.class"/>
<exclude name="**/*MnpMspRecipientRecuperoOut*.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"/>
</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="**/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="mnp.serviziogwoloclientR4.classes">
<include name="**/*ServizioGwOloWrapper.class"/>
<include name="**/*ServizioGwOloWrapperHome.class"/>
</patternset>
<patternset id="web.resources">
<exclude name="**/CVS/*"/>
</patternset>
<patternset id="jar.resources">
<include name="*login_crypto.jar"/>
<include name="*jaxp-api.jar"/>
<include name="*dom.jar"/>
<include name="*xalan.jar"/>
<include name="*sax.jar"/>
<include name="*xercesImpl.jar"/>
<!--
<include name="*xerces.jar"/>
-->
<include name="*castor-0.9.4.3.jar"/>
<include name="*databinding.jar"/>
<include name="*jakarta-regexp-1.1.jar"/>
<include name="*j2ssh-common-0.2.6.jar"/>
<include name="*j2ssh-core-0.2.6.jar"/>
<include name="*commons-collections.jar"/>
<include name="*log4j-1.2.7.jar"/>
<include name="*Castor-CrontabConfig.jar"/>
<include name="*Castor-SistemiInterni.jar"/>
<include name="*Castor-SistemaXML.jar"/>
<!-- LIB IB R4 -->
<include name="*eai_commons-1.0.0.jar"/>
<include name="*ejb-ibj-connector-1.0.0.jar"/>
<include name="*ib_commons-1.0.0.jar"/>
<!-- LIB DBCGO CLIENT -->
<include name="*dbcgo-ejbclient.jar"/>
<!-- LIB SSL AIX x compilazione su WINDOWS-->
<include name="*ibmjsseprovider.jar"/>
</patternset>
<filelist id="mnp1.files.classpath" dir="${mnp.lib.path}">
<file name="login_crypto.jar"/>
<file name="jaxp-api.jar"/>
<file name="dom.jar"/>
<file name="xalan.jar"/>
<file name="sax.jar"/>
<file name="xercesImpl.jar"/>
<!--
<file name="xerces.jar"/>
-->
</filelist>
<filelist id="mnp2.files.classpath" dir="${mnp.lib.path}">
<file name="castor-0.9.4.3.jar"/>
<file name="databinding.jar"/>
<file name="jakarta-regexp-1.1.jar"/>
<file name="j2ssh-common-0.2.6.jar"/>
<file name="j2ssh-core-0.2.6.jar"/>
<file name="dbcgo-ejbclient.jar"/>
<!-- LIB SSL AIX x compilazione su WINDOWS-->
<file name="ibmjsseprovider.jar"/>
</filelist>
<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"/>
</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.jar" dir="${mnp.lib.path}">
<!--file name="InfobusEJBWTC.jar"/-->
<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="mnp1.files.classpath"/>
<filelist refid="weblogic.jar"/>
<filelist refid="mnp2.files.classpath"/>
<!-- Crontab specific (forse) -->
<filelist refid="crontab.files.classpath"/>
<!-- App-Manager specific (forse) -->
<filelist refid="appmanager.files.classpath"/>
<!-- Infobus -->
<filelist refid="infobus.jar"/>
<!-- 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 -->
<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}
</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}
-----------------
</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-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" 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>
</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" depends="jar_crontab_common,jar_mnp_common,jar_mnp_serviziogwoloR4_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" depends="war_crontab,war_mnp"/>
<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_ejb_client" depends="jar_ejb">
<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="**/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/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}/mnp-ejbclient.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" 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 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>