517 lines
19 KiB
XML
517 lines
19 KiB
XML
<project name="mnp" default="all" 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 environment="env" />
|
|
|
|
<property name="build.prop.file" value="${build.prop.file.path}/build_${user.name}.properties"/>
|
|
<property file="${build.prop.file}"/>
|
|
|
|
<property name="build.path" value="${project.home}/target"/>
|
|
<property name="building.path" value="${build.path}/building"/>
|
|
|
|
<property name="dbcgo.web.path" value="../${project.home}/dbcgo"/>
|
|
<property name="dbcgo.ejb.path" value="../${project.home}/dbcgom"/>
|
|
<property name="dbcgo.ear.path" value="${project.home}"/>
|
|
|
|
<property name="dbcgo.web.classes.path" value="${building.path}/web-classes"/>
|
|
<property name="dbcgo.ejb.classes.path" value="${building.path}/ejb-classes"/>
|
|
<property name="dbcgo.ear.classes.path" value="${building.path}/ear-classes"/>
|
|
|
|
<property name="dbcgo.web.compile.path" value="${building.path}/web"/>
|
|
<property name="dbcgo.ejb.compile.path" value="${building.path}/ejb"/>
|
|
<property name="dbcgo.ear.compile.path" value="${building.path}/ear"/>
|
|
<property name="dbcgo.ejc.compile.path" value="${building.path}/ejc"/>
|
|
|
|
<property name="dbcgo.web.src.path" value="${dbcgo.web.path}/src"/>
|
|
<property name="dbcgo.ejb.src.path" value="${dbcgo.ejb.path}/src"/>
|
|
<property name="dbcgo.ear.src.path" value="${dbcgo.ear.path}/src"/>
|
|
|
|
<property name="dbcgo.web.res.path" value="${dbcgo.web.path}/WebRoot"/>
|
|
<property name="dbcgo.ejb.res.path" value="${dbcgo.ejb.path}/res"/>
|
|
<property name="dbcgo.ear.res.path" value="${dbcgo.ear.path}/res"/>
|
|
|
|
<property name="dbcgo.web.lib.path" value="${dbcgo.web.res.path}/WEB-INF/lib"/>
|
|
<!-- <property name="dbcgo.ejb.lib.path" value="${dbcgo.ejb.res.path}/WEB-INF/lib"/> -->
|
|
<property name="dbcgo.ear.lib.path" value="${dbcgo.ear.res.path}/APP-INF/lib"/>
|
|
|
|
<!-- Configurazione per le classi generate da hibernate HIBERNATE -->
|
|
<property name="dbcgo.model.src.path" value="../${project.home}/dbcgom/src"/>
|
|
|
|
<property name="dbcgo.hibernateDAO.destdir.path" value="${dbcgo.model.src.path}/it/valueteam/dbcgo/hb/dao"/>
|
|
<property name="dbcgo.hibernatePojoXml.destdir.path" value="${dbcgo.model.src.path}/it/valueteam/dbcgo/hb/dto"/>
|
|
<property name="dbcgo.hibernate.gen.configFile" value="${project.home}/hibernate/hibernateGen.cfg.xml"/>
|
|
<property name="dbcgo.hibernate.gen.revengeFile" value="${project.home}/hibernate/hibernate.reveng.xml"/>
|
|
<property name="dbcgo.hibernate.gen.revengeFileFK" value="${project.home}/hibernate/hibernateFK.reveng.xml"/>
|
|
<property name="dbcgo.hibernate.gen.lib.path" value="${project.home}/hibernate/genLib"/>
|
|
<!-- define a mapper for Home to DAO -->
|
|
<mapper id="DAOMapper" type="glob" from="*Home.java" to="*DAO.java"/>
|
|
|
|
<patternset id="dbcgo.hibernate.hbm.xml">
|
|
<include name="**/*.hbm.xml"/>
|
|
</patternset>
|
|
|
|
<!-- LIB per la compilazione degli oggetti di hibernate -->
|
|
<filelist id="hibernate.compile.files.classpath" dir="${dbcgo.ear.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"/>
|
|
<file name="commons-net-1.3.0.jar"/>
|
|
<file name="commons-logging.jar"/>
|
|
</filelist>
|
|
|
|
<!-- LIB per la generazione degli oggetti di hibernate -->
|
|
<filelist id="hibernate.gen.files.classpath" dir="${dbcgo.hibernate.gen.lib.path}" >
|
|
<file name="hibernate-tools-DBCGOcustom.jar"/>
|
|
<file name="classes12.jar"/>
|
|
<!-- <file name="commons-fileupload.jar"/> -->
|
|
<file name="freemarker.jar"/>
|
|
<file name="jtidy-r8-20060801.jar"/>
|
|
</filelist>
|
|
|
|
<path id="hibernate.gen.all.claspath">
|
|
|
|
<filelist refid="hibernate.gen.files.classpath"/>
|
|
<filelist refid="hibernate.compile.files.classpath"/>
|
|
<pathelement location="${weblogic.home}/server/lib/weblogic.jar"/>
|
|
<!--<filelist refid="weblogic.jar"/>-->
|
|
</path >
|
|
|
|
<!-- TARGET PER LA CREAZIONE DEI DTO E FILE XML DI MAPPING-->
|
|
<target name="hibernateGenDto">
|
|
<echo>
|
|
Creating Hibernate DTO Objects and XML Mapping
|
|
${dbcgo.hibernateDAO.destdir.path}
|
|
-------------
|
|
</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="${dbcgo.hibernate.gen.configFile}"
|
|
revengfile="${dbcgo.hibernate.gen.revengeFile}"
|
|
detectmanytomany="false"
|
|
detectoptimisticlock="true"/>
|
|
<hbm2hbmxml destdir="${dbcgo.hibernatePojoXml.destdir.path}"/>
|
|
<hbm2java destdir="${dbcgo.hibernatePojoXml.destdir.path}" />
|
|
</hibernatetoolGenPojoXml>
|
|
<!-- IMPLEMENTAZIONE TASK GENERAZIONE XML E POJO LE TABELLE CON FK -->
|
|
<hibernatetoolFKGenPojoXml >
|
|
<jdbcconfiguration
|
|
configurationfile="${dbcgo.hibernate.gen.configFile}"
|
|
revengfile="${dbcgo.hibernate.gen.revengeFileFK}"
|
|
detectmanytomany="false"
|
|
detectoptimisticlock="true"/>
|
|
<hbm2hbmxml destdir="${dbcgo.hibernatePojoXml.destdir.path}"/>
|
|
<hbm2java destdir="${dbcgo.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="${dbcgo.hibernate.gen.configFile}"
|
|
revengfile="${dbcgo.hibernate.gen.revengeFile}"
|
|
detectmanytomany="false"
|
|
detectoptimisticlock="true"/>
|
|
<hbm2dao destdir="${dbcgo.hibernateDAO.destdir.path}"/>
|
|
</hibernatetoolGenDAO>
|
|
|
|
<!-- IMPLEMENTAZIONE TASK GENERAZIONE DAO LE TABELLE CON FK -->
|
|
<hibernatetoolFKGenDAO >
|
|
<jdbcconfiguration
|
|
configurationfile="${dbcgo.hibernate.gen.configFile}"
|
|
revengfile="${dbcgo.hibernate.gen.revengeFileFK}"
|
|
detectmanytomany="false"
|
|
detectoptimisticlock="true"/>
|
|
<hbm2dao destdir="${dbcgo.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="${dbcgo.hibernateDAO.destdir.path}">
|
|
<!-- the files to move -->
|
|
<fileset dir="${dbcgo.hibernateDAO.destdir.path}">
|
|
<include name="**/*Home.java" />
|
|
</fileset>
|
|
<mapper refid="DAOMapper" />
|
|
</move>
|
|
</target>
|
|
<!-- FINE DEI TARGET PER LA GESTIONE DELLA CREAZIONE DEI DAO-->
|
|
|
|
<!-- FINE HIBERNATE -->
|
|
|
|
<patternset id="dbcgo.ejb.client.pattern">
|
|
<include name="**/SyncService*.class"/>
|
|
<include name="**/SyncService*.xml"/>
|
|
<exclude name="**/SyncServiceBean.class"/>
|
|
</patternset>
|
|
|
|
<path id="dbcgo.ejb.classpath">
|
|
<!-- User JAR -->
|
|
<pathelement location="${dbcgo.ear.path}/res/process-executor.jar" />
|
|
|
|
|
|
<!-- Common JAR -->
|
|
<fileset dir="${dbcgo.ear.lib.path}" />
|
|
|
|
<!-- Weblogic JAR -->
|
|
<pathelement location="${weblogic.home}/server/lib/weblogic.jar"/>
|
|
|
|
<!-- Java compiler tools.jar -->
|
|
<pathelement location="${sdk.home}/lib/tools.jar"/>
|
|
</path>
|
|
|
|
<path id="dbcgo.web.classpath">
|
|
<!-- User JAR -->
|
|
<fileset dir="${dbcgo.web.lib.path}" />
|
|
|
|
<!-- Common JAR -->
|
|
<fileset dir="${dbcgo.ear.lib.path}" />
|
|
|
|
<!-- Weblogic JAR -->
|
|
<pathelement location="${weblogic.home}/server/lib/weblogic.jar"/>
|
|
|
|
<!-- Java compiler tools.jar -->
|
|
<pathelement location="${sdk.home}/lib/tools.jar"/>
|
|
</path>
|
|
<path id="dbcgo.ear.classpath">
|
|
|
|
<!-- Nothing -->
|
|
</path>
|
|
|
|
<condition property="mvnOperation" value="./mvnOperation.sh ${dbcgo.web.path}/script /maven-2.0.9/bin ">
|
|
<isset property="isAixOs"/>
|
|
</condition>
|
|
|
|
<condition property="mvnOperation" value="/c mvnOperation.cmd ${dbcgo.web.path}/script \maven-2.0.9\bin ">
|
|
<isset property="isWindowsXpOs"/>
|
|
</condition>
|
|
|
|
<condition property="exec" value="ksh">
|
|
<isset property="isAixOs"/>
|
|
</condition>
|
|
|
|
<condition property="exec" value="cmd">
|
|
<isset property="isWindowsXpOs"/>
|
|
</condition>
|
|
|
|
<target name = "install-DBCGO">
|
|
<delete dir="${dbcgo.web.path}/WebRoot/WEB-INF/lib"/>
|
|
<exec dir = "${project.home}" executable = "${exec}">
|
|
<arg value = "${mvnOperation}"/>
|
|
</exec>
|
|
</target>
|
|
|
|
<target name="init" depends="install-DBCGO" >
|
|
|
|
<tstamp prefix="start"/>
|
|
|
|
<echo>
|
|
** Build started at: ${start.DSTAMP} ${start.TSTAMP}
|
|
sdk.home = ${sdk.home}
|
|
weblogic.home = ${weblogic.home}
|
|
project.home = ${project.home}
|
|
build.prop.file = ${build.prop.file}
|
|
ant.home = ${ant.home}
|
|
** Creating folders..
|
|
</echo>
|
|
|
|
<delete dir="${building.path}"/>
|
|
|
|
<mkdir dir="${building.path}"/>
|
|
|
|
<mkdir dir="${dbcgo.web.classes.path}"/>
|
|
<mkdir dir="${dbcgo.web.compile.path}"/>
|
|
<mkdir dir="${dbcgo.web.compile.path}/WEB-INF/classes"/>
|
|
|
|
<mkdir dir="${dbcgo.ejb.classes.path}"/>
|
|
<mkdir dir="${dbcgo.ejb.compile.path}"/>
|
|
<mkdir dir="${dbcgo.ejb.compile.path}/WEB-INF/classes"/>
|
|
|
|
<mkdir dir="${dbcgo.ear.classes.path}"/>
|
|
<mkdir dir="${dbcgo.ear.compile.path}"/>
|
|
<mkdir dir="${dbcgo.ear.compile.path}/APP-INF/classes"/>
|
|
<mkdir dir="${dbcgo.ear.compile.path}/APP-INF/lib"/>
|
|
|
|
<mkdir dir="${dbcgo.ejc.compile.path}"/>
|
|
|
|
</target>
|
|
|
|
<target name="compile.dbcgo.ejb">
|
|
<echo>** Compiling dbcgo.ejb..</echo>
|
|
<javac srcdir="${dbcgo.ejb.src.path}" destdir="${dbcgo.ejb.classes.path}" debug="on" deprecation="off" failonerror="true">
|
|
<classpath refid="dbcgo.ejb.classpath"/>
|
|
</javac>
|
|
</target>
|
|
|
|
<target name="compile.dbcgo.web" depends="jar.dbcgo.ejb">
|
|
<echo>** Compiling dbcgo.web..</echo>
|
|
<javac srcdir="${dbcgo.web.src.path}" destdir="${dbcgo.web.classes.path}" debug="on" deprecation="off" failonerror="true">
|
|
<classpath refid="dbcgo.web.classpath"/>
|
|
<classpath>
|
|
<pathelement path="${building.path}/dbcgo-ejbmodule.jar"/>
|
|
</classpath>
|
|
</javac>
|
|
</target>
|
|
|
|
<target name="compile" depends="compile.dbcgo.ejb, compile.dbcgo.web"/>
|
|
|
|
<target name="jar.dbcgo.ejb">
|
|
<echo>** Making jar dbcgo.ejb..</echo>
|
|
<copy todir="${dbcgo.ejb.compile.path}">
|
|
<fileset dir="${dbcgo.ejb.res.path}" />
|
|
<fileset dir="${dbcgo.ejb.classes.path}" />
|
|
<fileset dir="${dbcgo.model.src.path}">
|
|
<patternset refid="dbcgo.hibernate.hbm.xml"/>
|
|
</fileset>
|
|
</copy>
|
|
|
|
<jar destfile="${building.path}/dbcgo-ejbmodule-src.jar" manifest="${dbcgo.ejb.res.path}/META-INF/EJB_Manifest.mf">
|
|
<fileset dir="${dbcgo.ejb.compile.path}" />
|
|
</jar>
|
|
<echo>
|
|
${dbcgo.ear.path};
|
|
${dbcgo.ear.lib.path};
|
|
${weblogic.home}/server/lib/weblogic.jar;
|
|
${sdk.home}/lib/tools.jar
|
|
</echo>
|
|
|
|
|
|
<java fork="true" failonerror="true" classname="weblogic.ejbc">
|
|
<classpath refid="dbcgo.ejb.classpath"/>
|
|
<arg value="${building.path}/dbcgo-ejbmodule-src.jar"/>
|
|
<arg value="${building.path}/dbcgo-ejbmodule.jar"/>
|
|
</java>
|
|
</target>
|
|
|
|
<target name="jar.dbcgo.ejc" depends="jar.dbcgo.ejb">
|
|
<echo>
|
|
** Making jar dbcgo.ejc..
|
|
|
|
</echo>
|
|
<unzip src="${building.path}/dbcgo-ejbmodule.jar" dest="${dbcgo.ejc.compile.path}">
|
|
<patternset>
|
|
<include name="**/SyncService*.class"/>
|
|
<include name="**/SyncService*.xml"/>
|
|
<include name="**/DonorReqDTO*.class"/>
|
|
<include name="**/RecipientReqDTO*.class"/>
|
|
<include name="**/DonorVirtReqDTO*.class"/>
|
|
<include name="**/DonorVirtTCReqDTO*.class"/>
|
|
<include name="**/RecipientVirtReqDTO*.class"/>
|
|
<include name="**/RecipientVirtM2MReqDto*.class"/>
|
|
<include name="**/RecipientVirtM2MTcReqDTO*.class"/>
|
|
<include name="**/RecipientVirtTCReqDTO*.class"/>
|
|
<include name="**/PortingReqDTO*.class"/>
|
|
<include name="**/DonorTCReqDTO*.class"/>
|
|
<include name="**/RecipientTCReqDTO*.class"/>
|
|
<include name="**/MnpDonatingForCatastaleDbcgoDTO*.class"/>
|
|
<exclude name="**/SyncServiceBean.class"/>
|
|
</patternset>
|
|
</unzip>
|
|
|
|
<jar destfile="${building.path}/dbcgo-ejbclient.jar" manifest="${dbcgo.ejb.res.path}/META-INF/EJB_Manifest.mf">
|
|
<fileset dir="${dbcgo.ejc.compile.path}" />
|
|
</jar>
|
|
</target>
|
|
<target name="jar.dbcgo.ejc.common" depends="jar.dbcgo.ejb">
|
|
<echo>
|
|
** Making jar dbcgo.ejc.common.
|
|
</echo>
|
|
<unzip src="${building.path}/dbcgo-ejbmodule.jar" dest="${dbcgo.ejc.compile.path}">
|
|
|
|
<patternset>
|
|
<include name="**/*.class"/>
|
|
<include name="**/*.xml"/>
|
|
|
|
<exclude name="**/SyncServiceBean.class"/>
|
|
<exclude name="**/ProcessServerBean.class"/>
|
|
<exclude name="**/PriorityServiceBean.class"/>
|
|
</patternset>
|
|
|
|
</unzip>
|
|
|
|
<jar destfile="${building.path}/dbcgo-ejb-common.jar" manifest="${dbcgo.ejb.res.path}/META-INF/EJB_Manifest.mf">
|
|
<fileset dir="${dbcgo.ejc.compile.path}" />
|
|
</jar>
|
|
</target>
|
|
<target name="jar.dbcgo.war">
|
|
<echo>
|
|
** Making jar dbcgo.war..
|
|
|
|
</echo>
|
|
<echo>dbcgo.web.res.path= ${dbcgo.web.res.path}</echo>
|
|
<echo>dbcgo.ejb.compile.path= ${dbcgo.ejb.compile.path}</echo>
|
|
<delete dir="${dbcgo.web.res.path}/WEB-INF/classes/it/valueteam/dbcgo/action"/>
|
|
<delete dir="${dbcgo.web.res.path}/WEB-INF/classes/it/valueteam/dbcgo/actionform"/>
|
|
<delete dir="${dbcgo.web.res.path}/WEB-INF/classes/it/valueteam/dbcgo/common"/>
|
|
<delete dir="${dbcgo.web.res.path}/WEB-INF/classes/it/valueteam/dbcgo/database"/>
|
|
<delete dir="${dbcgo.web.res.path}/WEB-INF/classes/it/valueteam/dbcgo/web"/>
|
|
<!--
|
|
<copy todir="${dbcgo.web.compile.path}">
|
|
|
|
<fileset dir="${dbcgo.web.res.path}" />
|
|
<classes dir="${dbcgo.web.classes.path}" />
|
|
</copy>
|
|
-->
|
|
<war destfile="${building.path}/dbcgo-gui.war" manifest="${dbcgo.web.res.path}/META-INF/WEB_MANIFEST.MF" webxml="${dbcgo.web.res.path}/WEB-INF/web.xml">
|
|
<fileset dir="${dbcgo.web.res.path}" />
|
|
<classes dir="${dbcgo.web.classes.path}" />
|
|
</war>
|
|
</target>
|
|
<target name="jar.dbcgo.ear" depends="jar.dbcgo.ejb, jar.dbcgo.ejc,jar.dbcgo.ejc.common, jar.dbcgo.war">
|
|
<echo>
|
|
** Making jar dbcgo.ear..
|
|
|
|
</echo>
|
|
|
|
<copy todir="${dbcgo.ear.compile.path}">
|
|
<fileset dir="${dbcgo.ear.res.path}" />
|
|
</copy>
|
|
<copy todir="${dbcgo.ear.compile.path}" file="${building.path}/dbcgo-ejbmodule.jar"/>
|
|
<copy todir="${dbcgo.ear.compile.path}" file="${building.path}/dbcgo-gui.war"/>
|
|
<copy todir="${dbcgo.ear.compile.path}" file="${dbcgo.ear.res.path}/process-executor.jar"/>
|
|
|
|
<!-- INSERIRE LE LIB -->
|
|
<ear destfile="${building.path}/dbcgo.ear" appxml="${dbcgo.ear.res.path}/META-INF/application.xml">
|
|
<fileset dir="${dbcgo.ear.compile.path}"/>
|
|
</ear>
|
|
</target>
|
|
|
|
<target name="cleanup">
|
|
<echo>
|
|
** Cleaning up..
|
|
|
|
</echo>
|
|
<mkdir dir="${build.path}/deploy_${start.DSTAMP}_${start.TSTAMP}" />
|
|
|
|
<copy todir="${build.path}/deploy_${start.DSTAMP}_${start.TSTAMP}" file="${building.path}/dbcgo.ear"/>
|
|
<copy todir="${build.path}/deploy_${start.DSTAMP}_${start.TSTAMP}" file="${building.path}/dbcgo-ejbclient.jar"/>
|
|
<copy todir="${build.path}/deploy_${start.DSTAMP}_${start.TSTAMP}" file="${building.path}/dbcgo-ejb-common.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" >
|
|
<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="noclean" depends="init, compile, jar.dbcgo.ear"/>
|
|
|
|
<target name="all" depends="init, compile, jar.dbcgo.ear, cleanup"/>
|
|
|
|
|
|
<!-- <target name="full" depends="init, compile, jar.dbcgo.ear, cleanup, deploy, speaker"/> -->
|
|
<target name="full" depends="init, compile, jar.dbcgo.ear, cleanup, speaker"/>
|
|
<!--
|
|
|
|
<target name="buildTest" depends="init, compile, jar.dbcgo.ear, cleanup, undeploy, deploy, speaker"/>
|
|
|
|
<target name="deploy">
|
|
<wldeploy action="deploy"
|
|
source="${build.path}/deploy_${start.DSTAMP}_${start.TSTAMP}/dbcgo.ear"
|
|
name="dbcgo"
|
|
user="weblogic"
|
|
password="weblogic"
|
|
adminurl="t3://localhost:7001"
|
|
remote="false"
|
|
debug="true"
|
|
verbose="true"
|
|
targets="mnpServer"/>
|
|
</target>
|
|
<target name="undeploy">
|
|
<wldeploy action="undeploy"
|
|
name="dbcgo"
|
|
user="weblogic"
|
|
password="weblogic"
|
|
adminurl="t3://localhost:7001"
|
|
remote="false"
|
|
debug="true"
|
|
verbose="true"
|
|
targets="mnpServer"/>
|
|
</target>
|
|
|
|
<taskdef name="wldeploy" classname="weblogic.ant.taskdefs.management.WLDeploy"
|
|
classpath="${weblogic.home}/server/lib/weblogic.jar"/> -->
|
|
</project> |