Primer commit

parent 0920ea4c
Pipeline #60 failed with stages
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="resources"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
<attributes>
<attribute name="owner.project.facets" value="java"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/sharedlibsTomcat"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/activation-1.1.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/commons-beanutils-1.7.0.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/commons-chain-1.1.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/commons-codec-1.6.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/commons-collections-3.1.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/commons-configuration-1.6.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/commons-dbcp-1.4.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/commons-digester-1.8.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/commons-discovery-0.2.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/commons-fileupload-1.1.1.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/commons-httpclient-3.1.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/commons-io-1.1.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/commons-lang-2.3.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/commons-lang3-3.2.1.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/commons-logging-1.1.1.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/commons-pool-1.4.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/commons-validator-1.3.1.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/dom4j-1.6.1.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/ezmorph.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/httpclient-4.2.3.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/httpcore-4.2.3.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/httpcore-nio-4.2.3.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/jackson-all-1.9.11.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/javax.servlet-3.0.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/json-lib-2.2.2-jdk15.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/log4j-1.2.16.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/mail-1.4.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/neethi-3.0.2.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/ojdbc6.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/org.springframework.aop-3.1.2.RELEASE.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/org.springframework.asm-3.1.2.RELEASE.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/org.springframework.aspects-3.1.2.RELEASE.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/org.springframework.beans-3.1.2.RELEASE.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/org.springframework.context.support-3.1.2.RELEASE.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/org.springframework.context-3.1.2.RELEASE.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/org.springframework.core-3.1.2.RELEASE.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/org.springframework.expression-3.1.2.RELEASE.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/org.springframework.jdbc-3.1.2.RELEASE.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/org.springframework.transaction-3.1.2.RELEASE.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/org.springframework.web.servlet-3.1.2.RELEASE.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/org.springframework.web-3.1.2.RELEASE.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/poi-3.9-20121203.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/poi-examples-3.9-20121203.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/poi-excelant-3.9-20121203.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/poi-ooxml-3.9-20121203.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/poi-ooxml-schemas-3.9-20121203.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/poi-scratchpad-3.9-20121203.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/quartz-1.8.5.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/slf4j-api-1.7.5.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/spring-ws-1.5.6-all.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/spring-ws-core-2.1.2.RELEASE.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/spring-xml-1.5.6.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/stax2-api-3.1.1.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/wsdl4j-1.6.3.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/wss4j-1.6.11.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/xercesImpl-2.8.1.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/xml-apis-1.3.04.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/xmlbeans-2.6.0.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/xmlschema-core-2.0.3.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/xmlsec-1.4.3.jar"/>
<classpathentry kind="lib" path="C:/apache-tomcat-9.0.4/sharedlibs/xom-1.1.jar"/>
<classpathentry kind="output" path="build/classes"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>DDA_CRN_Terminacion</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
</projectDescription>
# DDA_CRN_Terminacion # DDA_CRN_Terminacion
Servicio CRN de Terminacion para derechos de Autor
Manifest-Version: 1.0
Class-Path:
<?xml version="1.0" encoding="UTF-8"?>
<Context antiJARLocking="true" path="/DDA_CRN_Terminacion"/>
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
<display-name>DDA_CRN_Terminacion</display-name>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath*:ApplicationContext*.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
\ No newline at end of file
<h3>DDA_CRN_Terminaci&oacute;n</h3>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="DDA_CRN_Terminacion" default="default" basedir=".">
<description>Builds, tests, and runs the project DDA_CRN_Terminacion.</description>
<import file="nbproject/build-impl.xml"/>
<!--
There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:
-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-dist: called before archive building
-post-dist: called after archive building
-post-clean: called after cleaning build products
-pre-run-deploy: called before deploying
-post-run-deploy: called after deploying
Example of pluging an obfuscator after the compilation could look like
<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>
For list of available properties check the imported
nbproject/build-impl.xml file.
Other way how to customize the build is by overriding existing main targets.
The target of interest are:
init-macrodef-javac: defines macro for javac compilation
init-macrodef-junit: defines macro for junit execution
init-macrodef-debug: defines macro for class debugging
do-dist: archive building
run: execution of project
javadoc-build: javadoc generation
Example of overriding the target for project execution could look like
<target name="run" depends="<PROJNAME>-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>
Notice that overridden target depends on jar target and not only on
compile target as regular run target does. Again, for list of available
properties which you can use check the target you are overriding in
nbproject/build-impl.xml file.
-->
</project>
Manifest-Version: 1.0
Class-Path:
<?xml version="1.0" encoding="UTF-8"?>
<Context antiJARLocking="true" path="/DDA_CRN_Terminacion"/>
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jee="http://www.springframework.org/schema/jee"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/jee
http://www.springframework.org/schema/jee/spring-jee-3.0.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<context:component-scan base-package="mx.com.amx.mx.dda.crn"/>
<mvc:annotation-driven/>
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location">
<value>classpath:general.properties</value>
</property>
</bean>
<!--
<bean class="org.springframework.web.servlet.view.ContentNegotiatingViewResolver">
<property name="order" value="1" />
<property name="mediaTypes">
<map>
<entry key="json" value="application/json"/>
<entry key="html" value="text/html"/>
</map>
</property>
<property name="defaultViews">
<list>
<bean class="org.springframework.web.servlet.view.json.MappingJacksonJsonView">
<property name="prefixJson" value="true"/>
<property name="contentType" value="application/json;charset=UTF-8"/>
</bean>
</list>
</property>
<property name="ignoreAcceptHeader" value="true" />
</bean>
<bean id="jaxbMarshallerBean" class="org.springframework.oxm.jaxb.Jaxb2Marshaller">
<property name="classesToBeBound">
<list>
<value>com.americamovil.dda.enviacontenido.DTContenido</value>
<value>com.americamovil.dda.enviacontenido.DTContenidoRes</value>
</list>
</property>
<property name="marshallerProperties">
<map>
<entry key="jaxb.encoding">
<value>UTF-8</value>
</entry>
</map>
</property>
</bean>
<bean id="messageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory"/>
-->
<!-- WS Notificacion Activo Fijo SAP -->
<!--
<bean id="wsNotificaAFijoSAP" class="org.springframework.ws.client.core.WebServiceTemplate">
<constructor-arg ref="messageFactory"/>
<property name="marshaller" ref="jaxbMarshallerBean" />
<property name="unmarshaller" ref="jaxbMarshallerBean" />
<property name="messageSender">
<bean class="org.springframework.ws.transport.http.CommonsHttpMessageSender">
<property name="credentials">
<bean class="org.apache.commons.httpclient.UsernamePasswordCredentials">
<constructor-arg value="${sap.services.credenciales}"/>
</bean>
</property>
</bean>
</property>
</bean>
-->
<!-- BO -->
<bean id="ddaTerminacionBO" class="mx.com.amx.mx.dda.crn.bo.DDATerminacionBO">
<property name="dao" ref="ddaTerminacionDAO" />
</bean>
<!--DAO -->
<bean id="ddaTerminacionDAO" class="mx.com.amx.mx.dda.crn.dao.DDATerminacionDAO">
<property name="jdbcTemplate" ref="jdbcTemplate" />
</bean>
<!-- JNDI -->
<jee:jndi-lookup id="dsDDA" jndi-name="${database.jndi}" cache="true" expected-type="javax.sql.DataSource" />
<bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
<property name="dataSource" ref="dsDDA" />
</bean>
<!-- CRN -->
<bean id="terminacion_DDA" class="mx.com.amx.mx.dda.crn.DDATerminacion" >
<property name="bo" ref="ddaTerminacionBO" />
</bean>
<bean id="cronTerminacion_DDA"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"
p:concurrent="false"
p:targetObject-ref="terminacion_DDA"
p:targetMethod="ejecutaProceso">
</bean>
<bean id="triggerTerminacion_DDA" class="org.springframework.scheduling.quartz.CronTriggerBean"
p:jobDetail-ref="cronTerminacion_DDA"
p:startDelay="1000"
p:cronExpression="0 0 8 * * ? *" >
<!-- Seconds Minutes Hours Day-Month Month Day-Week Year -->
<!-- LOCAL p:cronExpression="0 */2 * * * ? *" > c2min -->
<!-- DEV p:cronExpression="0 0 1 * * ? *" > 1:00am -->
<!-- QA p:cronExpression="0 0 8 * * ? *" > 8:00am -->
<!-- PRD p:cronExpression="0 0 2 * * ? *" > 2:00am -->
</bean>
<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean"
p:waitForJobsToCompleteOnShutdown="true" >
<property name="triggers">
<list>
<ref bean="triggerTerminacion_DDA" />
</list>
</property>
</bean>
<!-- log4j setting -->
<bean id="log4jInitialization" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="targetClass" value="org.springframework.util.Log4jConfigurer" />
<property name="targetMethod" value="initLogging" />
<property name="arguments">
<list>
<value>${log4j.properties.location}</value>
</list>
</property>
</bean>
</beans>
#-----------------------------------------------
# Ambiente local/desarrollo/preprod/produccion
#-----------------------------------------------
ambiente=produccion
#-----------------------------------------------
# Variables Generales
#-----------------------------------------------
database.jndi=${${ambiente}.database.jndi}
log4j.properties.location=${${ambiente}.log4j.properties.location}
sap.services.credenciales=${${ambiente}.sap.services.credenciales}
#-----------------------------------------------
# Propiedades Produccion
#-----------------------------------------------
produccion.database.jndi=jdbc/DBDLA
produccion.log4j.properties.location=classpath:log4j.prod.properties
#-----------------------------------------------
# Propiedades Preproduccion
#-----------------------------------------------
preprod.database.jndi=jdbc/DBDLA
preprod.log4j.properties.location=classpath:log4j.pre.properties
#-----------------------------------------------
# Propiedades Desarrollo
#-----------------------------------------------
desarrollo.database.jndi=jdbc/DBDLA
desarrollo.log4j.properties.location=classpath:log4j.dev.properties
#-----------------------------------------------
# Propiedades Local
#-----------------------------------------------
local.database.jndi=jdbc/DBDLA
local.log4j.properties.location=classpath:log4j.local.properties
#-----------------------------------------------
# Parametros
#-----------------------------------------------
puede.ejecutar=DDA_TERMINACION_PUEDE_EJECUTAR
iniciado=DDA_TERMINACION_INICIADO
modulo=TERMINACION
#-----------------------------------------------
# Estatus del Contrato
#-----------------------------------------------
estatus.vigente=5
estatus.autorizado=4
estatus.terminado=6
#-----------------------------------------------
# Valores varios
#-----------------------------------------------
tipo.contrato.suscripcion=1
estatus.titulo.activo=ACTIVO
log4j.rootCategory=INFO, LOGFILE
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=%-5p %c %x[%L] - %m%n
log4j.appender.LOGFILE=org.apache.log4j.RollingFileAppender
log4j.appender.LOGFILE.File=logs/mx/dda/ws/DDA_WS.log
log4j.appender.LOGFILE.Append=true
log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.LOGFILE.layout.ConversionPattern=[%d{dd MMM yyyy HH:mm:ss}]%-5p %c %x[%L] - %m%n
log4j.appender.LOGFILE.MaxFileSize=10MB
log4j.appender.LOGFILE.MaxBackupIndex=30
\ No newline at end of file
#log4j.rootCategory=ALL, CONSOLE, LOGFILE
log4j.rootCategory=DEBUG, CONSOLE, LOGFILE
# CONSOLE is set to be a ConsoleAppender using a PatternLayout.
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
#log4j.appender.CONSOLE.Threshold=debug
log4j.appender.CONSOLE.Threshold=DEBUG
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=%-5p %c %x[%L] - %m%n
# LOGFILE is set to be a File appender using a PatternLayout.
log4j.appender.LOGFILE=org.apache.log4j.RollingFileAppender
log4j.appender.LOGFILE.File=logs/mx/dda/ws/DDA_WS.log
log4j.appender.LOGFILE.Append=true
log4j.appender.LOGFILE.Threshold=ALL
log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.LOGFILE.layout.ConversionPattern=[%d{dd MMM yyyy HH\:mm\:ss}]%-5p %c %x[%L] - %m%n
log4j.appender.LOGFILE.MaxFileSize=10MB
log4j.appender.LOGFILE.MaxBackupIndex=20
\ No newline at end of file
log4j.rootCategory=DEBUG, LOGFILE
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=%-5p %c %x[%L] - %m%n
log4j.appender.LOGFILE=org.apache.log4j.RollingFileAppender
#log4j.appender.LOGFILE.File=logs/mx/dda/ws/DDA_WS.log
log4j.appender.LOGFILE.File=logs/mx/dda/ws/DDA_WS_CRN_T.log
log4j.appender.LOGFILE.Append=true
log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.LOGFILE.layout.ConversionPattern=[%d{dd MMM yyyy HH:mm:ss}]%-5p %c %x[%L] - %m%n
log4j.appender.LOGFILE.MaxFileSize=10MB
log4j.appender.LOGFILE.MaxBackupIndex=30
\ No newline at end of file
log4j.rootCategory=INFO, LOGFILE
log4j.appender.LOGFILE=org.apache.log4j.RollingFileAppender
log4j.appender.LOGFILE.File=logs/mx/dda/ws/DDA_WS_CRN_T.log
log4j.appender.LOGFILE.Append=true
log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.LOGFILE.layout.ConversionPattern=[%d{dd MMM yyyy HH:mm:ss}]%-5p %c %x[%L] - %m%n
log4j.appender.LOGFILE.MaxFileSize=10MB
log4j.appender.LOGFILE.MaxBackupIndex=30
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
<display-name>DDA_CRN_Terminacion</display-name>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath*:ApplicationContext*.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
\ No newline at end of file
<h3>DDA_CRN_Terminaci&oacute;n</h3>
\ No newline at end of file
File added
libs.CopyLibs.classpath=\
${base}/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar
libs.CopyLibs.displayName=CopyLibs Task
libs.CopyLibs.prop-version=2.0
libs.javaee-endorsed-api-6.0.classpath=\
${base}/javaee-endorsed-api-6.0/javax.annotation.jar;\
${base}/javaee-endorsed-api-6.0/jaxb-api-osgi.jar;\
${base}/javaee-endorsed-api-6.0/webservices-api-osgi.jar
libs.javaee-endorsed-api-6.0.displayName=Java EE 6 Endorsed API Library
libs.javaee-endorsed-api-6.0.javadoc=\
${base}/javaee-endorsed-api-6.0/javaee-doc-api.jar
File added
File added
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<project default="-deploy-ant" basedir=".">
<target name="-init" if="deploy.ant.enabled">
<property file="${deploy.ant.properties.file}"/>
<tempfile property="temp.module.folder" prefix="tomcat" destdir="${java.io.tmpdir}"/>
<unwar src="${deploy.ant.archive}" dest="${temp.module.folder}">
<patternset includes="META-INF/context.xml"/>
</unwar>
<xmlproperty file="${temp.module.folder}/META-INF/context.xml"/>
<delete dir="${temp.module.folder}"/>
</target>
<target name="-check-credentials" if="deploy.ant.enabled" depends="-init">
<fail message="Tomcat password has to be passed as tomcat.password property.">
<condition>
<not>
<isset property="tomcat.password"/>
</not>
</condition>
</fail>
</target>
<target name="-deploy-ant" if="deploy.ant.enabled" depends="-init,-check-credentials">
<echo message="Deploying ${deploy.ant.archive} to ${Context(path)}"/>
<taskdef name="deploy" classname="org.apache.catalina.ant.DeployTask">
<classpath>
<pathelement path="${tomcat.home}/lib/catalina-ant.jar"/>
<pathelement path="${tomcat.home}/lib/tomcat-coyote.jar"/>
<pathelement path="${tomcat.home}/lib/tomcat-util.jar"/>
<pathelement path="${tomcat.home}/bin/tomcat-juli.jar"/>
</classpath>
</taskdef>
<deploy url="${tomcat.url}/manager/text" username="${tomcat.username}"
password="${tomcat.password}" path="${Context(path)}"
war="${deploy.ant.archive}"/>
<property name="deploy.ant.client.url" value="${tomcat.url}${Context(path)}"/>
</target>
<target name="-undeploy-ant" if="deploy.ant.enabled" depends="-init,-check-credentials">
<echo message="Undeploying ${Context(path)}"/>
<taskdef name="undeploy" classname="org.apache.catalina.ant.UndeployTask">
<classpath>
<pathelement path="${tomcat.home}/lib/catalina-ant.jar"/>
<pathelement path="${tomcat.home}/lib/tomcat-coyote.jar"/>
<pathelement path="${tomcat.home}/lib/tomcat-util.jar"/>
<pathelement path="${tomcat.home}/bin/tomcat-juli.jar"/>
</classpath>
</taskdef>
<undeploy url="${tomcat.url}/manager/text" username="${tomcat.username}"
password="${tomcat.password}" path="${Context(path)}"/>
</target>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<!--
*** GENERATED FROM project.xml - DO NOT EDIT ***
*** EDIT ../build.xml INSTEAD ***
For the purpose of easier reading the script
is divided into following sections:
- initialization
- compilation
- dist
- execution
- debugging
- javadoc
- test compilation
- test execution
- test debugging
- cleanup
-->
<project xmlns:webproject1="http://www.netbeans.org/ns/web-project/1" xmlns:webproject2="http://www.netbeans.org/ns/web-project/2" xmlns:webproject3="http://www.netbeans.org/ns/web-project/3" basedir=".." default="default" name="DDA_CRN_Terminacion-impl">
<import file="ant-deploy.xml"/>
<fail message="Please build using Ant 1.7.1 or higher.">
<condition>
<not>
<antversion atleast="1.7.1"/>
</not>
</condition>
</fail>
<target depends="dist,javadoc" description="Build whole project." name="default"/>
<!--
INITIALIZATION SECTION
-->
<target name="-pre-init">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="-pre-init" name="-init-private">
<property file="nbproject/private/private.properties"/>
</target>
<target name="-pre-init-libraries">
<property location=".\lib\nblibraries.properties" name="libraries.path"/>
<dirname file="${libraries.path}" property="libraries.dir.nativedirsep"/>
<pathconvert dirsep="/" property="libraries.dir">
<path path="${libraries.dir.nativedirsep}"/>
</pathconvert>
<basename file="${libraries.path}" property="libraries.basename" suffix=".properties"/>
<available file="${libraries.dir}/${libraries.basename}-private.properties" property="private.properties.available"/>
</target>
<target depends="-pre-init-libraries" if="private.properties.available" name="-init-private-libraries">
<loadproperties encoding="ISO-8859-1" srcfile="${libraries.dir}/${libraries.basename}-private.properties">
<filterchain>
<replacestring from="$${base}" to="${libraries.dir}"/>
<escapeunicode/>
</filterchain>
</loadproperties>
</target>
<target depends="-pre-init,-init-private,-init-private-libraries" name="-init-libraries">
<loadproperties encoding="ISO-8859-1" srcfile="${libraries.path}">
<filterchain>
<replacestring from="$${base}" to="${libraries.dir}"/>
<escapeunicode/>
</filterchain>
</loadproperties>
</target>
<target depends="-pre-init,-init-private,-init-libraries" name="-init-user">
<property file="${user.properties.file}"/>
<!-- The two properties below are usually overridden -->
<!-- by the active platform. Just a fallback. -->
<property name="default.javac.source" value="1.4"/>
<property name="default.javac.target" value="1.4"/>
</target>
<target depends="-pre-init,-init-private,-init-libraries,-init-user" name="-init-project">
<property file="nbproject/project.properties"/>
</target>
<target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" if="dist.ear.dir" name="-do-ear-init"/>
<target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-init-macrodef-property" name="-do-init">
<webproject1:property name="platform.home" value="platforms.${platform.active}.home"/>
<webproject1:property name="platform.bootcp" value="platforms.${platform.active}.bootclasspath"/>
<webproject1:property name="platform.compiler" value="platforms.${platform.active}.compile"/>
<webproject1:property name="platform.javac.tmp" value="platforms.${platform.active}.javac"/>
<condition property="platform.javac" value="${platform.home}/bin/javac">
<equals arg1="${platform.javac.tmp}" arg2="$${platforms.${platform.active}.javac}"/>
</condition>
<property name="platform.javac" value="${platform.javac.tmp}"/>
<webproject1:property name="platform.java.tmp" value="platforms.${platform.active}.java"/>
<condition property="platform.java" value="${platform.home}/bin/java">
<equals arg1="${platform.java.tmp}" arg2="$${platforms.${platform.active}.java}"/>
</condition>
<property name="platform.java" value="${platform.java.tmp}"/>
<webproject1:property name="platform.javadoc.tmp" value="platforms.${platform.active}.javadoc"/>
<condition property="platform.javadoc" value="${platform.home}/bin/javadoc">
<equals arg1="${platform.javadoc.tmp}" arg2="$${platforms.${platform.active}.javadoc}"/>
</condition>
<property name="platform.javadoc" value="${platform.javadoc.tmp}"/>
<fail unless="platform.home">Must set platform.home</fail>
<fail unless="platform.bootcp">Must set platform.bootcp</fail>
<fail unless="platform.java">Must set platform.java</fail>
<fail unless="platform.javac">Must set platform.javac</fail>
<fail if="platform.invalid">
The J2SE Platform is not correctly set up.
Your active platform is: ${platform.active}, but the corresponding property "platforms.${platform.active}.home" is not found in the project's properties files.
Either open the project in the IDE and setup the Platform with the same name or add it manually.
For example like this:
ant -Duser.properties.file=&lt;path_to_property_file&gt; jar (where you put the property "platforms.${platform.active}.home" in a .properties file)
or ant -Dplatforms.${platform.active}.home=&lt;path_to_JDK_home&gt; jar (where no properties file is used)
</fail>
<condition property="have.tests">
<or/>
</condition>
<condition property="have.sources">
<or>
<available file="${src.resources.dir}"/>
<available file="${src.dir}"/>
</or>
</condition>
<condition property="netbeans.home+have.tests">
<and>
<isset property="netbeans.home"/>
<isset property="have.tests"/>
</and>
</condition>
<condition property="no.javadoc.preview">
<isfalse value="${javadoc.preview}"/>
</condition>
<property name="javac.compilerargs" value=""/>
<condition property="no.deps">
<and>
<istrue value="${no.dependencies}"/>
</and>
</condition>
<condition property="no.dist.ear.dir">
<not>
<isset property="dist.ear.dir"/>
</not>
</condition>
<property name="build.web.excludes" value="${build.classes.excludes}"/>
<condition property="do.compile.jsps">
<istrue value="${compile.jsps}"/>
</condition>
<condition property="do.debug.server">
<or>
<not>
<isset property="debug.server"/>
</not>
<istrue value="${debug.server}"/>
<and>
<not>
<istrue value="${debug.server}"/>
</not>
<not>
<istrue value="${debug.client}"/>
</not>
</and>
</or>
</condition>
<condition property="do.debug.client">
<istrue value="${debug.client}"/>
</condition>
<condition property="do.display.browser">
<istrue value="${display.browser}"/>
</condition>
<condition property="do.display.browser.debug.old">
<and>
<isset property="do.display.browser"/>
<not>
<isset property="do.debug.client"/>
</not>
<not>
<isset property="browser.context"/>
</not>
</and>
</condition>
<condition property="do.display.browser.debug">
<and>
<isset property="do.display.browser"/>
<not>
<isset property="do.debug.client"/>
</not>
<isset property="browser.context"/>
</and>
</condition>
<available file="${conf.dir}/MANIFEST.MF" property="has.custom.manifest"/>
<available file="${persistence.xml.dir}/persistence.xml" property="has.persistence.xml"/>
<condition property="do.war.package.with.custom.manifest">
<isset property="has.custom.manifest"/>
</condition>
<condition property="do.war.package.without.custom.manifest">
<not>
<isset property="has.custom.manifest"/>
</not>
</condition>
<condition property="do.tmp.war.package.with.custom.manifest">
<and>
<isset property="has.custom.manifest"/>
<or>
<isfalse value="${directory.deployment.supported}"/>
<isset property="dist.ear.dir"/>
</or>
</and>
</condition>
<condition property="do.tmp.war.package.without.custom.manifest">
<and>
<not>
<isset property="has.custom.manifest"/>
</not>
<or>
<isfalse value="${directory.deployment.supported}"/>
<isset property="dist.ear.dir"/>
</or>
</and>
</condition>
<condition property="do.tmp.war.package">
<or>
<isfalse value="${directory.deployment.supported}"/>
<isset property="dist.ear.dir"/>
</or>
</condition>
<property name="build.meta.inf.dir" value="${build.web.dir}/META-INF"/>
<condition else="" property="application.args.param" value="${application.args}">
<and>
<isset property="application.args"/>
<not>
<equals arg1="${application.args}" arg2="" trim="true"/>
</not>
</and>
</condition>
<property name="source.encoding" value="${file.encoding}"/>
<condition property="javadoc.encoding.used" value="${javadoc.encoding}">
<and>
<isset property="javadoc.encoding"/>
<not>
<equals arg1="${javadoc.encoding}" arg2=""/>
</not>
</and>
</condition>
<property name="javadoc.encoding.used" value="${source.encoding}"/>
<property name="includes" value="**"/>
<property name="excludes" value=""/>
<property name="runmain.jvmargs" value=""/>
<path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
<condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
<and>
<isset property="endorsed.classpath"/>
<length length="0" string="${endorsed.classpath}" when="greater"/>
</and>
</condition>
<condition property="junit.available">
<or>
<available classname="org.junit.Test" classpath="${run.test.classpath}"/>
<available classname="junit.framework.Test" classpath="${run.test.classpath}"/>
</or>
</condition>
<condition property="testng.available">
<available classname="org.testng.annotations.Test" classpath="${run.test.classpath}"/>
</condition>
<condition property="junit+testng.available">
<and>
<istrue value="${junit.available}"/>
<istrue value="${testng.available}"/>
</and>
</condition>
<condition else="testng" property="testng.mode" value="mixed">
<istrue value="${junit+testng.available}"/>
</condition>
<condition else="" property="testng.debug.mode" value="-mixed">
<istrue value="${junit+testng.available}"/>
</condition>
</target>
<target depends="init" name="-init-cos" unless="deploy.on.save">
<condition property="deploy.on.save" value="true">
<or>
<istrue value="${j2ee.deploy.on.save}"/>
<istrue value="${j2ee.compile.on.save}"/>
</or>
</condition>
</target>
<target name="-post-init">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-do-init" name="-init-check">
<fail unless="src.resources.dir">Must set src.resources.dir</fail>
<fail unless="src.dir">Must set src.dir</fail>
<fail unless="build.dir">Must set build.dir</fail>
<fail unless="build.web.dir">Must set build.web.dir</fail>
<fail unless="build.generated.dir">Must set build.generated.dir</fail>
<fail unless="dist.dir">Must set dist.dir</fail>
<fail unless="build.classes.dir">Must set build.classes.dir</fail>
<fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail>
<fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail>
<fail unless="build.test.results.dir">Must set build.test.results.dir</fail>
<fail unless="build.classes.excludes">Must set build.classes.excludes</fail>
<fail unless="dist.war">Must set dist.war</fail>
<condition property="missing.j2ee.server.home">
<and>
<matches pattern="j2ee.server.home" string="${j2ee.platform.classpath}"/>
<not>
<isset property="j2ee.server.home"/>
</not>
</and>
</condition>
<fail if="missing.j2ee.server.home">
The Java EE server classpath is not correctly set up - server home directory is missing.
Either open the project in the IDE and assign the server or setup the server classpath manually.
For example like this:
ant -Dj2ee.server.home=&lt;app_server_installation_directory&gt;
</fail>
<fail unless="j2ee.platform.classpath">
The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}.
Either open the project in the IDE and assign the server or setup the server classpath manually.
For example like this:
ant -Duser.properties.file=&lt;path_to_property_file&gt; (where you put the property "j2ee.platform.classpath" in a .properties file)
or ant -Dj2ee.platform.classpath=&lt;server_classpath&gt; (where no properties file is used)
</fail>
</target>
<target name="-init-macrodef-property">
<macrodef name="property" uri="http://www.netbeans.org/ns/web-project/1">
<attribute name="name"/>
<attribute name="value"/>
<sequential>
<property name="@{name}" value="${@{value}}"/>
</sequential>
</macrodef>
</target>
<target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
<macrodef name="javac" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${src.resources.dir}:${src.dir}" name="srcdir"/>
<attribute default="${build.classes.dir}" name="destdir"/>
<attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
<attribute default="${javac.processorpath}" name="processorpath"/>
<attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
<attribute default="${includes}" name="includes"/>
<attribute default="${excludes}" name="excludes"/>
<attribute default="${javac.debug}" name="debug"/>
<attribute default="${empty.dir}" name="gensrcdir"/>
<element name="customize" optional="true"/>
<sequential>
<property location="${build.dir}/empty" name="empty.dir"/>
<mkdir dir="${empty.dir}"/>
<mkdir dir="@{apgeneratedsrcdir}"/>
<javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" executable="${platform.javac}" fork="yes" includeantruntime="false" includes="@{includes}" source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
<src>
<dirset dir="@{gensrcdir}" erroronmissingdir="false">
<include name="*"/>
</dirset>
</src>
<classpath>
<path path="@{classpath}"/>
</classpath>
<compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
<compilerarg line="${javac.compilerargs}"/>
<compilerarg value="-processorpath"/>
<compilerarg path="@{processorpath}:${empty.dir}"/>
<compilerarg line="${ap.processors.internal}"/>
<compilerarg value="-s"/>
<compilerarg path="@{apgeneratedsrcdir}"/>
<compilerarg line="${ap.proc.none.internal}"/>
<customize/>
</javac>
</sequential>
</macrodef>
</target>
<target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
<macrodef name="javac" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${src.resources.dir}:${src.dir}" name="srcdir"/>
<attribute default="${build.classes.dir}" name="destdir"/>
<attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
<attribute default="${javac.processorpath}" name="processorpath"/>
<attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
<attribute default="${includes}" name="includes"/>
<attribute default="${excludes}" name="excludes"/>
<attribute default="${javac.debug}" name="debug"/>
<attribute default="${empty.dir}" name="gensrcdir"/>
<element name="customize" optional="true"/>
<sequential>
<property location="${build.dir}/empty" name="empty.dir"/>
<mkdir dir="${empty.dir}"/>
<javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" executable="${platform.javac}" fork="yes" includeantruntime="false" includes="@{includes}" source="${javac.source}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
<src>
<dirset dir="@{gensrcdir}" erroronmissingdir="false">
<include name="*"/>
</dirset>
</src>
<classpath>
<path path="@{classpath}"/>
</classpath>
<compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
<compilerarg line="${javac.compilerargs}"/>
<customize/>
</javac>
</sequential>
</macrodef>
</target>
<target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
<macrodef name="depend" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${src.resources.dir}:${src.dir}" name="srcdir"/>
<attribute default="${build.classes.dir}" name="destdir"/>
<attribute default="${javac.classpath}:${j2ee.platform.classpath}" name="classpath"/>
<sequential>
<depend cache="${build.dir}/depcache" destdir="@{destdir}" excludes="${excludes}" includes="${includes}" srcdir="@{srcdir}">
<classpath>
<path path="@{classpath}"/>
</classpath>
</depend>
</sequential>
</macrodef>
<macrodef name="force-recompile" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${build.classes.dir}" name="destdir"/>
<sequential>
<fail unless="javac.includes">Must set javac.includes</fail>
<pathconvert pathsep="${line.separator}" property="javac.includes.binary">
<path>
<filelist dir="@{destdir}" files="${javac.includes}"/>
</path>
<globmapper from="*.java" to="*.class"/>
</pathconvert>
<tempfile deleteonexit="true" property="javac.includesfile.binary"/>
<echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
<delete>
<files includesfile="${javac.includesfile.binary}"/>
</delete>
<delete file="${javac.includesfile.binary}"/>
</sequential>
</macrodef>
</target>
<target if="${junit.available}" name="-init-macrodef-junit-init">
<condition else="false" property="nb.junit.batch" value="true">
<and>
<istrue value="${junit.available}"/>
<not>
<isset property="test.method"/>
</not>
</and>
</condition>
<condition else="false" property="nb.junit.single" value="true">
<and>
<istrue value="${junit.available}"/>
<isset property="test.method"/>
</and>
</condition>
</target>
<target name="-init-test-properties">
<property name="test.binaryincludes" value="&lt;nothing&gt;"/>
<property name="test.binarytestincludes" value=""/>
<property name="test.binaryexcludes" value=""/>
</target>
<target if="${nb.junit.single}" name="-init-macrodef-junit-single" unless="${nb.junit.batch}">
<macrodef name="junit" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${includes}" name="includes"/>
<attribute default="${excludes}" name="excludes"/>
<attribute default="**" name="testincludes"/>
<attribute default="" name="testmethods"/>
<element name="customize" optional="true"/>
<sequential>
<junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${platform.java}" showoutput="true" tempdir="${java.io.tmpdir}">
<test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
<syspropertyset>
<propertyref prefix="test-sys-prop."/>
<mapper from="test-sys-prop.*" to="*" type="glob"/>
</syspropertyset>
<formatter type="brief" usefile="false"/>
<formatter type="xml"/>
<jvmarg value="-ea"/>
<customize/>
</junit>
</sequential>
</macrodef>
</target>
<target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-batch" unless="${nb.junit.single}">
<macrodef name="junit" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${includes}" name="includes"/>
<attribute default="${excludes}" name="excludes"/>
<attribute default="**" name="testincludes"/>
<attribute default="" name="testmethods"/>
<element name="customize" optional="true"/>
<sequential>
<property name="run.jvmargs.ide" value=""/>
<junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${platform.java}" showoutput="true" tempdir="${build.dir}">
<batchtest todir="${build.test.results.dir}">
<fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
<filename name="${test.binarytestincludes}"/>
</fileset>
</batchtest>
<syspropertyset>
<propertyref prefix="test-sys-prop."/>
<mapper from="test-sys-prop.*" to="*" type="glob"/>
</syspropertyset>
<formatter type="brief" usefile="false"/>
<formatter type="xml"/>
<jvmarg value="-ea"/>
<jvmarg line="${run.jvmargs.ide}"/>
<customize/>
</junit>
</sequential>
</macrodef>
</target>
<target depends="-init-macrodef-junit-init,-init-macrodef-junit-single, -init-macrodef-junit-batch" if="${junit.available}" name="-init-macrodef-junit"/>
<target if="${testng.available}" name="-init-macrodef-testng">
<macrodef name="testng" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${includes}" name="includes"/>
<attribute default="${excludes}" name="excludes"/>
<attribute default="**" name="testincludes"/>
<attribute default="" name="testmethods"/>
<element name="customize" optional="true"/>
<sequential>
<condition else="" property="testng.methods.arg" value="@{testincludes}.@{testmethods}">
<isset property="test.method"/>
</condition>
<union id="test.set"/>
<taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
<testng classfilesetref="test.set" failureProperty="tests.failed" jvm="${platform.java}" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="DDA_CRN_Terminacion" testname="TestNG tests" workingDir="${basedir}">
<xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
<propertyset>
<propertyref prefix="test-sys-prop."/>
<mapper from="test-sys-prop.*" to="*" type="glob"/>
</propertyset>
<customize/>
</testng>
</sequential>
</macrodef>
</target>
<target name="-init-macrodef-test-impl">
<macrodef name="test-impl" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${includes}" name="includes"/>
<attribute default="${excludes}" name="excludes"/>
<attribute default="**" name="testincludes"/>
<attribute default="" name="testmethods"/>
<element implicit="true" name="customize" optional="true"/>
<sequential>
<echo>No tests executed.</echo>
</sequential>
</macrodef>
</target>
<target depends="-init-macrodef-junit" if="${junit.available}" name="-init-macrodef-junit-impl">
<macrodef name="test-impl" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${includes}" name="includes"/>
<attribute default="${excludes}" name="excludes"/>
<attribute default="**" name="testincludes"/>
<attribute default="" name="testmethods"/>
<element implicit="true" name="customize" optional="true"/>
<sequential>
<webproject2:junit excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
<customize/>
</webproject2:junit>
</sequential>
</macrodef>
</target>
<target depends="-init-macrodef-testng" if="${testng.available}" name="-init-macrodef-testng-impl">
<macrodef name="test-impl" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${includes}" name="includes"/>
<attribute default="${excludes}" name="excludes"/>
<attribute default="**" name="testincludes"/>
<attribute default="" name="testmethods"/>
<element implicit="true" name="customize" optional="true"/>
<sequential>
<webproject2:testng excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
<customize/>
</webproject2:testng>
</sequential>
</macrodef>
</target>
<target depends="-init-macrodef-test-impl,-init-macrodef-junit-impl,-init-macrodef-testng-impl" name="-init-macrodef-test">
<macrodef name="test" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${includes}" name="includes"/>
<attribute default="${excludes}" name="excludes"/>
<attribute default="**" name="testincludes"/>
<attribute default="" name="testmethods"/>
<sequential>
<webproject2:test-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
<customize>
<classpath>
<path path="${run.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}"/>
</classpath>
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
<jvmarg line="${runmain.jvmargs}"/>
</customize>
</webproject2:test-impl>
</sequential>
</macrodef>
</target>
<target if="${junit.available}" name="-init-macrodef-junit-debug" unless="${nb.junit.batch}">
<macrodef name="junit-debug" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${includes}" name="includes"/>
<attribute default="${excludes}" name="excludes"/>
<attribute default="**" name="testincludes"/>
<attribute default="" name="testmethods"/>
<element name="customize" optional="true"/>
<sequential>
<junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${platform.java}" showoutput="true" tempdir="${java.io.tmpdir}">
<test methods="@{testmethods}" name="@{testincludes}" todir="${build.test.results.dir}"/>
<syspropertyset>
<propertyref prefix="test-sys-prop."/>
<mapper from="test-sys-prop.*" to="*" type="glob"/>
</syspropertyset>
<formatter type="brief" usefile="false"/>
<formatter type="xml"/>
<jvmarg value="-ea"/>
<jvmarg value="-agentlib:jdwp=transport=${debug-transport},address=${jpda.address}"/>
<customize/>
</junit>
</sequential>
</macrodef>
</target>
<target depends="-init-test-properties" if="${nb.junit.batch}" name="-init-macrodef-junit-debug-batch">
<macrodef name="junit-debug" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${includes}" name="includes"/>
<attribute default="${excludes}" name="excludes"/>
<attribute default="**" name="testincludes"/>
<attribute default="" name="testmethods"/>
<element name="customize" optional="true"/>
<sequential>
<property name="run.jvmargs.ide" value=""/>
<junit dir="${basedir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${platform.java}" showoutput="true" tempdir="${build.dir}">
<batchtest todir="${build.test.results.dir}">
<fileset dir="${build.test.classes.dir}" excludes="@{excludes},${excludes},${test.binaryexcludes}" includes="${test.binaryincludes}">
<filename name="${test.binarytestincludes}"/>
</fileset>
</batchtest>
<syspropertyset>
<propertyref prefix="test-sys-prop."/>
<mapper from="test-sys-prop.*" to="*" type="glob"/>
</syspropertyset>
<formatter type="brief" usefile="false"/>
<formatter type="xml"/>
<jvmarg value="-ea"/>
<jvmarg line="${run.jvmargs.ide}"/>
<jvmarg value="-agentlib:jdwp=transport=${debug-transport},address=${jpda.address}"/>
<customize/>
</junit>
</sequential>
</macrodef>
</target>
<target depends="-init-macrodef-junit-debug,-init-macrodef-junit-debug-batch" if="${junit.available}" name="-init-macrodef-junit-debug-impl">
<macrodef name="test-debug-impl" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${includes}" name="includes"/>
<attribute default="${excludes}" name="excludes"/>
<attribute default="**" name="testincludes"/>
<attribute default="" name="testmethods"/>
<element implicit="true" name="customize" optional="true"/>
<sequential>
<webproject2:junit-debug excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
<customize/>
</webproject2:junit-debug>
</sequential>
</macrodef>
</target>
<target if="${testng.available}" name="-init-macrodef-testng-debug">
<macrodef name="testng-debug" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${main.class}" name="testClass"/>
<attribute default="" name="testMethod"/>
<element name="customize2" optional="true"/>
<sequential>
<condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
<isset property="test.method"/>
</condition>
<condition else="-suitename DDA_CRN_Terminacion -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
<matches pattern=".*\.xml" string="@{testClass}"/>
</condition>
<delete dir="${build.test.results.dir}" quiet="true"/>
<mkdir dir="${build.test.results.dir}"/>
<webproject1:debug args="${testng.cmd.args}" classname="org.testng.TestNG" classpath="${debug.test.classpath}:${j2ee.platform.embeddableejb.classpath}">
<customize>
<customize2/>
<jvmarg value="-ea"/>
<arg line="${testng.debug.mode}"/>
<arg line="-d ${build.test.results.dir}"/>
<arg line="-listener org.testng.reporters.VerboseReporter"/>
</customize>
</webproject1:debug>
</sequential>
</macrodef>
</target>
<target depends="-init-macrodef-testng-debug" if="${testng.available}" name="-init-macrodef-testng-debug-impl">
<macrodef name="testng-debug-impl" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${main.class}" name="testClass"/>
<attribute default="" name="testMethod"/>
<element implicit="true" name="customize2" optional="true"/>
<sequential>
<webproject2:testng-debug testClass="@{testClass}" testMethod="@{testMethod}">
<customize2/>
</webproject2:testng-debug>
</sequential>
</macrodef>
</target>
<target depends="-init-macrodef-junit-debug-impl" if="${junit.available}" name="-init-macrodef-test-debug-junit">
<macrodef name="test-debug" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${includes}" name="includes"/>
<attribute default="${excludes}" name="excludes"/>
<attribute default="**" name="testincludes"/>
<attribute default="" name="testmethods"/>
<attribute default="${main.class}" name="testClass"/>
<attribute default="" name="testMethod"/>
<sequential>
<webproject2:test-debug-impl excludes="@{excludes}" includes="@{includes}" testincludes="@{testincludes}" testmethods="@{testmethods}">
<customize>
<classpath>
<path path="${run.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}"/>
</classpath>
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
<jvmarg line="${runmain.jvmargs}"/>
</customize>
</webproject2:test-debug-impl>
</sequential>
</macrodef>
</target>
<target depends="-init-macrodef-testng-debug-impl" if="${testng.available}" name="-init-macrodef-test-debug-testng">
<macrodef name="test-debug" uri="http://www.netbeans.org/ns/web-project/2">
<attribute default="${includes}" name="includes"/>
<attribute default="${excludes}" name="excludes"/>
<attribute default="**" name="testincludes"/>
<attribute default="" name="testmethods"/>
<attribute default="${main.class}" name="testClass"/>
<attribute default="" name="testMethod"/>
<sequential>
<webproject2:testng-debug-impl testClass="@{testClass}" testMethod="@{testMethod}">
<customize2>
<syspropertyset>
<propertyref prefix="test-sys-prop."/>
<mapper from="test-sys-prop.*" to="*" type="glob"/>
</syspropertyset>
</customize2>
</webproject2:testng-debug-impl>
</sequential>
</macrodef>
</target>
<target depends="-init-macrodef-test-debug-junit,-init-macrodef-test-debug-testng" name="-init-macrodef-test-debug"/>
<target name="-init-macrodef-java">
<macrodef name="java" uri="http://www.netbeans.org/ns/web-project/1">
<attribute default="${main.class}" name="classname"/>
<attribute default="${debug.classpath}" name="classpath"/>
<element name="customize" optional="true"/>
<sequential>
<java classname="@{classname}" fork="true" jvm="${platform.java}">
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
<jvmarg line="${runmain.jvmargs}"/>
<classpath>
<path path="@{classpath}:${j2ee.platform.classpath}"/>
</classpath>
<syspropertyset>
<propertyref prefix="run-sys-prop."/>
<mapper from="run-sys-prop.*" to="*" type="glob"/>
</syspropertyset>
<customize/>
</java>
</sequential>
</macrodef>
</target>
<target name="-init-macrodef-nbjsdebug">
<macrodef name="nbjsdebugstart" uri="http://www.netbeans.org/ns/web-project/1">
<attribute default="${client.url}" name="webUrl"/>
<sequential>
<nbjsdebugstart urlPart="${client.urlPart}" webUrl="@{webUrl}"/>
</sequential>
</macrodef>
</target>
<target depends="-init-debug-args" name="-init-macrodef-nbjpda">
<macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/web-project/1">
<attribute default="${main.class}" name="name"/>
<attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
<sequential>
<nbjpdastart addressproperty="jpda.address" name="@{name}" transport="${debug-transport}">
<classpath>
<path path="@{classpath}"/>
</classpath>
<bootclasspath>
<path path="${platform.bootcp}"/>
</bootclasspath>
</nbjpdastart>
</sequential>
</macrodef>
<macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/web-project/1">
<attribute default="${build.classes.dir}" name="dir"/>
<sequential>
<nbjpdareload>
<fileset dir="@{dir}" includes="${fix.classes}">
<include name="${fix.includes}*.class"/>
</fileset>
</nbjpdareload>
</sequential>
</macrodef>
<macrodef name="nbjpdaappreloaded" uri="http://www.netbeans.org/ns/web-project/1">
<sequential>
<nbjpdaappreloaded/>
</sequential>
</macrodef>
</target>
<target name="-init-debug-args">
<condition else="dt_socket" property="debug-transport-by-os" value="dt_shmem">
<os family="windows"/>
</condition>
<condition else="${debug-transport-by-os}" property="debug-transport" value="${debug.transport}">
<isset property="debug.transport"/>
</condition>
</target>
<target depends="-init-debug-args" name="-init-macrodef-debug">
<macrodef name="debug" uri="http://www.netbeans.org/ns/web-project/1">
<attribute default="${main.class}" name="classname"/>
<attribute default="${debug.classpath}:${j2ee.platform.classpath}" name="classpath"/>
<attribute default="${application.args.param}" name="args"/>
<element name="customize" optional="true"/>
<sequential>
<java classname="@{classname}" fork="true" jvm="${platform.java}">
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
<jvmarg value="-agentlib:jdwp=transport=${debug-transport},address=${jpda.address}"/>
<jvmarg line="${runmain.jvmargs}"/>
<classpath>
<path path="@{classpath}"/>
</classpath>
<syspropertyset>
<propertyref prefix="run-sys-prop."/>
<mapper from="run-sys-prop.*" to="*" type="glob"/>
</syspropertyset>
<arg line="@{args}"/>
<customize/>
</java>
</sequential>
</macrodef>
</target>
<target name="-init-taskdefs">
<fail unless="libs.CopyLibs.classpath">
The libs.CopyLibs.classpath property is not set up.
This property must point to
org-netbeans-modules-java-j2seproject-copylibstask.jar file which is part
of NetBeans IDE installation and is usually located at
&lt;netbeans_installation&gt;/java&lt;version&gt;/ant/extra folder.
Either open the project in the IDE and make sure CopyLibs library
exists or setup the property manually. For example like this:
ant -Dlibs.CopyLibs.classpath=a/path/to/org-netbeans-modules-java-j2seproject-copylibstask.jar
</fail>
<taskdef classpath="${libs.CopyLibs.classpath}" resource="org/netbeans/modules/java/j2seproject/copylibstask/antlib.xml"/>
</target>
<target name="-init-ap-cmdline-properties">
<property name="annotation.processing.enabled" value="true"/>
<property name="annotation.processing.processors.list" value=""/>
<property name="annotation.processing.run.all.processors" value="true"/>
<property name="javac.processorpath" value="${javac.classpath}"/>
<property name="javac.test.processorpath" value="${javac.test.classpath}"/>
<condition property="ap.supported.internal" value="true">
<not>
<matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
</not>
</condition>
</target>
<target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
<condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
<isfalse value="${annotation.processing.run.all.processors}"/>
</condition>
<condition else="" property="ap.proc.none.internal" value="-proc:none">
<isfalse value="${annotation.processing.enabled}"/>
</condition>
</target>
<target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
<property name="ap.cmd.line.internal" value=""/>
</target>
<!--
pre NB7.2 profiling section; consider it deprecated
-->
<target depends="-profile-pre-init, init, -profile-post-init, -profile-init-check" if="profiler.info.jvmargs.agent" name="profile-init"/>
<target if="profiler.info.jvmargs.agent" name="-profile-pre-init">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target if="profiler.info.jvmargs.agent" name="-profile-post-init">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="-profile-pre-init, init, -profile-post-init" if="profiler.info.jvmargs.agent" name="-profile-init-check">
<fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
<fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
</target>
<!--
end of pre NB7.2 profiling section
-->
<target depends="-pre-init,-init-private,-init-libraries,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-test,-init-macrodef-test-debug,-init-macrodef-java,-init-macrodef-nbjpda,-init-macrodef-nbjsdebug,-init-macrodef-debug,-init-taskdefs,-init-ap-cmdline" name="init"/>
<!--
COMPILATION SECTION
-->
<target depends="init" if="no.dist.ear.dir" name="deps-module-jar" unless="no.deps"/>
<target depends="init" if="dist.ear.dir" name="deps-ear-jar" unless="no.deps"/>
<target depends="init, deps-module-jar, deps-ear-jar" name="deps-jar" unless="no.deps"/>
<target depends="init,deps-jar" name="-pre-pre-compile">
<mkdir dir="${build.classes.dir}"/>
</target>
<target name="-pre-compile">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target name="-copy-webdir">
<copy todir="${build.web.dir}">
<fileset dir="${web.docbase.dir}" excludes="${build.web.excludes},${excludes}" includes="${includes}"/>
</copy>
<copy todir="${build.web.dir}/WEB-INF">
<fileset dir="${webinf.dir}" excludes="${build.web.excludes}"/>
</copy>
</target>
<target depends="init, deps-jar, -pre-pre-compile, -pre-compile, -copy-manifest, -copy-persistence-xml, -copy-webdir, library-inclusion-in-archive,library-inclusion-in-manifest" if="have.sources" name="-do-compile">
<webproject2:javac destdir="${build.classes.dir}" gensrcdir="${build.generated.sources.dir}"/>
<copy todir="${build.classes.dir}">
<fileset dir="${src.resources.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
<fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
</copy>
</target>
<target if="has.custom.manifest" name="-copy-manifest">
<mkdir dir="${build.meta.inf.dir}"/>
<copy todir="${build.meta.inf.dir}">
<fileset dir="${conf.dir}" includes="MANIFEST.MF"/>
</copy>
</target>
<target if="has.persistence.xml" name="-copy-persistence-xml">
<mkdir dir="${build.web.dir}/WEB-INF/classes/META-INF"/>
<copy todir="${build.web.dir}/WEB-INF/classes/META-INF">
<fileset dir="${persistence.xml.dir}" includes="persistence.xml orm.xml"/>
</copy>
</target>
<target name="-post-compile">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project." name="compile"/>
<target name="-pre-compile-single">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,deps-jar,-pre-pre-compile" name="-do-compile-single">
<fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
<webproject2:javac excludes="" gensrcdir="${build.generated.sources.dir}" includes="${javac.includes}"/>
<copy todir="${build.classes.dir}">
<fileset dir="${src.resources.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
<fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
</copy>
</target>
<target name="-post-compile-single">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single" name="compile-single"/>
<property name="jspc.schemas" value="/resources/schemas/"/>
<property name="jspc.dtds" value="/resources/dtds/"/>
<target depends="compile" description="Test compile JSP pages to expose compilation errors." if="do.compile.jsps" name="compile-jsps">
<mkdir dir="${build.generated.dir}/src"/>
<java classname="org.netbeans.modules.web.project.ant.JspC" failonerror="true" fork="true">
<arg value="-uriroot"/>
<arg file="${basedir}/${build.web.dir}"/>
<arg value="-d"/>
<arg file="${basedir}/${build.generated.dir}/src"/>
<arg value="-die1"/>
<arg value="-schemas ${jspc.schemas}"/>
<arg value="-dtds ${jspc.dtds}"/>
<arg value="-compilerSourceVM ${javac.source}"/>
<arg value="-compilerTargetVM ${javac.target}"/>
<arg value="-javaEncoding ${source.encoding}"/>
<arg value="-sysClasspath ${libs.jsp-compilation-syscp.classpath}"/>
<classpath path="${java.home}/../lib/tools.jar:${libs.jsp-compiler.classpath}:${libs.jsp-compilation.classpath}"/>
</java>
<mkdir dir="${build.generated.dir}/classes"/>
<webproject2:javac classpath="${build.classes.dir}:${libs.jsp-compilation.classpath}:${javac.classpath}:${j2ee.platform.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src"/>
</target>
<target depends="compile" if="jsp.includes" name="-do-compile-single-jsp">
<fail unless="javac.jsp.includes">Must select some files in the IDE or set javac.jsp.includes</fail>
<mkdir dir="${build.generated.dir}/src"/>
<java classname="org.netbeans.modules.web.project.ant.JspCSingle" failonerror="true" fork="true">
<arg value="-uriroot"/>
<arg file="${basedir}/${build.web.dir}"/>
<arg value="-d"/>
<arg file="${basedir}/${build.generated.dir}/src"/>
<arg value="-die1"/>
<arg value="-schemas ${jspc.schemas}"/>
<arg value="-dtds ${jspc.dtds}"/>
<arg value="-sysClasspath ${libs.jsp-compilation-syscp.classpath}"/>
<arg value="-jspc.files"/>
<arg path="${jsp.includes}"/>
<arg value="-compilerSourceVM ${javac.source}"/>
<arg value="-compilerTargetVM ${javac.target}"/>
<arg value="-javaEncoding ${source.encoding}"/>
<classpath path="${java.home}/../lib/tools.jar:${libs.jsp-compiler.classpath}:${libs.jsp-compilation.classpath}"/>
</java>
<mkdir dir="${build.generated.dir}/classes"/>
<webproject2:javac classpath="${build.classes.dir}:${libs.jsp-compilation.classpath}:${javac.classpath}:${j2ee.platform.classpath}" destdir="${build.generated.dir}/classes" srcdir="${build.generated.dir}/src">
<customize>
<patternset includes="${javac.jsp.includes}"/>
</customize>
</webproject2:javac>
</target>
<target name="compile-single-jsp">
<fail unless="jsp.includes">Must select a file in the IDE or set jsp.includes</fail>
<antcall target="-do-compile-single-jsp"/>
</target>
<!--
DIST BUILDING SECTION
-->
<target name="-pre-dist">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.without.custom.manifest" name="-do-dist-without-manifest">
<dirname file="${dist.war}" property="dist.jar.dir"/>
<mkdir dir="${dist.jar.dir}"/>
<jar compress="${jar.compress}" jarfile="${dist.war}">
<fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*,${dist.archive.excludes}"/>
</jar>
</target>
<target depends="init,compile,compile-jsps,-pre-dist" if="do.war.package.with.custom.manifest" name="-do-dist-with-manifest">
<dirname file="${dist.war}" property="dist.jar.dir"/>
<mkdir dir="${dist.jar.dir}"/>
<jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
<fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*,${dist.archive.excludes}"/>
</jar>
</target>
<target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.without.custom.manifest" name="-do-tmp-dist-without-manifest">
<dirname file="${dist.war}" property="dist.jar.dir"/>
<mkdir dir="${dist.jar.dir}"/>
<jar compress="${jar.compress}" jarfile="${dist.war}">
<fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*,${dist.archive.excludes}"/>
</jar>
</target>
<target depends="init,compile,compile-jsps,-pre-dist" if="do.tmp.war.package.with.custom.manifest" name="-do-tmp-dist-with-manifest">
<dirname file="${dist.war}" property="dist.jar.dir"/>
<mkdir dir="${dist.jar.dir}"/>
<jar compress="${jar.compress}" jarfile="${dist.war}" manifest="${build.meta.inf.dir}/MANIFEST.MF">
<fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*,${dist.archive.excludes}"/>
</jar>
</target>
<target depends="init,compile,compile-jsps,-pre-dist,-do-dist-with-manifest,-do-dist-without-manifest" name="do-dist"/>
<target depends="init" if="dist.ear.dir" name="library-inclusion-in-manifest">
<copyfiles files="${file.reference.activation-1.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.commons-beanutils-1.7.0.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.commons-chain-1.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.commons-codec-1.6.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.commons-collections-3.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.commons-configuration-1.6.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.commons-dbcp-1.4.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.commons-digester-1.8.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.commons-discovery-0.2.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.commons-fileupload-1.1.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.commons-httpclient-3.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.commons-io-1.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.commons-lang-2.3.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.commons-lang3-3.2.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.commons-logging-1.1.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.commons-pool-1.4.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.commons-validator-1.3.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.dom4j-1.6.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.ezmorph.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.httpclient-4.2.3.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.httpcore-4.2.3.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.httpcore-nio-4.2.3.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.jackson-all-1.9.11.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.javax.servlet-3.0.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.json-lib-2.2.2-jdk15.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.log4j-1.2.16.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.mail-1.4.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.neethi-3.0.2.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.ojdbc6.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.org.springframework.aop-3.1.2.RELEASE.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.org.springframework.asm-3.1.2.RELEASE.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.org.springframework.aspects-3.1.2.RELEASE.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.org.springframework.beans-3.1.2.RELEASE.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.org.springframework.context-3.1.2.RELEASE.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.org.springframework.context.support-3.1.2.RELEASE.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.org.springframework.core-3.1.2.RELEASE.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.org.springframework.expression-3.1.2.RELEASE.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.org.springframework.jdbc-3.1.2.RELEASE.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.org.springframework.transaction-3.1.2.RELEASE.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.org.springframework.web-3.1.2.RELEASE.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.org.springframework.web.servlet-3.1.2.RELEASE.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.poi-3.9-20121203.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.poi-examples-3.9-20121203.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.poi-excelant-3.9-20121203.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.poi-ooxml-3.9-20121203.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.poi-ooxml-schemas-3.9-20121203.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.poi-scratchpad-3.9-20121203.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.quartz-1.8.5.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.slf4j-api-1.7.5.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.spring-ws-1.5.6-all.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.spring-ws-core-2.1.2.RELEASE.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.spring-xml-1.5.6.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.stax2-api-3.1.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.wsdl4j-1.6.3.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.wss4j-1.6.11.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.xercesImpl-2.8.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.xml-apis-1.3.04.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.xmlbeans-2.6.0.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.xmlschema-core-2.0.3.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.xmlsec-1.4.3.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.xom-1.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<mkdir dir="${build.web.dir}/META-INF"/>
<manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update"/>
</target>
<target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir">
<copyfiles files="${file.reference.activation-1.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-beanutils-1.7.0.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-chain-1.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-codec-1.6.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-collections-3.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-configuration-1.6.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-dbcp-1.4.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-digester-1.8.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-discovery-0.2.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-fileupload-1.1.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-httpclient-3.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-io-1.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-lang-2.3.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-lang3-3.2.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-logging-1.1.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-pool-1.4.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.commons-validator-1.3.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.dom4j-1.6.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.ezmorph.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.httpclient-4.2.3.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.httpcore-4.2.3.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.httpcore-nio-4.2.3.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.jackson-all-1.9.11.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.javax.servlet-3.0.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.json-lib-2.2.2-jdk15.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.log4j-1.2.16.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.mail-1.4.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.neethi-3.0.2.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.ojdbc6.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.org.springframework.aop-3.1.2.RELEASE.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.org.springframework.asm-3.1.2.RELEASE.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.org.springframework.aspects-3.1.2.RELEASE.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.org.springframework.beans-3.1.2.RELEASE.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.org.springframework.context-3.1.2.RELEASE.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.org.springframework.context.support-3.1.2.RELEASE.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.org.springframework.core-3.1.2.RELEASE.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.org.springframework.expression-3.1.2.RELEASE.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.org.springframework.jdbc-3.1.2.RELEASE.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.org.springframework.transaction-3.1.2.RELEASE.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.org.springframework.web-3.1.2.RELEASE.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.org.springframework.web.servlet-3.1.2.RELEASE.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.poi-3.9-20121203.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.poi-examples-3.9-20121203.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.poi-excelant-3.9-20121203.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.poi-ooxml-3.9-20121203.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.poi-ooxml-schemas-3.9-20121203.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.poi-scratchpad-3.9-20121203.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.quartz-1.8.5.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.slf4j-api-1.7.5.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.spring-ws-1.5.6-all.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.spring-ws-core-2.1.2.RELEASE.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.spring-xml-1.5.6.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.stax2-api-3.1.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.wsdl4j-1.6.3.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.wss4j-1.6.11.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.xercesImpl-2.8.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.xml-apis-1.3.04.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.xmlbeans-2.6.0.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.xmlschema-core-2.0.3.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.xmlsec-1.4.3.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.xom-1.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
</target>
<target depends="init" if="dist.ear.dir" name="-clean-webinf-lib">
<delete dir="${build.web.dir}/WEB-INF/lib"/>
</target>
<target depends="init,-clean-webinf-lib,compile,compile-jsps,-pre-dist,library-inclusion-in-manifest" if="do.tmp.war.package" name="do-ear-dist">
<dirname file="${dist.ear.war}" property="dist.jar.dir"/>
<mkdir dir="${dist.jar.dir}"/>
<jar compress="${jar.compress}" jarfile="${dist.ear.war}" manifest="${build.web.dir}/META-INF/MANIFEST.MF">
<fileset dir="${build.web.dir}" excludes="WEB-INF/classes/.netbeans_*,${dist.archive.excludes}"/>
</jar>
</target>
<target name="-post-dist">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,compile,-pre-dist,do-dist,-post-dist" description="Build distribution (WAR)." name="dist"/>
<target depends="init,-clean-webinf-lib,-init-cos,compile,-pre-dist,do-ear-dist,-post-dist" description="Build distribution (WAR) to be packaged into an EAR." name="dist-ear"/>
<!--
EXECUTION SECTION
-->
<target depends="run-deploy,run-display-browser" description="Deploy to server and show in browser." name="run"/>
<target name="-pre-run-deploy">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target name="-post-run-deploy">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target name="-pre-nbmodule-run-deploy">
<!-- Empty placeholder for easier customization. -->
<!-- This target can be overriden by NetBeans modules. Don't override it directly, use -pre-run-deploy task instead. -->
</target>
<target name="-post-nbmodule-run-deploy">
<!-- Empty placeholder for easier customization. -->
<!-- This target can be overriden by NetBeans modules. Don't override it directly, use -post-run-deploy task instead. -->
</target>
<target name="-run-deploy-am">
<!-- Task to deploy to the Access Manager runtime. -->
</target>
<target depends="init,-init-cos,compile,compile-jsps,-do-compile-single-jsp,-pre-dist,-do-tmp-dist-with-manifest,-do-tmp-dist-without-manifest,-pre-run-deploy,-pre-nbmodule-run-deploy,-run-deploy-nb,-init-deploy-ant,-deploy-ant,-run-deploy-am,-post-nbmodule-run-deploy,-post-run-deploy,-do-update-breakpoints" name="run-deploy"/>
<target if="netbeans.home" name="-run-deploy-nb">
<nbdeploy clientUrlPart="${client.urlPart}" debugmode="false" forceRedeploy="${forceRedeploy}"/>
</target>
<target name="-init-deploy-ant" unless="netbeans.home">
<property name="deploy.ant.archive" value="${dist.war}"/>
<property name="deploy.ant.docbase.dir" value="${web.docbase.dir}"/>
<property name="deploy.ant.resource.dir" value="${resource.dir}"/>
<property name="deploy.ant.enabled" value="true"/>
</target>
<target depends="dist,-run-undeploy-nb,-init-deploy-ant,-undeploy-ant" name="run-undeploy"/>
<target if="netbeans.home" name="-run-undeploy-nb">
<fail message="Undeploy is not supported from within the IDE"/>
</target>
<target depends="init,-pre-dist,dist,-post-dist" name="verify">
<nbverify file="${dist.war}"/>
</target>
<target depends="run-deploy,-init-display-browser,-display-browser-nb-old,-display-browser-nb,-display-browser-cl" name="run-display-browser"/>
<target if="do.display.browser" name="-init-display-browser">
<condition property="do.display.browser.nb.old">
<and>
<isset property="netbeans.home"/>
<not>
<isset property="browser.context"/>
</not>
</and>
</condition>
<condition property="do.display.browser.nb">
<and>
<isset property="netbeans.home"/>
<isset property="browser.context"/>
</and>
</condition>
<condition property="do.display.browser.cl">
<isset property="deploy.ant.enabled"/>
</condition>
</target>
<target if="do.display.browser.nb.old" name="-display-browser-nb-old">
<nbbrowse url="${client.url}"/>
</target>
<target if="do.display.browser.nb" name="-display-browser-nb">
<nbbrowse context="${browser.context}" url="${client.url}" urlPath="${client.urlPart}"/>
</target>
<target if="do.display.browser.cl" name="-get-browser" unless="browser">
<condition property="browser" value="rundll32">
<os family="windows"/>
</condition>
<condition else="" property="browser.args" value="url.dll,FileProtocolHandler">
<os family="windows"/>
</condition>
<condition property="browser" value="/usr/bin/open">
<os family="mac"/>
</condition>
<property environment="env"/>
<condition property="browser" value="${env.BROWSER}">
<isset property="env.BROWSER"/>
</condition>
<condition property="browser" value="/usr/bin/firefox">
<available file="/usr/bin/firefox"/>
</condition>
<condition property="browser" value="/usr/local/firefox/firefox">
<available file="/usr/local/firefox/firefox"/>
</condition>
<condition property="browser" value="/usr/bin/mozilla">
<available file="/usr/bin/mozilla"/>
</condition>
<condition property="browser" value="/usr/local/mozilla/mozilla">
<available file="/usr/local/mozilla/mozilla"/>
</condition>
<condition property="browser" value="/usr/sfw/lib/firefox/firefox">
<available file="/usr/sfw/lib/firefox/firefox"/>
</condition>
<condition property="browser" value="/opt/csw/bin/firefox">
<available file="/opt/csw/bin/firefox"/>
</condition>
<condition property="browser" value="/usr/sfw/lib/mozilla/mozilla">
<available file="/usr/sfw/lib/mozilla/mozilla"/>
</condition>
<condition property="browser" value="/opt/csw/bin/mozilla">
<available file="/opt/csw/bin/mozilla"/>
</condition>
</target>
<target depends="-get-browser" if="do.display.browser.cl" name="-display-browser-cl">
<fail unless="browser">
Browser not found, cannot launch the deployed application. Try to set the BROWSER environment variable.
</fail>
<property name="browse.url" value="${deploy.ant.client.url}${client.urlPart}"/>
<echo>Launching ${browse.url}</echo>
<exec executable="${browser}" spawn="true">
<arg line="${browser.args} ${browse.url}"/>
</exec>
</target>
<target depends="init,-init-cos,compile-single" name="run-main">
<fail unless="run.class">Must select one file in the IDE or set run.class</fail>
<webproject1:java classname="${run.class}"/>
</target>
<target depends="init,compile-test-single,-pre-test-run-single" name="run-test-with-main">
<fail unless="run.class">Must select one file in the IDE or set run.class</fail>
<webproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
</target>
<target depends="init" if="netbeans.home" name="-do-update-breakpoints">
<webproject1:nbjpdaappreloaded/>
</target>
<!--
DEBUGGING SECTION
-->
<target depends="init,-init-cos,compile,compile-jsps,-do-compile-single-jsp,-pre-dist,-do-tmp-dist-with-manifest,-do-tmp-dist-without-manifest" description="Debug project in IDE." if="netbeans.home" name="debug">
<nbstartserver debugmode="true"/>
<antcall target="connect-debugger"/>
<nbdeploy clientUrlPart="${client.urlPart}" debugmode="true" forceRedeploy="true"/>
<antcall target="debug-display-browser-old"/>
<antcall target="debug-display-browser"/>
<antcall target="connect-client-debugger"/>
</target>
<target if="do.debug.server" name="connect-debugger" unless="is.debugged">
<condition property="listeningcp" value="sourcepath">
<istrue value="${j2ee.compile.on.save}"/>
</condition>
<nbjpdaconnect address="${jpda.address}" host="${jpda.host}" listeningcp="${listeningcp}" name="${name}" transport="${jpda.transport}">
<classpath>
<path path="${debug.classpath}:${j2ee.platform.classpath}"/>
</classpath>
<sourcepath>
<path path="${web.docbase.dir}"/>
</sourcepath>
<bootclasspath>
<path path="${platform.bootcp}"/>
</bootclasspath>
</nbjpdaconnect>
</target>
<target if="do.display.browser.debug.old" name="debug-display-browser-old">
<nbbrowse url="${client.url}"/>
</target>
<target if="do.display.browser.debug" name="debug-display-browser">
<nbbrowse context="${browser.context}" url="${client.url}" urlPath="${client.urlPart}"/>
</target>
<target if="do.debug.client" name="connect-client-debugger">
<webproject1:nbjsdebugstart webUrl="${client.url}"/>
</target>
<target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
<fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
<webproject1:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
</target>
<target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
<target depends="init,compile,compile-jsps,-do-compile-single-jsp,debug" if="netbeans.home" name="debug-single"/>
<target depends="init" if="netbeans.home" name="-debug-start-debugger-main-test">
<webproject1:nbjpdastart classpath="${debug.test.classpath}" name="${debug.class}"/>
</target>
<target depends="init" if="netbeans.home" name="-debug-start-debugger">
<webproject1:nbjpdastart name="${debug.class}"/>
</target>
<target depends="init,compile-single" if="netbeans.home" name="-debug-start-debuggee-single">
<fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
<webproject1:debug classname="${debug.class}"/>
</target>
<target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single-main"/>
<target depends="init" name="-pre-debug-fix">
<fail unless="fix.includes">Must set fix.includes</fail>
<property name="javac.includes" value="${fix.includes}.java"/>
</target>
<target depends="init,-pre-debug-fix,compile-single" if="netbeans.home" name="-do-debug-fix">
<webproject1:nbjpdareload/>
</target>
<target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
<!--
=================
PROFILING SECTION
=================
-->
<!--
pre NB7.2 profiling section; consider it deprecated
-->
<target description="Profile a J2EE project in the IDE." if="profiler.info.jvmargs.agent" name="-profile-pre72">
<condition else="start-profiled-server" property="profiler.startserver.target" value="start-profiled-server-extraargs">
<isset property="profiler.info.jvmargs.extra"/>
</condition>
<antcall target="${profiler.startserver.target}"/>
<antcall target="run"/>
<antcall target="-profile-start-loadgen"/>
</target>
<target if="profiler.info.jvmargs.agent" name="start-profiled-server">
<nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
<jvmarg value="${profiler.info.jvmargs.agent}"/>
<jvmarg value="${profiler.j2ee.agentID}"/>
</nbstartprofiledserver>
</target>
<target if="profiler.info.jvmargs.agent" name="start-profiled-server-extraargs">
<nbstartprofiledserver forceRestart="${profiler.j2ee.serverForceRestart}" javaPlatform="${profiler.info.javaPlatform}" startupTimeout="${profiler.j2ee.serverStartupTimeout}">
<jvmarg value="${profiler.info.jvmargs.extra}"/>
<jvmarg value="${profiler.info.jvmargs.agent}"/>
<jvmarg value="${profiler.j2ee.agentID}"/>
</nbstartprofiledserver>
</target>
<target depends="profile-init,compile-test-single" if="profiler.info.jvmargs.agent" name="-profile-test-single-pre72">
<fail unless="netbeans.home">This target only works when run from inside the NetBeans IDE.</fail>
<nbprofiledirect>
<classpath>
<path path="${run.test.classpath}"/>
<path path="${j2ee.platform.classpath}"/>
</classpath>
</nbprofiledirect>
<junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
<env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
<jvmarg value="${profiler.info.jvmargs.agent}"/>
<jvmarg line="${profiler.info.jvmargs}"/>
<test name="${profile.class}"/>
<classpath>
<path path="${run.test.classpath}"/>
<path path="${j2ee.platform.classpath}"/>
</classpath>
<syspropertyset>
<propertyref prefix="test-sys-prop."/>
<mapper from="test-sys-prop.*" to="*" type="glob"/>
</syspropertyset>
<formatter type="brief" usefile="false"/>
<formatter type="xml"/>
</junit>
</target>
<target if="netbeans.home" name="-profile-check">
<condition property="profiler.configured">
<or>
<contains casesensitive="true" string="${run.jvmargs.ide}" substring="-agentpath:"/>
<contains casesensitive="true" string="${run.jvmargs.ide}" substring="-javaagent:"/>
</or>
</condition>
</target>
<target depends="init,-init-cos,compile,compile-jsps,-do-compile-single-jsp,-pre-dist,-do-tmp-dist-with-manifest,-do-tmp-dist-without-manifest" name="-do-profile">
<startprofiler/>
<nbstartserver profilemode="true"/>
<nbdeploy clientUrlPart="${client.urlPart}" forceRedeploy="true" profilemode="true"/>
<antcall target="debug-display-browser-old"/>
<antcall target="debug-display-browser"/>
<antcall target="-profile-start-loadgen"/>
</target>
<target depends="-profile-check,-profile-pre72" description="Profile a J2EE project in the IDE." if="profiler.configured" name="profile" unless="profiler.info.jvmargs.agent">
<antcall target="-do-profile"/>
</target>
<target depends="-profile-test-single-pre72" name="profile-test-single"/>
<target depends="-profile-check" if="profiler.configured" name="profile-test" unless="profiler.info.jvmargs.agent">
<startprofiler/>
<antcall target="test-single"/>
</target>
<target if="profiler.loadgen.path" name="-profile-start-loadgen">
<loadgenstart path="${profiler.loadgen.path}"/>
</target>
<!--
JAVADOC SECTION
-->
<target depends="init" if="have.sources" name="javadoc-build">
<mkdir dir="${dist.javadoc.dir}"/>
<javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" executable="${platform.javadoc}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
<classpath>
<path path="${javac.classpath}:${j2ee.platform.classpath}"/>
</classpath>
<fileset dir="${src.resources.dir}" excludes="${excludes}" includes="${includes}">
<filename name="**/*.java"/>
</fileset>
<fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
<filename name="**/*.java"/>
</fileset>
<fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
<include name="**/*.java"/>
</fileset>
</javadoc>
<copy todir="${dist.javadoc.dir}">
<fileset dir="${src.resources.dir}" excludes="${excludes}" includes="${includes}">
<filename name="**/doc-files/**"/>
</fileset>
<fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
<filename name="**/doc-files/**"/>
</fileset>
<fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
<include name="**/doc-files/**"/>
</fileset>
</copy>
</target>
<target depends="init,javadoc-build" if="netbeans.home" name="javadoc-browse" unless="no.javadoc.preview">
<nbbrowse file="${dist.javadoc.dir}/index.html"/>
</target>
<target depends="init,javadoc-build,javadoc-browse" description="Build Javadoc." name="javadoc"/>
<!--
TEST COMPILATION SECTION
-->
<target depends="init,compile" if="have.tests" name="-pre-pre-compile-test">
<mkdir dir="${build.test.classes.dir}"/>
<property name="j2ee.platform.embeddableejb.classpath" value=""/>
</target>
<target name="-pre-compile-test">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,compile,-pre-pre-compile-test,-pre-compile-test" if="have.tests" name="-do-compile-test">
<webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir=""/>
<copy todir="${build.test.classes.dir}"/>
</target>
<target name="-post-compile-test">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test" name="compile-test"/>
<target name="-pre-compile-test-single">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
<fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
<webproject2:javac classpath="${javac.test.classpath}:${j2ee.platform.classpath}:${j2ee.platform.embeddableejb.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" srcdir=""/>
<copy todir="${build.test.classes.dir}"/>
</target>
<target name="-post-compile-test-single">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single" name="compile-test-single"/>
<!--
TEST EXECUTION SECTION
-->
<target depends="init" if="have.tests" name="-pre-test-run">
<mkdir dir="${build.test.results.dir}"/>
</target>
<target depends="init,compile-test,-pre-test-run" if="have.tests" name="-do-test-run">
<webproject2:test includes="${includes}" testincludes="**/*Test.java"/>
</target>
<target depends="init,compile-test,-pre-test-run,-do-test-run" if="have.tests" name="-post-test-run">
<fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
</target>
<target depends="init" if="have.tests" name="test-report"/>
<target depends="init" if="netbeans.home+have.tests" name="-test-browse"/>
<target depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests." name="test"/>
<target depends="init" if="have.tests" name="-pre-test-run-single">
<mkdir dir="${build.test.results.dir}"/>
</target>
<target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single">
<fail unless="test.includes">Must select some files in the IDE or set test.includes</fail>
<webproject2:test excludes="" includes="${test.includes}" testincludes="${test.includes}"/>
</target>
<target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
<fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
</target>
<target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
<target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-do-test-run-single-method">
<fail unless="test.class">Must select some files in the IDE or set test.class</fail>
<fail unless="test.method">Must select some method in the IDE or set test.method</fail>
<webproject2:test excludes="" includes="${javac.includes}" testincludes="${test.class}" testmethods="${test.method}"/>
</target>
<target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method" if="have.tests" name="-post-test-run-single-method">
<fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
</target>
<target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single-method,-post-test-run-single-method" description="Run single unit test." name="test-single-method"/>
<!--
TEST DEBUGGING SECTION
-->
<target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test">
<fail unless="test.class">Must select one file in the IDE or set test.class</fail>
<webproject2:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testincludes="${javac.includes}"/>
</target>
<target depends="init,compile-test-single,-pre-test-run-single" if="have.tests" name="-debug-start-debuggee-test-method">
<fail unless="test.class">Must select one file in the IDE or set test.class</fail>
<fail unless="test.method">Must select some method in the IDE or set test.method</fail>
<webproject2:test-debug excludes="" includes="${javac.includes}" testClass="${test.class}" testMethod="${test.method}" testincludes="${test.class}" testmethods="${test.method}"/>
</target>
<target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
<webproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
</target>
<target depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
<target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test-method" name="debug-test-method"/>
<target depends="debug-test-method" name="debug-single-method"/>
<target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
<webproject1:nbjpdareload dir="${build.test.classes.dir}"/>
</target>
<target depends="init,-pre-debug-fix,-do-debug-fix-test" if="netbeans.home" name="debug-fix-test"/>
<!--
CLEANUP SECTION
-->
<target depends="init" name="deps-clean" unless="no.deps"/>
<target depends="init" name="do-clean">
<condition property="build.dir.to.clean" value="${build.web.dir}">
<isset property="dist.ear.dir"/>
</condition>
<property name="build.dir.to.clean" value="${build.web.dir}"/>
<delete includeEmptyDirs="true" quiet="true">
<fileset dir="${build.dir.to.clean}/WEB-INF/lib"/>
</delete>
<delete dir="${build.dir}"/>
<available file="${build.dir.to.clean}/WEB-INF/lib" property="status.clean-failed" type="dir"/>
<delete dir="${dist.dir}"/>
</target>
<target depends="do-clean" if="status.clean-failed" name="check-clean">
<echo message="Warning: unable to delete some files in ${build.web.dir}/WEB-INF/lib - they are probably locked by the J2EE server. "/>
<echo level="info" message="To delete all files undeploy the module from Server Registry in Runtime tab and then use Clean again."/>
</target>
<target depends="init" if="netbeans.home" name="undeploy-clean">
<nbundeploy failOnError="false" startServer="false"/>
</target>
<target name="-post-clean">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target depends="init,undeploy-clean,deps-clean,do-clean,check-clean,-post-clean" description="Clean build products." name="clean"/>
<target depends="clean" description="Clean build products." name="clean-ear"/>
</project>
build.xml.data.CRC32=5234ca90
build.xml.script.CRC32=11503530
build.xml.stylesheet.CRC32=1707db4f@1.88.0.1
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=5234ca90
nbproject/build-impl.xml.script.CRC32=0288b05a
nbproject/build-impl.xml.stylesheet.CRC32=334708a0@1.88.0.1
deploy.ant.properties.file=C:\\Users\\w10\\AppData\\Roaming\\NetBeans\\12.6\\tomcat70.properties
j2ee.server.domain=C:/apache-tomcat-7.0.67
j2ee.server.home=C:/Users/w10/Documents/DDA/apache-tomcat-7.0.67
j2ee.server.instance=tomcat70:home=C:\\Users\\w10\\Documents\\DDA\\apache-tomcat-7.0.67
javac.debug=true
javadoc.preview=true
selected.browser=default
user.properties.file=C:\\Users\\w10\\AppData\\Roaming\\NetBeans\\12.6\\build.properties
<?xml version="1.0" encoding="UTF-8"?>
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
</project-private>
annotation.processing.enabled=true
annotation.processing.enabled.in.editor=true
annotation.processing.processors.list=
annotation.processing.run.all.processors=true
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
build.classes.dir=${build.web.dir}/WEB-INF/classes
build.classes.excludes=**/*.java,**/*.form
build.dir=build
build.generated.dir=${build.dir}/generated
build.generated.sources.dir=${build.dir}/generated-sources
build.test.classes.dir=${build.dir}/test/classes
build.test.results.dir=${build.dir}/test/results
build.web.dir=${build.dir}/web
build.web.excludes=${build.classes.excludes}
client.urlPart=
compile.jsps=false
conf.dir=conf
debug.classpath=${build.classes.dir}:${javac.classpath}
debug.test.classpath=\
${run.test.classpath}
display.browser=true
dist.dir=dist
dist.ear.war=${dist.dir}/${war.ear.name}
dist.javadoc.dir=${dist.dir}/javadoc
dist.war=${dist.dir}/${war.name}
endorsed.classpath=\
${libs.javaee-endorsed-api-6.0.classpath}
excludes=
file.reference.activation-1.1.jar=lib/activation-1.1.jar
file.reference.commons-beanutils-1.7.0.jar=lib/commons-beanutils-1.7.0.jar
file.reference.commons-chain-1.1.jar=lib/commons-chain-1.1.jar
file.reference.commons-codec-1.6.jar=lib/commons-codec-1.6.jar
file.reference.commons-collections-3.1.jar=lib/commons-collections-3.1.jar
file.reference.commons-configuration-1.6.jar=lib/commons-configuration-1.6.jar
file.reference.commons-dbcp-1.4.jar=lib/commons-dbcp-1.4.jar
file.reference.commons-digester-1.8.jar=lib/commons-digester-1.8.jar
file.reference.commons-discovery-0.2.jar=lib/commons-discovery-0.2.jar
file.reference.commons-fileupload-1.1.1.jar=lib/commons-fileupload-1.1.1.jar
file.reference.commons-httpclient-3.1.jar=lib/commons-httpclient-3.1.jar
file.reference.commons-io-1.1.jar=lib/commons-io-1.1.jar
file.reference.commons-lang-2.3.jar=lib/commons-lang-2.3.jar
file.reference.commons-lang3-3.2.1.jar=lib/commons-lang3-3.2.1.jar
file.reference.commons-logging-1.1.1.jar=lib/commons-logging-1.1.1.jar
file.reference.commons-pool-1.4.jar=lib/commons-pool-1.4.jar
file.reference.commons-validator-1.3.1.jar=lib/commons-validator-1.3.1.jar
file.reference.DDA_CRN_Terminacion-src=src
file.reference.dom4j-1.6.1.jar=lib/dom4j-1.6.1.jar
file.reference.ezmorph.jar=lib/ezmorph.jar
file.reference.httpclient-4.2.3.jar=lib/httpclient-4.2.3.jar
file.reference.httpcore-4.2.3.jar=lib/httpcore-4.2.3.jar
file.reference.httpcore-nio-4.2.3.jar=lib/httpcore-nio-4.2.3.jar
file.reference.jackson-all-1.9.11.jar=lib/jackson-all-1.9.11.jar
file.reference.javax.servlet-3.0.jar=lib/javax.servlet-3.0.jar
file.reference.json-lib-2.2.2-jdk15.jar=lib/json-lib-2.2.2-jdk15.jar
file.reference.log4j-1.2.16.jar=lib/log4j-1.2.16.jar
file.reference.mail-1.4.jar=lib/mail-1.4.jar
file.reference.neethi-3.0.2.jar=lib/neethi-3.0.2.jar
file.reference.ojdbc6.jar=lib/ojdbc6.jar
file.reference.org.springframework.aop-3.1.2.RELEASE.jar=lib/org.springframework.aop-3.1.2.RELEASE.jar
file.reference.org.springframework.asm-3.1.2.RELEASE.jar=lib/org.springframework.asm-3.1.2.RELEASE.jar
file.reference.org.springframework.aspects-3.1.2.RELEASE.jar=lib/org.springframework.aspects-3.1.2.RELEASE.jar
file.reference.org.springframework.beans-3.1.2.RELEASE.jar=lib/org.springframework.beans-3.1.2.RELEASE.jar
file.reference.org.springframework.context-3.1.2.RELEASE.jar=lib/org.springframework.context-3.1.2.RELEASE.jar
file.reference.org.springframework.context.support-3.1.2.RELEASE.jar=lib/org.springframework.context.support-3.1.2.RELEASE.jar
file.reference.org.springframework.core-3.1.2.RELEASE.jar=lib/org.springframework.core-3.1.2.RELEASE.jar
file.reference.org.springframework.expression-3.1.2.RELEASE.jar=lib/org.springframework.expression-3.1.2.RELEASE.jar
file.reference.org.springframework.jdbc-3.1.2.RELEASE.jar=lib/org.springframework.jdbc-3.1.2.RELEASE.jar
file.reference.org.springframework.transaction-3.1.2.RELEASE.jar=lib/org.springframework.transaction-3.1.2.RELEASE.jar
file.reference.org.springframework.web-3.1.2.RELEASE.jar=lib/org.springframework.web-3.1.2.RELEASE.jar
file.reference.org.springframework.web.servlet-3.1.2.RELEASE.jar=lib/org.springframework.web.servlet-3.1.2.RELEASE.jar
file.reference.poi-3.9-20121203.jar=lib/poi-3.9-20121203.jar
file.reference.poi-examples-3.9-20121203.jar=lib/poi-examples-3.9-20121203.jar
file.reference.poi-excelant-3.9-20121203.jar=lib/poi-excelant-3.9-20121203.jar
file.reference.poi-ooxml-3.9-20121203.jar=lib/poi-ooxml-3.9-20121203.jar
file.reference.poi-ooxml-schemas-3.9-20121203.jar=lib/poi-ooxml-schemas-3.9-20121203.jar
file.reference.poi-scratchpad-3.9-20121203.jar=lib/poi-scratchpad-3.9-20121203.jar
file.reference.quartz-1.8.5.jar=lib/quartz-1.8.5.jar
file.reference.slf4j-api-1.7.5.jar=lib/slf4j-api-1.7.5.jar
file.reference.spring-ws-1.5.6-all.jar=lib/spring-ws-1.5.6-all.jar
file.reference.spring-ws-core-2.1.2.RELEASE.jar=lib/spring-ws-core-2.1.2.RELEASE.jar
file.reference.spring-xml-1.5.6.jar=lib/spring-xml-1.5.6.jar
file.reference.stax2-api-3.1.1.jar=lib/stax2-api-3.1.1.jar
file.reference.wsdl4j-1.6.3.jar=lib/wsdl4j-1.6.3.jar
file.reference.wss4j-1.6.11.jar=lib/wss4j-1.6.11.jar
file.reference.xercesImpl-2.8.1.jar=lib/xercesImpl-2.8.1.jar
file.reference.xml-apis-1.3.04.jar=lib/xml-apis-1.3.04.jar
file.reference.xmlbeans-2.6.0.jar=lib/xmlbeans-2.6.0.jar
file.reference.xmlschema-core-2.0.3.jar=lib/xmlschema-core-2.0.3.jar
file.reference.xmlsec-1.4.3.jar=lib/xmlsec-1.4.3.jar
file.reference.xom-1.1.jar=lib/xom-1.1.jar
includes=**
j2ee.compile.on.save=true
j2ee.copy.static.files.on.save=true
j2ee.deploy.on.save=true
j2ee.platform=1.6-web
j2ee.platform.classpath=${j2ee.server.home}/lib/activation-1.1.jar:${j2ee.server.home}/lib/annotations-api.jar:${j2ee.server.home}/lib/catalina-ant.jar:${j2ee.server.home}/lib/catalina-ha.jar:${j2ee.server.home}/lib/catalina-tribes.jar:${j2ee.server.home}/lib/catalina.jar:${j2ee.server.home}/lib/ecj-4.4.2.jar:${j2ee.server.home}/lib/el-api.jar:${j2ee.server.home}/lib/jasper-el.jar:${j2ee.server.home}/lib/jasper.jar:${j2ee.server.home}/lib/jsp-api.jar:${j2ee.server.home}/lib/ojdbc6-12.1.0.2.jar:${j2ee.server.home}/lib/servlet-api.jar:${j2ee.server.home}/lib/tomcat-api.jar:${j2ee.server.home}/lib/tomcat-coyote.jar:${j2ee.server.home}/lib/tomcat-dbcp.jar:${j2ee.server.home}/lib/tomcat-i18n-es.jar:${j2ee.server.home}/lib/tomcat-i18n-fr.jar:${j2ee.server.home}/lib/tomcat-i18n-ja.jar:${j2ee.server.home}/lib/tomcat-jdbc.jar:${j2ee.server.home}/lib/tomcat-util.jar:${j2ee.server.home}/lib/tomcat7-websocket.jar:${j2ee.server.home}/lib/websocket-api.jar
j2ee.server.type=Tomcat
jar.compress=false
java.source.based=true
javac.classpath=\
${file.reference.activation-1.1.jar}:\
${file.reference.commons-beanutils-1.7.0.jar}:\
${file.reference.commons-chain-1.1.jar}:\
${file.reference.commons-codec-1.6.jar}:\
${file.reference.commons-collections-3.1.jar}:\
${file.reference.commons-configuration-1.6.jar}:\
${file.reference.commons-dbcp-1.4.jar}:\
${file.reference.commons-digester-1.8.jar}:\
${file.reference.commons-discovery-0.2.jar}:\
${file.reference.commons-fileupload-1.1.1.jar}:\
${file.reference.commons-httpclient-3.1.jar}:\
${file.reference.commons-io-1.1.jar}:\
${file.reference.commons-lang-2.3.jar}:\
${file.reference.commons-lang3-3.2.1.jar}:\
${file.reference.commons-logging-1.1.1.jar}:\
${file.reference.commons-pool-1.4.jar}:\
${file.reference.commons-validator-1.3.1.jar}:\
${file.reference.dom4j-1.6.1.jar}:\
${file.reference.ezmorph.jar}:\
${file.reference.httpclient-4.2.3.jar}:\
${file.reference.httpcore-4.2.3.jar}:\
${file.reference.httpcore-nio-4.2.3.jar}:\
${file.reference.jackson-all-1.9.11.jar}:\
${file.reference.javax.servlet-3.0.jar}:\
${file.reference.json-lib-2.2.2-jdk15.jar}:\
${file.reference.log4j-1.2.16.jar}:\
${file.reference.mail-1.4.jar}:\
${file.reference.neethi-3.0.2.jar}:\
${file.reference.ojdbc6.jar}:\
${file.reference.org.springframework.aop-3.1.2.RELEASE.jar}:\
${file.reference.org.springframework.asm-3.1.2.RELEASE.jar}:\
${file.reference.org.springframework.aspects-3.1.2.RELEASE.jar}:\
${file.reference.org.springframework.beans-3.1.2.RELEASE.jar}:\
${file.reference.org.springframework.context-3.1.2.RELEASE.jar}:\
${file.reference.org.springframework.context.support-3.1.2.RELEASE.jar}:\
${file.reference.org.springframework.core-3.1.2.RELEASE.jar}:\
${file.reference.org.springframework.expression-3.1.2.RELEASE.jar}:\
${file.reference.org.springframework.jdbc-3.1.2.RELEASE.jar}:\
${file.reference.org.springframework.transaction-3.1.2.RELEASE.jar}:\
${file.reference.org.springframework.web-3.1.2.RELEASE.jar}:\
${file.reference.org.springframework.web.servlet-3.1.2.RELEASE.jar}:\
${file.reference.poi-3.9-20121203.jar}:\
${file.reference.poi-examples-3.9-20121203.jar}:\
${file.reference.poi-excelant-3.9-20121203.jar}:\
${file.reference.poi-ooxml-3.9-20121203.jar}:\
${file.reference.poi-ooxml-schemas-3.9-20121203.jar}:\
${file.reference.poi-scratchpad-3.9-20121203.jar}:\
${file.reference.quartz-1.8.5.jar}:\
${file.reference.slf4j-api-1.7.5.jar}:\
${file.reference.spring-ws-1.5.6-all.jar}:\
${file.reference.spring-ws-core-2.1.2.RELEASE.jar}:\
${file.reference.spring-xml-1.5.6.jar}:\
${file.reference.stax2-api-3.1.1.jar}:\
${file.reference.wsdl4j-1.6.3.jar}:\
${file.reference.wss4j-1.6.11.jar}:\
${file.reference.xercesImpl-2.8.1.jar}:\
${file.reference.xml-apis-1.3.04.jar}:\
${file.reference.xmlbeans-2.6.0.jar}:\
${file.reference.xmlschema-core-2.0.3.jar}:\
${file.reference.xmlsec-1.4.3.jar}:\
${file.reference.xom-1.1.jar}
# Space-separated list of extra javac options
javac.compilerargs=
javac.debug=true
javac.deprecation=false
javac.processorpath=\
${javac.classpath}
javac.source=1.7
javac.target=1.7
javac.test.classpath=\
${javac.classpath}:\
${build.classes.dir}
javac.test.processorpath=\
${javac.test.classpath}
javadoc.additionalparam=
javadoc.author=false
javadoc.encoding=${source.encoding}
javadoc.noindex=false
javadoc.nonavbar=false
javadoc.notree=false
javadoc.preview=true
javadoc.private=false
javadoc.splitindex=true
javadoc.use=true
javadoc.version=false
javadoc.windowtitle=
lib.dir=WebContent/WEB-INF/lib
persistence.xml.dir=${conf.dir}
platform.active=JDK_1.8
resource.dir=setup
run.test.classpath=\
${javac.test.classpath}:\
${build.test.classes.dir}
# Space-separated list of JVM arguments used when running a class with a main method or a unit test
# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value):
runmain.jvmargs=
source.encoding=ISO-8859-1
source.root=.
src.dir=${file.reference.DDA_CRN_Terminacion-src}
src.resources.dir=resources
test.src.dir=
war.content.additional=
war.ear.name=${war.name}
war.name=DDA_CRN_Terminacion.war
web.docbase.dir=WebContent
webinf.dir=WebContent/WEB-INF
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.web.project</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/web-project/3">
<name>DDA_CRN_Terminacion</name>
<minimum-ant-version>1.6.5</minimum-ant-version>
<explicit-platform explicit-source-supported="true"/>
<web-module-libraries>
<library dirs="200">
<file>${file.reference.activation-1.1.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.commons-beanutils-1.7.0.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.commons-chain-1.1.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.commons-codec-1.6.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.commons-collections-3.1.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.commons-configuration-1.6.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.commons-dbcp-1.4.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.commons-digester-1.8.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.commons-discovery-0.2.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.commons-fileupload-1.1.1.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.commons-httpclient-3.1.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.commons-io-1.1.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.commons-lang-2.3.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.commons-lang3-3.2.1.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.commons-logging-1.1.1.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.commons-pool-1.4.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.commons-validator-1.3.1.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.dom4j-1.6.1.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.ezmorph.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.httpclient-4.2.3.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.httpcore-4.2.3.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.httpcore-nio-4.2.3.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.jackson-all-1.9.11.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.javax.servlet-3.0.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.json-lib-2.2.2-jdk15.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.log4j-1.2.16.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.mail-1.4.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.neethi-3.0.2.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.ojdbc6.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.org.springframework.aop-3.1.2.RELEASE.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.org.springframework.asm-3.1.2.RELEASE.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.org.springframework.aspects-3.1.2.RELEASE.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.org.springframework.beans-3.1.2.RELEASE.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.org.springframework.context-3.1.2.RELEASE.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.org.springframework.context.support-3.1.2.RELEASE.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.org.springframework.core-3.1.2.RELEASE.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.org.springframework.expression-3.1.2.RELEASE.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.org.springframework.jdbc-3.1.2.RELEASE.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.org.springframework.transaction-3.1.2.RELEASE.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.org.springframework.web-3.1.2.RELEASE.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.org.springframework.web.servlet-3.1.2.RELEASE.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.poi-3.9-20121203.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.poi-examples-3.9-20121203.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.poi-excelant-3.9-20121203.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.poi-ooxml-3.9-20121203.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.poi-ooxml-schemas-3.9-20121203.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.poi-scratchpad-3.9-20121203.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.quartz-1.8.5.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.slf4j-api-1.7.5.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.spring-ws-1.5.6-all.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.spring-ws-core-2.1.2.RELEASE.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.spring-xml-1.5.6.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.stax2-api-3.1.1.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.wsdl4j-1.6.3.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.wss4j-1.6.11.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.xercesImpl-2.8.1.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.xml-apis-1.3.04.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.xmlbeans-2.6.0.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.xmlschema-core-2.0.3.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.xmlsec-1.4.3.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
<library dirs="200">
<file>${file.reference.xom-1.1.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war>
</library>
</web-module-libraries>
<web-module-additional-libraries/>
<source-roots>
<root id="src.resources.dir"/>
<root id="src.dir"/>
</source-roots>
<test-roots/>
</data>
<libraries xmlns="http://www.netbeans.org/ns/ant-project-libraries/1">
<definitions>.\lib\nblibraries.properties</definitions>
</libraries>
</configuration>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jee="http://www.springframework.org/schema/jee"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/jee
http://www.springframework.org/schema/jee/spring-jee-3.0.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
<context:component-scan base-package="mx.com.amx.mx.dda.crn"/>
<mvc:annotation-driven/>
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location">
<value>classpath:general.properties</value>
</property>
</bean>
<!--
<bean class="org.springframework.web.servlet.view.ContentNegotiatingViewResolver">
<property name="order" value="1" />
<property name="mediaTypes">
<map>
<entry key="json" value="application/json"/>
<entry key="html" value="text/html"/>
</map>
</property>
<property name="defaultViews">
<list>
<bean class="org.springframework.web.servlet.view.json.MappingJacksonJsonView">
<property name="prefixJson" value="true"/>
<property name="contentType" value="application/json;charset=UTF-8"/>
</bean>
</list>
</property>
<property name="ignoreAcceptHeader" value="true" />
</bean>
<bean id="jaxbMarshallerBean" class="org.springframework.oxm.jaxb.Jaxb2Marshaller">
<property name="classesToBeBound">
<list>
<value>com.americamovil.dda.enviacontenido.DTContenido</value>
<value>com.americamovil.dda.enviacontenido.DTContenidoRes</value>
</list>
</property>
<property name="marshallerProperties">
<map>
<entry key="jaxb.encoding">
<value>UTF-8</value>
</entry>
</map>
</property>
</bean>
<bean id="messageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory"/>
-->
<!-- WS Notificacion Activo Fijo SAP -->
<!--
<bean id="wsNotificaAFijoSAP" class="org.springframework.ws.client.core.WebServiceTemplate">
<constructor-arg ref="messageFactory"/>
<property name="marshaller" ref="jaxbMarshallerBean" />
<property name="unmarshaller" ref="jaxbMarshallerBean" />
<property name="messageSender">
<bean class="org.springframework.ws.transport.http.CommonsHttpMessageSender">
<property name="credentials">
<bean class="org.apache.commons.httpclient.UsernamePasswordCredentials">
<constructor-arg value="${sap.services.credenciales}"/>
</bean>
</property>
</bean>
</property>
</bean>
-->
<!-- BO -->
<bean id="ddaTerminacionBO" class="mx.com.amx.mx.dda.crn.bo.DDATerminacionBO">
<property name="dao" ref="ddaTerminacionDAO" />
</bean>
<!--DAO -->
<bean id="ddaTerminacionDAO" class="mx.com.amx.mx.dda.crn.dao.DDATerminacionDAO">
<property name="jdbcTemplate" ref="jdbcTemplate" />
</bean>
<!-- JNDI -->
<jee:jndi-lookup id="dsDDA" jndi-name="${database.jndi}" cache="true" expected-type="javax.sql.DataSource" />
<bean id="jdbcTemplate" class="org.springframework.jdbc.core.JdbcTemplate">
<property name="dataSource" ref="dsDDA" />
</bean>
<!-- CRN -->
<bean id="terminacion_DDA" class="mx.com.amx.mx.dda.crn.DDATerminacion" >
<property name="bo" ref="ddaTerminacionBO" />
</bean>
<bean id="cronTerminacion_DDA"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"
p:concurrent="false"
p:targetObject-ref="terminacion_DDA"
p:targetMethod="ejecutaProceso">
</bean>
<bean id="triggerTerminacion_DDA" class="org.springframework.scheduling.quartz.CronTriggerBean"
p:jobDetail-ref="cronTerminacion_DDA"
p:startDelay="1000"
p:cronExpression="0 0 8 * * ? *" >
<!-- Seconds Minutes Hours Day-Month Month Day-Week Year -->
<!-- LOCAL p:cronExpression="0 */2 * * * ? *" > c2min -->
<!-- DEV p:cronExpression="0 0 1 * * ? *" > 1:00am -->
<!-- QA p:cronExpression="0 0 8 * * ? *" > 8:00am -->
<!-- PRD p:cronExpression="0 0 2 * * ? *" > 2:00am -->
</bean>
<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean"
p:waitForJobsToCompleteOnShutdown="true" >
<property name="triggers">
<list>
<ref bean="triggerTerminacion_DDA" />
</list>
</property>
</bean>
<!-- log4j setting -->
<bean id="log4jInitialization" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="targetClass" value="org.springframework.util.Log4jConfigurer" />
<property name="targetMethod" value="initLogging" />
<property name="arguments">
<list>
<value>${log4j.properties.location}</value>
</list>
</property>
</bean>
</beans>
#-----------------------------------------------
# Ambiente local/desarrollo/preprod/produccion
#-----------------------------------------------
ambiente=produccion
#-----------------------------------------------
# Variables Generales
#-----------------------------------------------
database.jndi=${${ambiente}.database.jndi}
log4j.properties.location=${${ambiente}.log4j.properties.location}
sap.services.credenciales=${${ambiente}.sap.services.credenciales}
#-----------------------------------------------
# Propiedades Produccion
#-----------------------------------------------
produccion.database.jndi=jdbc/DBDLA
produccion.log4j.properties.location=classpath:log4j.prod.properties
#-----------------------------------------------
# Propiedades Preproduccion
#-----------------------------------------------
preprod.database.jndi=jdbc/DBDLA
preprod.log4j.properties.location=classpath:log4j.pre.properties
#-----------------------------------------------
# Propiedades Desarrollo
#-----------------------------------------------
desarrollo.database.jndi=jdbc/DBDLA
desarrollo.log4j.properties.location=classpath:log4j.dev.properties
#-----------------------------------------------
# Propiedades Local
#-----------------------------------------------
local.database.jndi=jdbc/DBDLA
local.log4j.properties.location=classpath:log4j.local.properties
#-----------------------------------------------
# Parametros
#-----------------------------------------------
puede.ejecutar=DDA_TERMINACION_PUEDE_EJECUTAR
iniciado=DDA_TERMINACION_INICIADO
modulo=TERMINACION
#-----------------------------------------------
# Estatus del Contrato
#-----------------------------------------------
estatus.vigente=5
estatus.autorizado=4
estatus.terminado=6
#-----------------------------------------------
# Valores varios
#-----------------------------------------------
tipo.contrato.suscripcion=1
estatus.titulo.activo=ACTIVO
log4j.rootCategory=INFO, LOGFILE
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=%-5p %c %x[%L] - %m%n
log4j.appender.LOGFILE=org.apache.log4j.RollingFileAppender
log4j.appender.LOGFILE.File=logs/mx/dda/ws/DDA_WS.log
log4j.appender.LOGFILE.Append=true
log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.LOGFILE.layout.ConversionPattern=[%d{dd MMM yyyy HH:mm:ss}]%-5p %c %x[%L] - %m%n
log4j.appender.LOGFILE.MaxFileSize=10MB
log4j.appender.LOGFILE.MaxBackupIndex=30
\ No newline at end of file
#log4j.rootCategory=ALL, CONSOLE, LOGFILE
log4j.rootCategory=DEBUG, CONSOLE, LOGFILE
# CONSOLE is set to be a ConsoleAppender using a PatternLayout.
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
#log4j.appender.CONSOLE.Threshold=debug
log4j.appender.CONSOLE.Threshold=DEBUG
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=%-5p %c %x[%L] - %m%n
# LOGFILE is set to be a File appender using a PatternLayout.
log4j.appender.LOGFILE=org.apache.log4j.RollingFileAppender
log4j.appender.LOGFILE.File=logs/mx/dda/ws/DDA_WS.log
log4j.appender.LOGFILE.Append=true
log4j.appender.LOGFILE.Threshold=ALL
log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.LOGFILE.layout.ConversionPattern=[%d{dd MMM yyyy HH\:mm\:ss}]%-5p %c %x[%L] - %m%n
log4j.appender.LOGFILE.MaxFileSize=10MB
log4j.appender.LOGFILE.MaxBackupIndex=20
\ No newline at end of file
log4j.rootCategory=DEBUG, LOGFILE
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=%-5p %c %x[%L] - %m%n
log4j.appender.LOGFILE=org.apache.log4j.RollingFileAppender
#log4j.appender.LOGFILE.File=logs/mx/dda/ws/DDA_WS.log
log4j.appender.LOGFILE.File=logs/mx/dda/ws/DDA_WS_CRN_T.log
log4j.appender.LOGFILE.Append=true
log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.LOGFILE.layout.ConversionPattern=[%d{dd MMM yyyy HH:mm:ss}]%-5p %c %x[%L] - %m%n
log4j.appender.LOGFILE.MaxFileSize=10MB
log4j.appender.LOGFILE.MaxBackupIndex=30
\ No newline at end of file
log4j.rootCategory=INFO, LOGFILE
log4j.appender.LOGFILE=org.apache.log4j.RollingFileAppender
log4j.appender.LOGFILE.File=logs/mx/dda/ws/DDA_WS_CRN_T.log
log4j.appender.LOGFILE.Append=true
log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.LOGFILE.layout.ConversionPattern=[%d{dd MMM yyyy HH:mm:ss}]%-5p %c %x[%L] - %m%n
log4j.appender.LOGFILE.MaxFileSize=10MB
log4j.appender.LOGFILE.MaxBackupIndex=30
\ No newline at end of file
package mx.com.amx.mx.dda.crn;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.List;
import java.util.Properties;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import mx.com.amx.mx.dda.crn.bo.DDATerminacionBO;
import mx.com.amx.mx.dda.crn.dto.ContratoDTO;
import mx.com.amx.mx.dda.crn.dto.ContratoEstatusDTO;
import mx.com.amx.mx.dda.crn.dto.ContratoTituloDTO;
import mx.com.amx.mx.dda.crn.utils.DateManager;
import org.apache.log4j.Logger;
public class DDATerminacion implements ApplicationContextAware
{
private ApplicationContext context;
private final String ARCHIVO_PROPIEDADES = "/general.properties";
private final Logger LOG = Logger.getLogger(this.getClass().getSimpleName());
Properties env = new Properties();
DateManager dateManager = new DateManager();
private DDATerminacionBO bo;
private String ESTATUS_TERMINADO;
public DDATerminacion()
{
super();
try
{
env.load( this.getClass().getResourceAsStream( ARCHIVO_PROPIEDADES ) );
ESTATUS_TERMINADO = env.getProperty("estatus.terminado");
}
catch(Exception e)
{
LOG.error(">Constructor["+this.getClass().getSimpleName()+"] Ocurrio un error : " + e.getMessage() );
}
}
public void ejecutaProceso()
{
LOG.info(" ");
LOG.info("<< :::::::::::::::: Inicia Proceso Terminacion DDA :::::::::::::::: >>");
try
{
//-- 1. Verifica que no se este ejecutando ya un proceso de Terminacion
LOG.info(" [INI]. Paso 1.- Verifica bandera de ejecucion de proceso de Terminacion.");
boolean boEjecutandoseProceso = bo.existeProcesoEjecutandose();
LOG.info(" [INI]. Paso 1.- Verifica bandera de ejecucion de proceso de Terminacion. Esta ejecutando?: _" + boEjecutandoseProceso+"_");
if(!boEjecutandoseProceso)
{
//-- 2. Verificar si se puede iniciar el proceso
LOG.info(" [INI]. Paso 2.- Verifica si se puede iniciar el proceso de Terminacion.");
boolean boIniciar = bo.verificaPuedeIniciar();
LOG.info(" [FIN]. Paso 2.- Verifica si se puede iniciar el proceso de Terminacion. Resultado: _" + boIniciar+"_");
if(boIniciar)
{
//-- 3. Actualiza bandera indicando que inicia el proceso general de Terminacion
LOG.info(" [INI]. Paso 3.- Prendiendo Bandera Inicio Proceso General Costo de Renta.");
boolean boActualizarBanderaIniciaProceso = bo.actualizarEjecutandoProceso("1");
LOG.info(" [FIN]. Paso 3.- Prendiendo Bandera Inicio Proceso General Costo de Renta. Resultado: _"+boActualizarBanderaIniciaProceso+"_");
if(boActualizarBanderaIniciaProceso)
{
//--4. Obtener fecha actual del sistema
LOG.info(" [INI]. Paso 4.- Obtener fecha actual.");
String lstFechaActual = dateManager.getFechaActual("dd/mm/yyyy");
LOG.info(" [INI]. Paso 4.- Obtener fecha actual. Resultado:_"+lstFechaActual+"_");
if(lstFechaActual != null && lstFechaActual.trim().length() > 0)
{
//------5. Busqueda de contratos vigentes tipo Suscripcion
LOG.info(" [INI]. Paso 5.- Buscando contratos vigentes tipo Suscripcion.");
List<ContratoDTO> lobContratos = bo.consultaContratosVigentes();
LOG.info(" [FIN]. Paso 5.- Buscando contratos vigentes tipo Suscripcion. Resultado:_" + lobContratos.size()+"_");
if(lobContratos != null && lobContratos.size() > 0)
{
//------6. Recorrido de los contratos obtenidos
LOG.info(" [INI]. Paso 6.- Recorrido de los contratos obtenidos.");
int lnuTotalContratos = lobContratos.size();
int lnuTotalContratosTerminados = 0;
for(int xContrato = 0; xContrato < lnuTotalContratos; xContrato++ )
{
ContratoDTO contrato = (ContratoDTO)lobContratos.get(xContrato);
String lstIdContrato = (contrato.getID_CONTRATO() != null && contrato.getID_CONTRATO().trim().length() > 0) ? contrato.getID_CONTRATO() : "";
LOG.info(" ");
LOG.info(" CONTRATO: <Registro:["+xContrato+"],IdContrato:["+lstIdContrato+"]>");
//----7. Consulta la maxima fecha de los titulos asociados al contrato
LOG.info(" [INI]. Paso 7.- Buscando maxima fecha de los Titulos asociados a contrato ["+lstIdContrato+"].");
String lstMaximaFechaTitulos = bo.obtenerMaxFechaTitulosPorContrato(lstIdContrato);
LOG.info(" [FIN]. Paso 7.- Buscando maxima fecha de los Titulos asociados a contrato ["+lstIdContrato+"]. Resultado:_"+lstMaximaFechaTitulos+"_");
if(lstMaximaFechaTitulos != null && lstMaximaFechaTitulos.trim().length() > 0)
{
//--8. Validacion de fecha de fin del titulo vs fecha actual
int lnuResFecha = dateManager.compararFechas(lstMaximaFechaTitulos, lstFechaActual);
LOG.info(" [INI/FIN]. Paso 8.- Validacion fecha fin - fecha actual. Resultado:_"+lnuResFecha+"_");
if(lnuResFecha == -1)
{
//--9. Actualizacion de estatus al contrato en cuestion
LOG.info(" [INI]. Paso 9.- Actualizacion de estatus al contrato ["+lstIdContrato+"].");
ContratoDTO cntUpd = new ContratoDTO();
cntUpd.setID_CONTRATO(lstIdContrato);
cntUpd.setID_ESTATUS(ESTATUS_TERMINADO);
boolean lboActualizacion = bo.actualizarContrato(cntUpd);
LOG.info(" [FIN]. Paso 9.- Actualizacion de estatus al contrato ["+lstIdContrato+"]. Resultado:_"+lboActualizacion+"_");
if(lboActualizacion)
{
lnuTotalContratosTerminados++;
//--11. Historico de estatus
LOG.info(" [INI]. Paso 10.- Registro en bitacora de historico de estatus contrato ["+lstIdContrato+"].");
ContratoEstatusDTO cntEstatus = new ContratoEstatusDTO();
cntEstatus.setEXPEDIENTE(null);
cntEstatus.setID_CONTRATO(lstIdContrato);
cntEstatus.setID_ESTATUS(ESTATUS_TERMINADO);
boolean lboBitacoraEstatus = bo.registrarBitacoraEstatus(cntEstatus);
LOG.info(" [FIN]. Paso 10.- Registro en bitacora de historico de estatus contrato ["+lstIdContrato+"]. Resultado:_"+lboBitacoraEstatus+"_");
}
else
{
LOG.error("DDA-TER-007: Ocurrio un error al actualizar el estatus a Terminado del Contrato ["+lstIdContrato+"].");
}
}//Ends if(lnuResFecha == -1)
}
else
{
LOG.error("DDA-TER-006: No se pubo obtener la fecha maxima de los titulos asociados al contrato ["+lstIdContrato+"].");
}
}//Ends for(int xContrato = 0; xContrato < lnuTotalContratos; xContrato++ )
LOG.info(" [FIN]. Paso 6.- Recorrido de los contratos obtenidos.");
LOG.info("------------------------------------------------------------------------- ");
LOG.info("- Resumen de proceso: ");
LOG.info("------------------------------------------------------------------------- ");
LOG.info("Total de Contratos encontrados: ["+ lnuTotalContratos+"]");
LOG.info("Total de Contratos Terminados: [" + lnuTotalContratosTerminados+"]");
LOG.info(" ");
LOG.info("------------------------------------------------------------------------- ");
//--Finalizacion de proceso
bo.actualizarEjecutandoProceso("0");
LOG.info("Apaga bandera de proceso Terminacion.[Finalizacion proceso. ]");
}//Termina if(lobContratos != null && lobContratos.size() > 0)
else
{
LOG.error("DDA-TER-005: No se encontraron contratos vigentes tipo Suscripcion.");
bo.actualizarEjecutandoProceso("0");
LOG.info("Apaga bandera de proceso Terminacion.[Else_lobContratos_null]");
}
} // Ends if(lstFechaActual != null && lstFechaActual.trim().length() > 0)
else
{
LOG.error("DDA-TER-004: No se pudo obtener la fecha actual del sistema.");
bo.actualizarEjecutandoProceso("0");
LOG.info("Apaga bandera de proceso Terminacion.[Else_obtenerFechaActualSistema]");
}
}//Ends if(boActualizarBanderaIniciaProceso)
else
{
LOG.error("DDA-TER-003: No se pudo actualizar la bandera de inicio de proceso.");
bo.actualizarEjecutandoProceso("0");
LOG.info("Apaga bandera de proceso Terminacion.[Else_boActualizarBanderaIniciaProceso]");
}
}//Ends if(boIniciar)
else
{
LOG.error("DDA-TER-002: No se han otorgado los permisos para poder iniciar el proceso.");
}
}//Ends if(!boEjecutandoseProceso)
else
{
LOG.error("DDA-TER-001: Es probable que se haya iniciado este proceso previamente.");
}
}
catch (Exception e)
{
LOG.error("Exception["+this.getClass().getSimpleName()+"::ejecutaProceso]: "+e.getMessage() );
StringWriter stack = new StringWriter();
e.printStackTrace(new PrintWriter(stack));
LOG.debug("Stack : " + stack.toString());
}
LOG.info("<< :::::::::::::::: Finaliza Proceso Terminacion DDA :::::::::::::::: >>");
LOG.info(" ");
}
@Override
public void setApplicationContext(ApplicationContext arg0) throws BeansException
{
LOG.info("Entering to the application Context...");
this.context = context;
}
public DDATerminacionBO getBo() {
return bo;
}
public void setBo(DDATerminacionBO bo) {
this.bo = bo;
}
}
package mx.com.amx.mx.dda.crn.bo;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import java.util.Properties;
import javax.xml.ws.WebServiceException;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import org.springframework.ws.client.core.WebServiceTemplate;
import org.springframework.ws.soap.client.SoapFaultClientException;
import mx.com.amx.mx.dda.crn.dao.DDATerminacionDAO;
import mx.com.amx.mx.dda.crn.dto.ContratoDTO;
import mx.com.amx.mx.dda.crn.dto.ContratoEstatusDTO;
import mx.com.amx.mx.dda.crn.dto.ContratoTituloDTO;
public class DDATerminacionBO
{
private final Logger LOG = Logger.getLogger(this.getClass().getSimpleName());
private final String ARCHIVO_PROPIEDADES = "/general.properties";
Properties env = new Properties();
private DDATerminacionDAO dao;
private String COMPONENTE;
public DDATerminacionBO()
{
super();
try
{
env.load( this.getClass().getResourceAsStream( ARCHIVO_PROPIEDADES ) );
COMPONENTE = "DDA_CRN_Terminacion::" + this.getClass().getSimpleName();
}
catch(Exception e)
{
LOG.error(">Constructor["+this.getClass().getSimpleName()+"] Ocurrio un error : " + e.getMessage() );
}
}
public boolean existeProcesoEjecutandose() throws Exception
{
LOG.debug(" - ["+this.getClass().getSimpleName()+"::existeProcesoEjecutandose]");
boolean resultado = false;
try
{
resultado = dao.verificaEjecutandoseProceso();
}
catch(Exception e)
{
LOG.error("Exception["+this.getClass().getSimpleName()+"::existeProcesoEjecutandose]: "+e.getMessage() );
throw new Exception(e.getMessage());
}
return resultado;
}
public boolean verificaPuedeIniciar() throws Exception
{
LOG.debug(" - ["+this.getClass().getSimpleName()+"::verificaPuedeIniciar]");
boolean resultado = false;
try
{
resultado = dao.puedeIniciarProceso();
}
catch(Exception e)
{
LOG.error("Exception["+this.getClass().getSimpleName()+"::verificaPuedeIniciar]: "+e.getMessage() );
throw new Exception(e.getMessage());
}
return resultado;
}
public boolean actualizarEjecutandoProceso(String pstValor) throws Exception
{
LOG.debug(" - ["+this.getClass().getSimpleName()+"::actualizarEjecutandoProceso]");
LOG.debug(" - Parametros: _" + pstValor+"_");
boolean resultado = false;
try
{
resultado = dao.updateEjecutandoseProceso(pstValor);
}
catch(Exception e)
{
LOG.error("Exception["+this.getClass().getSimpleName()+"::actualizarEjecutandoProceso]: "+e.getMessage() );
throw new Exception(e.getMessage());
}
return resultado;
}
public List<ContratoDTO> consultaContratosVigentes() throws Exception
{
LOG.debug(" - ["+this.getClass().getSimpleName()+"::consultaContratosVigentes]");
List<ContratoDTO> lobResultado = new ArrayList<ContratoDTO>();
try
{
lobResultado = dao.obtenerContratosVigentes();
}
catch(Exception e)
{
LOG.error("Exception["+this.getClass().getSimpleName()+"::consultaContratosVigentes]: "+e.getMessage() );
throw new Exception(e.getMessage());
}
return lobResultado;
}
public DDATerminacionDAO getDao() {
return dao;
}
public void setDao(DDATerminacionDAO dao) {
this.dao = dao;
}
public String getFechaActual(String pstFormato)
{
String lstFechaActual = "";
Calendar lobTiempoActual = Calendar.getInstance();
//--
int lnuDiaActual = lobTiempoActual.get(Calendar.DAY_OF_MONTH);
int lnuMesActual = lobTiempoActual.get(Calendar.MONTH) + 1;
int lnuAnnioActual = lobTiempoActual.get(Calendar.YEAR);
//--
String lstTmpDia = (lobTiempoActual.get(Calendar.DAY_OF_MONTH) < 10) ? "0" +Integer.toString(lobTiempoActual.get(Calendar.DAY_OF_MONTH)) : Integer.toString(lobTiempoActual.get(Calendar.DAY_OF_MONTH));
String lstTmpMes = (lnuMesActual < 10 ) ? "0" + Integer.toString(lnuMesActual) : Integer.toString(lnuMesActual);
String lstTmpAnnio = Integer.toString(lnuAnnioActual);
String lstHora = (lobTiempoActual.get(Calendar.HOUR_OF_DAY) < 10) ? "0" +Integer.toString(lobTiempoActual.get(Calendar.HOUR_OF_DAY)) : Integer.toString(lobTiempoActual.get(Calendar.HOUR_OF_DAY));
String lstMinutos = (lobTiempoActual.get(Calendar.MINUTE) < 10) ? "0" +Integer.toString(lobTiempoActual.get(Calendar.MINUTE)) : Integer.toString(lobTiempoActual.get(Calendar.MINUTE));
String lstSegundos = (lobTiempoActual.get(Calendar.SECOND) < 10) ? "0" +Integer.toString(lobTiempoActual.get(Calendar.SECOND)) : Integer.toString(lobTiempoActual.get(Calendar.SECOND));
if(pstFormato.equalsIgnoreCase("dd/mm/yyyy"))
lstFechaActual = lstTmpDia + "/" + lstTmpMes + "/" + lstTmpAnnio;
else if(pstFormato.equalsIgnoreCase("mm/dd/yyyy"))
lstFechaActual = lstTmpMes + "/" + lstTmpDia + "/" + lstTmpAnnio;
else if(pstFormato.equalsIgnoreCase("yyyy/mm/dd"))
lstFechaActual = lstTmpAnnio + "/" + lstTmpMes + "/" + lstTmpDia;
else if(pstFormato.equalsIgnoreCase("dd/mm/yyyy hh:mi:ss"))
lstFechaActual = lstTmpDia + "/" + lstTmpMes + "/" + lstTmpAnnio + lstHora + ":" + lstMinutos + ":" + lstSegundos;
else if(pstFormato.equalsIgnoreCase("mm/dd/yyyy hh:mi:ss"))
lstFechaActual = lstTmpMes + "/" + lstTmpDia + "/" + lstTmpAnnio + lstHora + ":" + lstMinutos + ":" + lstSegundos;
else if(pstFormato.equalsIgnoreCase("yyyy/mm/dd hh:mi:ss"))
lstFechaActual = lstTmpAnnio + "/" + lstTmpMes + "/" + lstTmpDia + lstHora + ":" + lstMinutos + ":" + lstSegundos;
if(pstFormato.equalsIgnoreCase("dd-mm-yyyy"))
lstFechaActual = lstTmpDia + "-" + lstTmpMes + "-" + lstTmpAnnio;
else if(pstFormato.equalsIgnoreCase("mm-dd-yyyy"))
lstFechaActual = lstTmpMes + "-" + lstTmpDia + "-" + lstTmpAnnio;
else if(pstFormato.equalsIgnoreCase("yyyy-mm-dd"))
lstFechaActual = lstTmpAnnio + "-" + lstTmpMes + "-" + lstTmpDia;
else if(pstFormato.equalsIgnoreCase("dd.mm.yyyy"))
lstFechaActual = lstTmpDia + "." + lstTmpMes + "." + lstTmpAnnio;
else if(pstFormato.equalsIgnoreCase("mm/yyyy"))
lstFechaActual = lstTmpMes + "/" + lstTmpAnnio;
else if(pstFormato.equalsIgnoreCase("yyyy/mm"))
lstFechaActual = lstTmpAnnio + "/" + lstTmpMes;
else if(pstFormato.equalsIgnoreCase("yyyy-mm"))
lstFechaActual = lstTmpAnnio + "-" + lstTmpMes;
return lstFechaActual;
}
public boolean actualizarContrato(ContratoDTO dto) throws Exception
{
LOG.debug(" - ["+this.getClass().getSimpleName()+"::actualizarContrato]");
LOG.debug(" - Parametros: _" + dto.toString()+"_");
boolean resultado = false;
try
{
resultado = dao.actualizaContratoFull(dto);
}
catch(Exception e)
{
LOG.error("Exception["+this.getClass().getSimpleName()+"::actualizarContrato]: "+e.getMessage() );
throw new Exception(e.getMessage());
}
return resultado;
}
public boolean registrarBitacoraEstatus(ContratoEstatusDTO dto) throws Exception
{
LOG.debug(" - ["+this.getClass().getSimpleName()+"::registrarBitacoraEstatus]");
LOG.debug(" - Parametros: _" + dto.toString()+"_");
boolean resultado = false;
try
{
resultado = dao.registraBitacoraEstatus(dto);
}
catch(Exception e)
{
LOG.error("Exception["+this.getClass().getSimpleName()+"::registrarBitacoraEstatus]: "+e.getMessage() );
throw new Exception(e.getMessage());
}
return resultado;
}
public String obtenerMaxFechaTitulosPorContrato(String pstIdContrato) throws Exception
{
LOG.debug(" - ["+this.getClass().getSimpleName()+"::obtenerMaxFechaTitulosPorContrato]");
LOG.debug(" - Parametros: _" + pstIdContrato+"_");
String resultado = "";
try
{
resultado = dao.obtenerMaximaFechaTitulosPorContrato(pstIdContrato);
}
catch(Exception e)
{
LOG.error("Exception["+this.getClass().getSimpleName()+"::obtenerMaxFechaTitulosPorContrato]: "+e.getMessage() );
throw new Exception(e.getMessage());
}
return resultado;
}
}
package mx.com.amx.mx.dda.crn.dao;
import java.sql.Timestamp;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.dao.EmptyResultDataAccessException;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;
import mx.com.amx.mx.dda.crn.dto.ContratoDTO;
import mx.com.amx.mx.dda.crn.dto.ContratoEstatusDTO;
import mx.com.amx.mx.dda.crn.dto.ContratoTituloDTO;
@Component
@Qualifier("ddaTerminacionDAO")
public class DDATerminacionDAO implements IDDATerminacionDAO
{
private final Logger LOG = Logger.getLogger(this.getClass().getSimpleName());
private final String ARCHIVO_PROPIEDADES = "/general.properties";
Properties env = new Properties();
private JdbcTemplate jdbcTemplate;
private String PUEDE_EJECUTAR;
private String INICIADO;
private String MODULO;
private String ESTATUS_VIGENTE;
private String TIPO_CONTRATO_SUSCRIPCION;
private String ESTATUS_TITULO_ACTIVO;
public JdbcTemplate getJdbcTemplate() {
return jdbcTemplate;
}
public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {
this.jdbcTemplate = jdbcTemplate;
}
public DDATerminacionDAO()
{
super();
try
{
env.load( this.getClass().getResourceAsStream( ARCHIVO_PROPIEDADES ) );
PUEDE_EJECUTAR=env.getProperty("puede.ejecutar");
INICIADO=env.getProperty("iniciado");
MODULO=env.getProperty("modulo");
ESTATUS_VIGENTE = env.getProperty("estatus.vigente");
TIPO_CONTRATO_SUSCRIPCION = env.getProperty("tipo.contrato.suscripcion");
ESTATUS_TITULO_ACTIVO = env.getProperty("estatus.titulo.activo");
}
catch(Exception e)
{
LOG.error(">Constructor["+this.getClass().getSimpleName()+"] Ocurrio un error : " + e.getMessage() );
}
}
@Override
public boolean verificaEjecutandoseProceso() throws Exception
{
boolean lboEjecutando = false;
StringBuffer sb = new StringBuffer();
StringBuffer sbD = new StringBuffer();
List qryParams = new ArrayList();
try
{
//--Debug
sbD.append("select ");
sbD.append("DECODE(VALOR, 1,'INICIADO', ");
sbD.append(" 0,'STANDBY', ");
sbD.append(" 'STANDBY') as VALOR_TEXTO ");
sbD.append("from ");
sbD.append("DLA_C_PARAMETRO ");
sbD.append("where ");
sbD.append("CLAVE = '"+INICIADO+"' ");
sbD.append("AND MODULO = '"+MODULO+"' ");
LOG.debug(">Sql_D [verificaEjecutandoseProceso]:" + sbD.toString());
//--Ejecucion
sb.append("select ");
sb.append("DECODE(VALOR, 1,'INICIADO', ");
sb.append(" 0,'STANDBY', ");
sb.append(" 'STANDBY') as VALOR_TEXTO ");
sb.append("from ");
sb.append("DLA_C_PARAMETRO ");
sb.append("where ");
sb.append("CLAVE = ? ");
sb.append("AND MODULO = ? ");
final String lstSQL = sb.toString();
qryParams.add(INICIADO);
qryParams.add(MODULO);
String lstValor = (String) jdbcTemplate.queryForObject(lstSQL,qryParams.toArray(),String.class);
if(lstValor.equalsIgnoreCase("INICIADO"))
lboEjecutando = true;
}
catch(EmptyResultDataAccessException er)
{
LOG.error("Exception["+this.getClass().getSimpleName()+"::verificaEjecutandoseProceso]: No se encontraron registros coincidentes con la clave especificada. " + er.getMessage() );
throw new Exception("No se encontraron registros coincidentes con la clave especificada");
}
catch(Exception e)
{
LOG.error("Exception["+this.getClass().getSimpleName()+"::verificaEjecutandoseProceso]: "+e.getMessage() );
throw new Exception(e.getMessage());
}
return lboEjecutando;
}
@Override
public boolean puedeIniciarProceso() throws Exception
{
boolean resultado = false;
StringBuffer sb = new StringBuffer();
StringBuffer sbD = new StringBuffer();
List qryParams = new ArrayList();
try
{
//--Debug
sbD.append("select ");
sbD.append("NVL(VALOR,'0') as VALOR ");
sbD.append("from ");
sbD.append("DLA_C_PARAMETRO ");
sbD.append("where ");
sbD.append("CLAVE = '"+PUEDE_EJECUTAR+"' ");
sbD.append("AND MODULO = '"+MODULO+"' ");
LOG.debug(">Sql_D [puedeIniciarProceso]:" + sbD.toString());
//--Ejecucion
sb.append("select ");
sb.append("NVL(VALOR,'0') as VALOR ");
sb.append("from ");
sb.append("DLA_C_PARAMETRO ");
sb.append("where ");
sb.append("CLAVE = ? ");
sb.append("AND MODULO = ? ");
final String lstSQL = sb.toString();
qryParams.add(PUEDE_EJECUTAR);
qryParams.add(MODULO);
String lstValor = (String) jdbcTemplate.queryForObject(lstSQL,qryParams.toArray(),String.class);
if(lstValor.equals("1"))
resultado = true;
}
catch(EmptyResultDataAccessException er)
{
LOG.error("Exception["+this.getClass().getSimpleName()+"::puedeIniciarProceso]: No se encontraron registros coincidentes con la clave especificada. " + er.getMessage() );
throw new Exception("No se encontraron registros coincidentes con la clave especificada");
}
catch(Exception e)
{
LOG.error("Exception["+this.getClass().getSimpleName()+"::puedeIniciarProceso]: "+e.getMessage() );
throw new Exception(e.getMessage());
}
return resultado;
}
@Override
public boolean updateEjecutandoseProceso(String pstValor) throws Exception
{
boolean resultado = false;
StringBuffer sb = new StringBuffer();
StringBuffer sbD = new StringBuffer();
List qryParams = new ArrayList();
int lnuRowsUpdate = 0;
try
{
String lstValor = (pstValor != null && pstValor.length() > 0) ? pstValor: "";
//--Debug
sbD.append("update ");
sbD.append("DLA_C_PARAMETRO ");
sbD.append("set VALOR = "+lstValor+" ");
sbD.append("where ");
sbD.append("CLAVE = '"+INICIADO+"' ");
sbD.append("AND MODULO = '"+MODULO+"' ");
LOG.debug(">Sql_D [updateEjecutandoseProceso]:" + sbD.toString());
//--Ejecucion
sb.append("update ");
sb.append("DLA_C_PARAMETRO ");
sb.append("set VALOR = ? ");
sb.append("where ");
sb.append("CLAVE = ? ");
sb.append("AND MODULO = ? ");
final String lstSQL = sb.toString();
qryParams.add(lstValor);
qryParams.add(INICIADO);
qryParams.add(MODULO);
lnuRowsUpdate = jdbcTemplate.update(lstSQL,qryParams.toArray());
if(lnuRowsUpdate > 0)
resultado = true;
}
catch(Exception e)
{
LOG.error("Exception["+this.getClass().getSimpleName()+"::updateEjecutandoseProceso]: "+e.getMessage() );
throw new Exception(e.getMessage());
}
return resultado;
}
@Override
public List<ContratoDTO> obtenerContratosVigentes() throws Exception
{
List<ContratoDTO> lobResultado = new ArrayList<ContratoDTO>();
StringBuffer sb = new StringBuffer();
StringBuffer sbD = new StringBuffer();
List qryParams = new ArrayList();
try
{
//--Debug
sbD.append("select ");
sbD.append("ID_CONTRATO ");
sbD.append("from ");
sbD.append("DDA_T_CONTRATO ");
sbD.append("where ");
sbD.append("ID_ESTATUS = "+ESTATUS_VIGENTE+" ");
sbD.append("order by ID_CONTRATO ");
LOG.debug(">Sql_D [obtenerContratosVigentes]:" + sbD.toString());
//--Ejecucion
sb.append("select ");
sb.append("ID_CONTRATO ");
sb.append("from ");
sb.append("DDA_T_CONTRATO ");
sb.append("where ");
sb.append("ID_ESTATUS = ? ");
sb.append("order by ID_CONTRATO ");
final String lstSQL = sb.toString();
qryParams.add(ESTATUS_VIGENTE);
lobResultado = (ArrayList<ContratoDTO>) getJdbcTemplate().query(lstSQL,qryParams.toArray(),new BeanPropertyRowMapper<ContratoDTO>(ContratoDTO.class));
}
catch(Exception e)
{
LOG.error("Exception["+this.getClass().getSimpleName()+"::obtenerContratosVigentes]: "+e.getMessage() );
throw new Exception(e.getMessage());
}
return lobResultado;
}
@Override
public boolean actualizaContratoFull(ContratoDTO dto) throws Exception
{
boolean resultado = false;
StringBuffer sb = new StringBuffer();
StringBuffer sbD = new StringBuffer();
List qryParams = new ArrayList();
int lnuRowsUpdate = 0;
String lstIdContrato = (dto.getID_CONTRATO() != null && dto.getID_CONTRATO().trim().length() > 0) ? dto.getID_CONTRATO() : "VACIO";
String lstIdEstudio = (dto.getID_ESTUDIO() != null && dto.getID_ESTUDIO().trim().length() > 0) ? dto.getID_ESTUDIO() : "VACIO";
String lstIdEstatus = (dto.getID_ESTATUS() != null && dto.getID_ESTATUS().trim().length() > 0) ? dto.getID_ESTATUS() : "VACIO";
String lstIdTipoMovimiento = (dto.getID_TIPO_MOVIMIENTO() != null && dto.getID_TIPO_MOVIMIENTO().trim().length() > 0) ? dto.getID_TIPO_MOVIMIENTO() : "VACIO";
String lstIdTipoContrato = (dto.getID_TIPO_CONTRATO() != null && dto.getID_TIPO_CONTRATO().trim().length() > 0) ? dto.getID_TIPO_CONTRATO() : "VACIO";
String lstIdApartado = (dto.getID_APARTADO() != null && dto.getID_APARTADO().trim().length() > 0) ? dto.getID_APARTADO() : "VACIO";
String lstNumContrato = (dto.getNUMERO_CONTRATO() != null && dto.getNUMERO_CONTRATO().trim().length() > 0) ? dto.getNUMERO_CONTRATO() : "VACIO";
String lstFechaInicio = (dto.getFECHA_INICIO() != null && dto.getFECHA_INICIO().trim().length() > 0) ? dto.getFECHA_INICIO() : "VACIO";
String lstFechaFin = (dto.getFECHA_FIN() != null && dto.getFECHA_FIN().trim().length() > 0) ? dto.getFECHA_FIN() : "VACIO";
String lstIdCntOriginal = (dto.getID_CONTRATO_ORIGINAL() != null && dto.getID_CONTRATO_ORIGINAL().trim().length() > 0) ? dto.getID_CONTRATO_ORIGINAL() : "VACIO";
String lstFechaAlta = (dto.getFECHA_ALTA() != null && dto.getFECHA_ALTA().trim().length() > 0) ? dto.getFECHA_ALTA() : "VACIO";
String lstIdSap = (dto.getID_SAP() != null && dto.getID_SAP().trim().length() > 0) ? dto.getID_SAP() : "VACIO";
String lstAmortizable = (dto.getAMORTIZABLE() != null && dto.getAMORTIZABLE().trim().length() > 0) ? dto.getAMORTIZABLE() : "VACIO";
String lstFechaWS = (dto.getFECHA_WS() != null && dto.getFECHA_WS().trim().length() > 0) ? dto.getFECHA_WS() : "VACIO";
String lstFechaModifSAP = (dto.getFECHA_MODIFSAP() != null && dto.getFECHA_MODIFSAP().trim().length() > 0) ? dto.getFECHA_MODIFSAP() : "VACIO";
DateFormat df = new SimpleDateFormat ("yyyy-MM-dd HH:mm:ss");
Timestamp lobTSFecha = new Timestamp(df.parse("2015-01-01 12:00:00").getTime());
try
{
//--Debug
sbD.append("UPDATE DDA_T_CONTRATO ");
sbD.append("SET ");
sbD.append("FECHA_WS=SYSDATE ");
if(!lstIdEstudio.equalsIgnoreCase("VACIO"))
sbD.append(",ID_ESTUDIO="+lstIdEstudio+" ");
if(!lstIdEstatus.equalsIgnoreCase("VACIO"))
sbD.append(",ID_ESTATUS="+lstIdEstatus+" ");
if(!lstIdTipoMovimiento.equalsIgnoreCase("VACIO"))
sbD.append(",ID_TIPO_MOVIMIENTO="+lstIdTipoMovimiento+" ");
if(!lstIdTipoContrato.equalsIgnoreCase("VACIO"))
sbD.append(",ID_TIPO_CONTRATO="+lstIdTipoContrato+" ");
if(!lstIdApartado.equalsIgnoreCase("VACIO"))
sbD.append(",ID_APARTADO="+lstIdApartado+" ");
if(!lstNumContrato.equalsIgnoreCase("VACIO"))
sbD.append(",NUMERO_CONTRATO='"+lstNumContrato+"' ");
if(!lstFechaInicio.equalsIgnoreCase("VACIO"))
sbD.append(",FECHA_INICIO=to_date('"+lstFechaInicio+"','yyyy-mm-dd') ");
if(!lstFechaFin.equalsIgnoreCase("VACIO"))
sbD.append(",FECHA_FIN=to_date('"+lstFechaFin+"','yyyy-mm-dd') ");
if(!lstIdCntOriginal.equalsIgnoreCase("VACIO"))
sbD.append(",ID_CONTRATO_ORIGINAL="+lstIdCntOriginal+" ");
if(!lstFechaAlta.equalsIgnoreCase("VACIO"))
sbD.append(",FECHA_ALTA=to_date('"+lstFechaAlta+"','yyyy-mm-dd') ");
if(!lstIdSap.equalsIgnoreCase("VACIO"))
sbD.append(",ID_SAP='"+lstIdSap+"' ");
if(!lstAmortizable.equalsIgnoreCase("VACIO"))
sbD.append(",AMORTIZABLE='"+lstAmortizable+"' ");
if(!lstFechaModifSAP.equalsIgnoreCase("VACIO"))
sbD.append(",FECHA_MODIFSAP=to_date('"+lstFechaModifSAP+"','yyyy-mm-dd') ");
sbD.append("WHERE ");
sbD.append("ID_CONTRATO="+lstIdContrato+" ");
LOG.debug(">Sql_D [actualizaContratoFull]:" + sbD.toString());
//--Ejecucion
sb.append("UPDATE DDA_T_CONTRATO ");
sb.append("SET ");
sb.append("FECHA_WS=SYSDATE ");
if(!lstIdEstudio.equalsIgnoreCase("VACIO"))
sb.append(",ID_ESTUDIO=? ");
if(!lstIdEstatus.equalsIgnoreCase("VACIO"))
sb.append(",ID_ESTATUS=? ");
if(!lstIdTipoMovimiento.equalsIgnoreCase("VACIO"))
sb.append(",ID_TIPO_MOVIMIENTO=? ");
if(!lstIdTipoContrato.equalsIgnoreCase("VACIO"))
sb.append(",ID_TIPO_CONTRATO=? ");
if(!lstIdApartado.equalsIgnoreCase("VACIO"))
sb.append(",ID_APARTADO=? ");
if(!lstNumContrato.equalsIgnoreCase("VACIO"))
sb.append(",NUMERO_CONTRATO=? ");
if(!lstFechaInicio.equalsIgnoreCase("VACIO"))
sb.append(",FECHA_INICIO=? ");
if(!lstFechaFin.equalsIgnoreCase("VACIO"))
sb.append(",FECHA_FIN=? ");
if(!lstIdCntOriginal.equalsIgnoreCase("VACIO"))
sb.append(",ID_CONTRATO_ORIGINAL=? ");
if(!lstFechaAlta.equalsIgnoreCase("VACIO"))
sb.append(",FECHA_ALTA=? ");
if(!lstIdSap.equalsIgnoreCase("VACIO"))
sb.append(",ID_SAP=? ");
if(!lstAmortizable.equalsIgnoreCase("VACIO"))
sb.append(",AMORTIZABLE=? ");
if(!lstFechaModifSAP.equalsIgnoreCase("VACIO"))
sb.append(",FECHA_MODIFSAP=? ");
sb.append("WHERE ");
sb.append("ID_CONTRATO=? ");
//--Valores Query
if(!lstIdEstudio.equalsIgnoreCase("VACIO"))
qryParams.add(lstIdEstudio);
if(!lstIdEstatus.equalsIgnoreCase("VACIO"))
qryParams.add(lstIdEstatus);
if(!lstIdTipoMovimiento.equalsIgnoreCase("VACIO"))
qryParams.add(lstIdTipoMovimiento);
if(!lstIdTipoContrato.equalsIgnoreCase("VACIO"))
qryParams.add(lstIdTipoContrato);
if(!lstIdApartado.equalsIgnoreCase("VACIO"))
qryParams.add(lstIdApartado);
if(!lstNumContrato.equalsIgnoreCase("VACIO"))
qryParams.add(lstNumContrato);
if(!lstFechaInicio.equalsIgnoreCase("VACIO"))
{
lobTSFecha.setTime(df.parse(lstFechaInicio+" 12:00:00").getTime());
qryParams.add(lobTSFecha);
}
if(!lstFechaFin.equalsIgnoreCase("VACIO"))
{
lobTSFecha.setTime(df.parse(lstFechaFin+" 12:00:00").getTime());
qryParams.add(lobTSFecha);
}
if(!lstIdCntOriginal.equalsIgnoreCase("VACIO"))
qryParams.add(lstIdCntOriginal);
if(!lstFechaAlta.equalsIgnoreCase("VACIO"))
{
lobTSFecha.setTime(df.parse(lstFechaAlta+" 12:00:00").getTime());
qryParams.add(lobTSFecha);
}
if(!lstIdSap.equalsIgnoreCase("VACIO"))
qryParams.add(lstIdSap);
if(!lstAmortizable.equalsIgnoreCase("VACIO"))
qryParams.add(lstAmortizable);
if(!lstFechaModifSAP.equalsIgnoreCase("VACIO"))
{
lobTSFecha.setTime(df.parse(lstFechaModifSAP+" 12:00:00").getTime());
qryParams.add(lobTSFecha);
}
qryParams.add(lstIdContrato);
final String lstSQL = sb.toString();
lnuRowsUpdate = jdbcTemplate.update(lstSQL,qryParams.toArray());
if(lnuRowsUpdate > 0)
resultado = true;
}
catch(Exception e)
{
LOG.error("Exception["+this.getClass().getSimpleName()+"::actualizaTituloFull]: "+e.getMessage() );
throw new Exception(e.getMessage());
}
return resultado;
}
@Override
public boolean registraBitacoraEstatus(ContratoEstatusDTO dto) throws Exception
{
boolean resultado = false;
List qryParams = new ArrayList();
StringBuffer sb = new StringBuffer();
StringBuffer sbD = new StringBuffer();
try
{
//--Debug
sbD.append("INSERT INTO DDA_T_CONTRATO_ESTATUS ");
sbD.append("( ");
sbD.append("ID_CONTRATO_ESTATUS, ");
sbD.append("ID_CONTRATO, ");
sbD.append("ID_ESTATUS, ");
sbD.append("EXPEDIENTE, ");
sbD.append("FECHA_ESTATUS ");
sbD.append(") ");
sbD.append("VALUES(DDA_SQT_CONTRATO_ESTATUS.NEXTVAL,"+dto.getID_CONTRATO()+", "+dto.getID_ESTATUS()+", '"+dto.getEXPEDIENTE()+"', SYSDATE) ");
LOG.debug(">Sql_D [registraBitacoraEstatus]:" + sbD.toString());
//--Ejecucion
sb.append("INSERT INTO DDA_T_CONTRATO_ESTATUS ");
sb.append("( ");
sb.append("ID_CONTRATO_ESTATUS, ");
sb.append("ID_CONTRATO, ");
sb.append("ID_ESTATUS, ");
sb.append("EXPEDIENTE, ");
sb.append("FECHA_ESTATUS ");
sb.append(") ");
sb.append("VALUES(DDA_SQT_CONTRATO_ESTATUS.NEXTVAL,?,?,?,SYSDATE) ");
final String sql = sb.toString();
qryParams.add(dto.getID_CONTRATO());
qryParams.add(dto.getID_ESTATUS());
qryParams.add(dto.getEXPEDIENTE());
int lnumRowsInsertados = jdbcTemplate.update(sql,qryParams.toArray());
if(lnumRowsInsertados > 0)
resultado = true;
}
catch(Exception e)
{
LOG.error("Exception["+this.getClass().getSimpleName()+"::registraBitacoraEstatus]: "+e.getMessage() );
throw new Exception(e.getMessage());
}
return resultado;
}
@Override
public String obtenerMaximaFechaTitulosPorContrato(String pstIdContrato) throws Exception
{
List<ContratoTituloDTO> lobResultado = new ArrayList<ContratoTituloDTO>();
String resultado = "";
StringBuffer sb = new StringBuffer();
StringBuffer sbD = new StringBuffer();
List qryParams = new ArrayList();
try
{
//--Debug
sbD.append("SELECT ");
sbD.append("TO_CHAR( MAX( FECHA_FIN ),'dd/mm/yyyy') as FECHA_FIN ");
sbD.append("FROM ");
sbD.append("( ");
sbD.append("SELECT FECHA_FIN ");
sbD.append("FROM DDA_T_CONTRATO_TITULO ");
sbD.append("WHERE ID_CONTRATO = "+pstIdContrato+" ");
sbD.append("AND ESTATUS = '"+ESTATUS_TITULO_ACTIVO+"' ");
sbD.append("UNION ALL ");
sbD.append("SELECT FECHA_FIN ");
sbD.append("FROM DDA_T_CNT_TITULO ");
sbD.append("WHERE ID_CONTRATO = "+pstIdContrato+" ");
sbD.append(") ");
LOG.debug(">Sql_D [obtenerMaximaFechaTitulosPorContrato]:" + sbD.toString());
//--Ejecucion
sb.append("SELECT ");
sb.append("TO_CHAR( MAX( FECHA_FIN ),'dd/mm/yyyy') as FECHA_FIN ");
sb.append("FROM ");
sb.append("( ");
sb.append("SELECT FECHA_FIN ");
sb.append("FROM DDA_T_CONTRATO_TITULO ");
sb.append("WHERE ID_CONTRATO = ? ");
sb.append("AND ESTATUS = ? ");
sb.append("UNION ALL ");
sb.append("SELECT FECHA_FIN ");
sb.append("FROM DDA_T_CNT_TITULO ");
sb.append("WHERE ID_CONTRATO = ? ");
sb.append(") ");
final String lstSQL = sb.toString();
qryParams.add(pstIdContrato);
qryParams.add(ESTATUS_TITULO_ACTIVO);
qryParams.add(pstIdContrato);
lobResultado = (ArrayList<ContratoTituloDTO>) getJdbcTemplate().query(lstSQL,qryParams.toArray(),new BeanPropertyRowMapper<ContratoTituloDTO>(ContratoTituloDTO.class));
if(lobResultado.size() == 1)
resultado = lobResultado.get(0).getFECHA_FIN();
return resultado;
}
catch(EmptyResultDataAccessException er)
{
LOG.error("Exception["+this.getClass().getSimpleName()+"::obtenerMaximaFechaTitulosPorContrato]: No se encontraron registros coincidentes. " + er.getMessage() );
throw new Exception("No se encontraron registros coincidentes.");
}
catch(Exception e)
{
LOG.error("Exception["+this.getClass().getSimpleName()+"::obtenerMaximaFechaTitulosPorContrato]: "+e.getMessage() );
throw new Exception(e.getMessage());
}
}
}
package mx.com.amx.mx.dda.crn.dao;
import java.util.List;
import mx.com.amx.mx.dda.crn.dto.ContratoDTO;
import mx.com.amx.mx.dda.crn.dto.ContratoEstatusDTO;
import mx.com.amx.mx.dda.crn.dto.ContratoTituloDTO;
public interface IDDATerminacionDAO
{
public boolean puedeIniciarProceso() throws Exception;
public boolean verificaEjecutandoseProceso() throws Exception;
public boolean updateEjecutandoseProceso(String pstValor) throws Exception;
public List<ContratoDTO> obtenerContratosVigentes() throws Exception;
public boolean actualizaContratoFull(ContratoDTO dto) throws Exception;
public boolean registraBitacoraEstatus(ContratoEstatusDTO dto) throws Exception;
public String obtenerMaximaFechaTitulosPorContrato(String pstIdContrato) throws Exception;
}
package mx.com.amx.mx.dda.crn.dto;
import java.io.Serializable;
/**
* Es la representacion de la tabla DDA_T_CONTRATO. Se usa para el manejo de las operaciones BD.
*/
public class ContratoDTO implements Serializable
{
private static final long serialVersionUID = 1L;
private String ID_CONTRATO;
private String ID_ESTUDIO;
private String ID_ESTATUS;
private String ID_TIPO_MOVIMIENTO;
private String ID_TIPO_CONTRATO;
private String ID_APARTADO;
private String NUMERO_CONTRATO;
private String FECHA_INICIO;
private String FECHA_FIN;
private String ID_CONTRATO_ORIGINAL;
private String FECHA_ALTA;
private String ID_SAP;
private String AMORTIZABLE;
private String FECHA_WS;
private String FECHA_MODIFSAP;
private String ANNIOS;
private String MESES;
private String INFLACION;
private String LIMITES_LICENCIA;
private String ID_BV;
private String TIPO_AMORTIZACION;
private String FECHA_AUTORIZACION;
private String ID_CONTRATO_PADRE;
public String getID_CONTRATO() {
return ID_CONTRATO;
}
public void setID_CONTRATO(String iD_CONTRATO) {
ID_CONTRATO = iD_CONTRATO;
}
public String getID_ESTUDIO() {
return ID_ESTUDIO;
}
public void setID_ESTUDIO(String iD_ESTUDIO) {
ID_ESTUDIO = iD_ESTUDIO;
}
public String getID_ESTATUS() {
return ID_ESTATUS;
}
public void setID_ESTATUS(String iD_ESTATUS) {
ID_ESTATUS = iD_ESTATUS;
}
public String getID_TIPO_MOVIMIENTO() {
return ID_TIPO_MOVIMIENTO;
}
public void setID_TIPO_MOVIMIENTO(String iD_TIPO_MOVIMIENTO) {
ID_TIPO_MOVIMIENTO = iD_TIPO_MOVIMIENTO;
}
public String getID_TIPO_CONTRATO() {
return ID_TIPO_CONTRATO;
}
public void setID_TIPO_CONTRATO(String iD_TIPO_CONTRATO) {
ID_TIPO_CONTRATO = iD_TIPO_CONTRATO;
}
public String getID_APARTADO() {
return ID_APARTADO;
}
public void setID_APARTADO(String iD_APARTADO) {
ID_APARTADO = iD_APARTADO;
}
public String getNUMERO_CONTRATO() {
return NUMERO_CONTRATO;
}
public void setNUMERO_CONTRATO(String nUMERO_CONTRATO) {
NUMERO_CONTRATO = nUMERO_CONTRATO;
}
public String getFECHA_INICIO() {
return FECHA_INICIO;
}
public void setFECHA_INICIO(String fECHA_INICIO) {
FECHA_INICIO = fECHA_INICIO;
}
public String getFECHA_FIN() {
return FECHA_FIN;
}
public void setFECHA_FIN(String fECHA_FIN) {
FECHA_FIN = fECHA_FIN;
}
public String getID_CONTRATO_ORIGINAL() {
return ID_CONTRATO_ORIGINAL;
}
public void setID_CONTRATO_ORIGINAL(String iD_CONTRATO_ORIGINAL) {
ID_CONTRATO_ORIGINAL = iD_CONTRATO_ORIGINAL;
}
public String getFECHA_ALTA() {
return FECHA_ALTA;
}
public void setFECHA_ALTA(String fECHA_ALTA) {
FECHA_ALTA = fECHA_ALTA;
}
public String getID_SAP() {
return ID_SAP;
}
public void setID_SAP(String iD_SAP) {
ID_SAP = iD_SAP;
}
public String getAMORTIZABLE() {
return AMORTIZABLE;
}
public void setAMORTIZABLE(String aMORTIZABLE) {
AMORTIZABLE = aMORTIZABLE;
}
public String getFECHA_WS() {
return FECHA_WS;
}
public void setFECHA_WS(String fECHA_WS) {
FECHA_WS = fECHA_WS;
}
public String getFECHA_MODIFSAP() {
return FECHA_MODIFSAP;
}
public void setFECHA_MODIFSAP(String fECHA_MODIFSAP) {
FECHA_MODIFSAP = fECHA_MODIFSAP;
}
public String getANNIOS() {
return ANNIOS;
}
public void setANNIOS(String aNNIOS) {
ANNIOS = aNNIOS;
}
public String getMESES() {
return MESES;
}
public void setMESES(String mESES) {
MESES = mESES;
}
public String getINFLACION() {
return INFLACION;
}
public void setINFLACION(String iNFLACION) {
INFLACION = iNFLACION;
}
public String getLIMITES_LICENCIA() {
return LIMITES_LICENCIA;
}
public void setLIMITES_LICENCIA(String lIMITES_LICENCIA) {
LIMITES_LICENCIA = lIMITES_LICENCIA;
}
public String getID_BV() {
return ID_BV;
}
public void setID_BV(String iD_BV) {
ID_BV = iD_BV;
}
public String getTIPO_AMORTIZACION() {
return TIPO_AMORTIZACION;
}
public void setTIPO_AMORTIZACION(String tIPO_AMORTIZACION) {
TIPO_AMORTIZACION = tIPO_AMORTIZACION;
}
public String getFECHA_AUTORIZACION() {
return FECHA_AUTORIZACION;
}
public void setFECHA_AUTORIZACION(String fECHA_AUTORIZACION) {
FECHA_AUTORIZACION = fECHA_AUTORIZACION;
}
public String getID_CONTRATO_PADRE() {
return ID_CONTRATO_PADRE;
}
public void setID_CONTRATO_PADRE(String iD_CONTRATO_PADRE) {
ID_CONTRATO_PADRE = iD_CONTRATO_PADRE;
}
public String toString()
{
StringBuilder result = new StringBuilder();
String NEW_LINE = System.getProperty("line.separator");
result.append(" [Begin of Class] " + NEW_LINE);
result.append(this.getClass().getSimpleName() + " Object {" + NEW_LINE);
result.append(" ID_CONTRATO: _" + this.getID_CONTRATO() + "_" + NEW_LINE);
result.append(" ID_ESTUDIO: _" + this.getID_ESTUDIO() + "_" + NEW_LINE);
result.append(" ID_ESTATUS: _" + this.getID_ESTATUS() + "_" + NEW_LINE);
result.append(" ID_TIPO_MOVIMIENTO: _" + this.getID_TIPO_MOVIMIENTO() + "_" + NEW_LINE);
result.append(" ID_TIPO_CONTRATO: _" + this.getID_TIPO_CONTRATO() + "_" + NEW_LINE);
result.append(" ID_APARTADO: _" + this.getID_APARTADO() + "_" + NEW_LINE);
result.append(" NUMERO_CONTRATO: _" + this.getNUMERO_CONTRATO() + "_" + NEW_LINE);
result.append(" FECHA_INICIO: _" + this.getFECHA_INICIO() + "_" + NEW_LINE);
result.append(" FECHA_FIN: _" + this.getFECHA_FIN() + "_" + NEW_LINE);
result.append(" ID_CONTRATO_ORIGINAL: _" + this.getID_CONTRATO_ORIGINAL() + "_" + NEW_LINE);
result.append(" FECHA_ALTA: _" + this.getFECHA_ALTA() + "_" + NEW_LINE);
result.append(" ID_SAP: _" + this.getID_SAP() + "_" + NEW_LINE);
result.append(" AMORTIZABLE: _" + this.getAMORTIZABLE() + "_" + NEW_LINE);
result.append(" FECHA_WS: _" + this.getFECHA_WS() + "_" + NEW_LINE);
result.append(" FECHA_MODIFSAP: _" + this.getFECHA_MODIFSAP() + "_" + NEW_LINE);
result.append(" ANNIOS: _" + this.getANNIOS() + "_" + NEW_LINE);
result.append(" MESES: _" + this.getMESES() + "_" + NEW_LINE);
result.append(" INFLACION: _" + this.getINFLACION() + "_" + NEW_LINE);
result.append(" LIMITES_LICENCIA: _" + this.getLIMITES_LICENCIA() + "_" + NEW_LINE);
result.append(" ID_BV: _" + this.getID_BV() + "_" + NEW_LINE);
result.append(" TIPO_AMORTIZACION: _" + this.getTIPO_AMORTIZACION() + "_" + NEW_LINE);
result.append(" FECHA_AUTORIZACION: _" + this.getFECHA_AUTORIZACION() + "_" + NEW_LINE);
result.append(" ID_CONTRATO_PADRE: _" + this.getID_CONTRATO_PADRE() + "_" + NEW_LINE);
result.append(" [End of Class] " + NEW_LINE);
result.append("}");
NEW_LINE = null;
return result.toString();
}
}
package mx.com.amx.mx.dda.crn.dto;
import java.io.Serializable;
/**
* Es la representacion de la tabla DDA_T_CONTRATO_ESTATUS.
* Se usa para el manejo de las operaciones BD.
*/
public class ContratoEstatusDTO implements Serializable
{
private static final long serialVersionUID = 1L;
private String ID_CONTRATO_ESTATUS;
private String ID_CONTRATO;
private String ID_ESTATUS;
private String EXPEDIENTE;
private String FECHA_ESTATUS;
public String getID_CONTRATO_ESTATUS() {
return ID_CONTRATO_ESTATUS;
}
public void setID_CONTRATO_ESTATUS(String iD_CONTRATO_ESTATUS) {
ID_CONTRATO_ESTATUS = iD_CONTRATO_ESTATUS;
}
public String getID_CONTRATO() {
return ID_CONTRATO;
}
public void setID_CONTRATO(String iD_CONTRATO) {
ID_CONTRATO = iD_CONTRATO;
}
public String getID_ESTATUS() {
return ID_ESTATUS;
}
public void setID_ESTATUS(String iD_ESTATUS) {
ID_ESTATUS = iD_ESTATUS;
}
public String getEXPEDIENTE() {
return EXPEDIENTE;
}
public void setEXPEDIENTE(String eXPEDIENTE) {
EXPEDIENTE = eXPEDIENTE;
}
public String getFECHA_ESTATUS() {
return FECHA_ESTATUS;
}
public void setFECHA_ESTATUS(String fECHA_ESTATUS) {
FECHA_ESTATUS = fECHA_ESTATUS;
}
public String toString()
{
StringBuilder result = new StringBuilder();
String NEW_LINE = System.getProperty("line.separator");
result.append(" [Begin of Class] " + NEW_LINE);
result.append(this.getClass().getSimpleName() + " Object {" + NEW_LINE);
result.append(" ID_CONTRATO_ESTATUS: _" + this.getID_CONTRATO_ESTATUS() + "_" + NEW_LINE);
result.append(" ID_CONTRATO: _" + this.getID_CONTRATO() + "_" + NEW_LINE);
result.append(" ID_ESTATUS: _" + this.getID_ESTATUS() + "_" + NEW_LINE);
result.append(" EXPEDIENTE: _" + this.getEXPEDIENTE() + "_" + NEW_LINE);
result.append(" FECHA_ESTATUS: _" + this.getFECHA_ESTATUS() + "_" + NEW_LINE);
result.append(" [End of Class] " + NEW_LINE);
result.append("}");
NEW_LINE = null;
return result.toString();
}
}
package mx.com.amx.mx.dda.crn.dto;
import java.io.Serializable;
/**
* Es la representacion de la tabla DDA_T_CONTRATO_TITULO. Se usa para el manejo de las operaciones BD.
*/
public class ContratoTituloDTO implements Serializable
{
private static final long serialVersionUID = 1L;
private String ID_TITULO_CNT;
private String DESC_TITULO;
private String ID_CONTRATO;
private String ID_LISTA;
private String ID_TITULO;
private String ID_CATEGORIA;
private String FECHA_INICIO;
private String FECHA_FIN;
private String BRIEFCASE;
private String DTO;
private String DTR;
private String COSTO;
private String VIDA_UTIL;
private String ID_SAP;
private String ESTATUS;
private String ID_TITULO_CNTNVO;
private String HVRD;
private String ID_TERRITORIO;
private String ID_RELEASE;
private String ID_TITULO_CNTORIG;
private String FECHA_NOTIFSAP;
private String AJUSTO_TITULO;
private String AJUSTO_VALOR;
private String AJUSTO_VU;
private String BAJA_PERDIDA;
private String FECHA_AJUSTOTITULO;
private String FECHA_AJUSTOVALOR;
private String FECHA_AJUSTOVU;
private String FECHA_BAJA;
private String ID_SAP_ANT;
private String ID_TITULO_CNTANT;
private String FECHA_WS;
private String NOTA_CREDITO;
private String FACTURA_CREDITO;
private String TIPO_TITULO;
private String ID_PAGO_CATEG;
private String PRECIO_ANUAL;
private String NOMBRE_UNICO;
private String EPISODIO;
private String ID_BV;
private String ID_CATEGORIA_TIT;
private String TEMPORADA;
private String MESES_VU;
private String PJE_EXCLUSIVO;
private String MESES_EXCLUSIVO;
private String FLGCALCULO_PRECIO;
private String FECHA_CONTABILIZACION;
private String ANIO_CONTRATO;
public String getID_TITULO_CNT() {
return ID_TITULO_CNT;
}
public void setID_TITULO_CNT(String iD_TITULO_CNT) {
ID_TITULO_CNT = iD_TITULO_CNT;
}
public String getDESC_TITULO() {
return DESC_TITULO;
}
public void setDESC_TITULO(String dESC_TITULO) {
DESC_TITULO = dESC_TITULO;
}
public String getID_CONTRATO() {
return ID_CONTRATO;
}
public void setID_CONTRATO(String iD_CONTRATO) {
ID_CONTRATO = iD_CONTRATO;
}
public String getID_LISTA() {
return ID_LISTA;
}
public void setID_LISTA(String iD_LISTA) {
ID_LISTA = iD_LISTA;
}
public String getID_TITULO() {
return ID_TITULO;
}
public void setID_TITULO(String iD_TITULO) {
ID_TITULO = iD_TITULO;
}
public String getID_CATEGORIA() {
return ID_CATEGORIA;
}
public void setID_CATEGORIA(String iD_CATEGORIA) {
ID_CATEGORIA = iD_CATEGORIA;
}
public String getFECHA_INICIO() {
return FECHA_INICIO;
}
public void setFECHA_INICIO(String fECHA_INICIO) {
FECHA_INICIO = fECHA_INICIO;
}
public String getFECHA_FIN() {
return FECHA_FIN;
}
public void setFECHA_FIN(String fECHA_FIN) {
FECHA_FIN = fECHA_FIN;
}
public String getBRIEFCASE() {
return BRIEFCASE;
}
public void setBRIEFCASE(String bRIEFCASE) {
BRIEFCASE = bRIEFCASE;
}
public String getDTO() {
return DTO;
}
public void setDTO(String dTO) {
DTO = dTO;
}
public String getDTR() {
return DTR;
}
public void setDTR(String dTR) {
DTR = dTR;
}
public String getCOSTO() {
return COSTO;
}
public void setCOSTO(String cOSTO) {
COSTO = cOSTO;
}
public String getVIDA_UTIL() {
return VIDA_UTIL;
}
public void setVIDA_UTIL(String vIDA_UTIL) {
VIDA_UTIL = vIDA_UTIL;
}
public String getID_SAP() {
return ID_SAP;
}
public void setID_SAP(String iD_SAP) {
ID_SAP = iD_SAP;
}
public String getESTATUS() {
return ESTATUS;
}
public void setESTATUS(String eSTATUS) {
ESTATUS = eSTATUS;
}
public String getID_TITULO_CNTNVO() {
return ID_TITULO_CNTNVO;
}
public void setID_TITULO_CNTNVO(String iD_TITULO_CNTNVO) {
ID_TITULO_CNTNVO = iD_TITULO_CNTNVO;
}
public String getHVRD() {
return HVRD;
}
public void setHVRD(String hVRD) {
HVRD = hVRD;
}
public String getID_TERRITORIO() {
return ID_TERRITORIO;
}
public void setID_TERRITORIO(String iD_TERRITORIO) {
ID_TERRITORIO = iD_TERRITORIO;
}
public String getID_RELEASE() {
return ID_RELEASE;
}
public void setID_RELEASE(String iD_RELEASE) {
ID_RELEASE = iD_RELEASE;
}
public String getID_TITULO_CNTORIG() {
return ID_TITULO_CNTORIG;
}
public void setID_TITULO_CNTORIG(String iD_TITULO_CNTORIG) {
ID_TITULO_CNTORIG = iD_TITULO_CNTORIG;
}
public String getFECHA_NOTIFSAP() {
return FECHA_NOTIFSAP;
}
public void setFECHA_NOTIFSAP(String fECHA_NOTIFSAP) {
FECHA_NOTIFSAP = fECHA_NOTIFSAP;
}
public String getAJUSTO_TITULO() {
return AJUSTO_TITULO;
}
public void setAJUSTO_TITULO(String aJUSTO_TITULO) {
AJUSTO_TITULO = aJUSTO_TITULO;
}
public String getAJUSTO_VALOR() {
return AJUSTO_VALOR;
}
public void setAJUSTO_VALOR(String aJUSTO_VALOR) {
AJUSTO_VALOR = aJUSTO_VALOR;
}
public String getAJUSTO_VU() {
return AJUSTO_VU;
}
public void setAJUSTO_VU(String aJUSTO_VU) {
AJUSTO_VU = aJUSTO_VU;
}
public String getBAJA_PERDIDA() {
return BAJA_PERDIDA;
}
public void setBAJA_PERDIDA(String bAJA_PERDIDA) {
BAJA_PERDIDA = bAJA_PERDIDA;
}
public String getFECHA_AJUSTOTITULO() {
return FECHA_AJUSTOTITULO;
}
public void setFECHA_AJUSTOTITULO(String fECHA_AJUSTOTITULO) {
FECHA_AJUSTOTITULO = fECHA_AJUSTOTITULO;
}
public String getFECHA_AJUSTOVALOR() {
return FECHA_AJUSTOVALOR;
}
public void setFECHA_AJUSTOVALOR(String fECHA_AJUSTOVALOR) {
FECHA_AJUSTOVALOR = fECHA_AJUSTOVALOR;
}
public String getFECHA_AJUSTOVU() {
return FECHA_AJUSTOVU;
}
public void setFECHA_AJUSTOVU(String fECHA_AJUSTOVU) {
FECHA_AJUSTOVU = fECHA_AJUSTOVU;
}
public String getFECHA_BAJA() {
return FECHA_BAJA;
}
public void setFECHA_BAJA(String fECHA_BAJA) {
FECHA_BAJA = fECHA_BAJA;
}
public String getID_SAP_ANT() {
return ID_SAP_ANT;
}
public void setID_SAP_ANT(String iD_SAP_ANT) {
ID_SAP_ANT = iD_SAP_ANT;
}
public String getID_TITULO_CNTANT() {
return ID_TITULO_CNTANT;
}
public void setID_TITULO_CNTANT(String iD_TITULO_CNTANT) {
ID_TITULO_CNTANT = iD_TITULO_CNTANT;
}
public String getFECHA_WS() {
return FECHA_WS;
}
public void setFECHA_WS(String fECHA_WS) {
FECHA_WS = fECHA_WS;
}
public String getNOTA_CREDITO() {
return NOTA_CREDITO;
}
public void setNOTA_CREDITO(String nOTA_CREDITO) {
NOTA_CREDITO = nOTA_CREDITO;
}
public String getFACTURA_CREDITO() {
return FACTURA_CREDITO;
}
public void setFACTURA_CREDITO(String fACTURA_CREDITO) {
FACTURA_CREDITO = fACTURA_CREDITO;
}
public String getTIPO_TITULO() {
return TIPO_TITULO;
}
public void setTIPO_TITULO(String tIPO_TITULO) {
TIPO_TITULO = tIPO_TITULO;
}
public String getID_PAGO_CATEG() {
return ID_PAGO_CATEG;
}
public void setID_PAGO_CATEG(String iD_PAGO_CATEG) {
ID_PAGO_CATEG = iD_PAGO_CATEG;
}
public String getPRECIO_ANUAL() {
return PRECIO_ANUAL;
}
public void setPRECIO_ANUAL(String pRECIO_ANUAL) {
PRECIO_ANUAL = pRECIO_ANUAL;
}
public String getNOMBRE_UNICO() {
return NOMBRE_UNICO;
}
public void setNOMBRE_UNICO(String nOMBRE_UNICO) {
NOMBRE_UNICO = nOMBRE_UNICO;
}
public String getEPISODIO() {
return EPISODIO;
}
public void setEPISODIO(String ePISODIO) {
EPISODIO = ePISODIO;
}
public String getID_BV() {
return ID_BV;
}
public void setID_BV(String iD_BV) {
ID_BV = iD_BV;
}
public String getID_CATEGORIA_TIT() {
return ID_CATEGORIA_TIT;
}
public void setID_CATEGORIA_TIT(String iD_CATEGORIA_TIT) {
ID_CATEGORIA_TIT = iD_CATEGORIA_TIT;
}
public String getTEMPORADA() {
return TEMPORADA;
}
public void setTEMPORADA(String tEMPORADA) {
TEMPORADA = tEMPORADA;
}
public String getMESES_VU() {
return MESES_VU;
}
public void setMESES_VU(String mESES_VU) {
MESES_VU = mESES_VU;
}
public String getPJE_EXCLUSIVO() {
return PJE_EXCLUSIVO;
}
public void setPJE_EXCLUSIVO(String pJE_EXCLUSIVO) {
PJE_EXCLUSIVO = pJE_EXCLUSIVO;
}
public String getMESES_EXCLUSIVO() {
return MESES_EXCLUSIVO;
}
public void setMESES_EXCLUSIVO(String mESES_EXCLUSIVO) {
MESES_EXCLUSIVO = mESES_EXCLUSIVO;
}
public String getFLGCALCULO_PRECIO() {
return FLGCALCULO_PRECIO;
}
public void setFLGCALCULO_PRECIO(String fLGCALCULO_PRECIO) {
FLGCALCULO_PRECIO = fLGCALCULO_PRECIO;
}
public String getFECHA_CONTABILIZACION() {
return FECHA_CONTABILIZACION;
}
public void setFECHA_CONTABILIZACION(String fECHA_CONTABILIZACION) {
FECHA_CONTABILIZACION = fECHA_CONTABILIZACION;
}
public String getANIO_CONTRATO() {
return ANIO_CONTRATO;
}
public void setANIO_CONTRATO(String aNIO_CONTRATO) {
ANIO_CONTRATO = aNIO_CONTRATO;
}
public String toString()
{
StringBuilder result = new StringBuilder();
String NEW_LINE = System.getProperty("line.separator");
result.append(" [Begin of Class] " + NEW_LINE);
result.append(this.getClass().getSimpleName() + " Object {" + NEW_LINE);
result.append(" ID_TITULO_CNT: _" + this.getID_TITULO_CNT() + "_" + NEW_LINE);
result.append(" DESC_TITULO: _" + this.getDESC_TITULO() + "_" + NEW_LINE);
result.append(" ID_CONTRATO: _" + this.getID_CONTRATO() + "_" + NEW_LINE);
result.append(" ID_LISTA: _" + this.getID_LISTA() + "_" + NEW_LINE);
result.append(" ID_TITULO: _" + this.getID_TITULO_CNT() + "_" + NEW_LINE);
result.append(" ID_CATEGORIA: _" + this.getID_CATEGORIA() + "_" + NEW_LINE);
result.append(" FECHA_INICIO: _" + this.getFECHA_INICIO() + "_" + NEW_LINE);
result.append(" FECHA_FIN: _" + this.getFECHA_FIN() + "_" + NEW_LINE);
result.append(" BRIEFCASE: _" + this.getBRIEFCASE() + "_" + NEW_LINE);
result.append(" DTO: _" + this.getDTO() + "_" + NEW_LINE);
result.append(" DTR: _" + this.getDTR() + "_" + NEW_LINE);
result.append(" COSTO: _" + this.getCOSTO() + "_" + NEW_LINE);
result.append(" VIDA_UTIL: _" + this.getVIDA_UTIL() + "_" + NEW_LINE);
result.append(" ID_SAP: _" + this.getID_SAP() + "_" + NEW_LINE);
result.append(" ESTATUS: _" + this.getESTATUS() + "_" + NEW_LINE);
result.append(" ID_TITULO_CNTNVO: _" + this.getID_TITULO_CNTNVO() + "_" + NEW_LINE);
result.append(" HVRD: _" + this.getHVRD() + "_" + NEW_LINE);
result.append(" ID_TERRITORIO: _" + this.getID_TERRITORIO() + "_" + NEW_LINE);
result.append(" ID_RELEASE: _" + this.getID_RELEASE() + "_" + NEW_LINE);
result.append(" ID_TITULO_CNTORIG: _" + this.getID_TITULO_CNTORIG() + "_" + NEW_LINE);
result.append(" FECHA_NOTIFSAP: _" + this.getFECHA_NOTIFSAP() + "_" + NEW_LINE);
result.append(" AJUSTO_TITULO: _" + this.getVIDA_UTIL() + "_" + NEW_LINE);
result.append(" AJUSTO_VALOR: _" + this.getVIDA_UTIL() + "_" + NEW_LINE);
result.append(" AJUSTO_VU: _" + this.getVIDA_UTIL() + "_" + NEW_LINE);
result.append(" BAJA_PERDIDA: _" + this.getVIDA_UTIL() + "_" + NEW_LINE);
result.append(" FECHA_AJUSTOTITULO: _" + this.getVIDA_UTIL() + "_" + NEW_LINE);
result.append(" FECHA_AJUSTOVALOR: _" + this.getVIDA_UTIL() + "_" + NEW_LINE);
result.append(" FECHA_AJUSTOVU: _" + this.getVIDA_UTIL() + "_" + NEW_LINE);
result.append(" FECHA_BAJA: _" + this.getVIDA_UTIL() + "_" + NEW_LINE);
result.append(" ID_SAP_ANT: _" + this.getID_SAP_ANT() + "_" + NEW_LINE);
result.append(" ID_TITULO_CNTANT: _" + this.getID_TITULO_CNTANT() + "_" + NEW_LINE);
result.append(" FECHA_WS: _" + this.getFECHA_WS() + "_" + NEW_LINE);
result.append(" NOTA_CREDITO: _" + this.getNOTA_CREDITO() + "_" + NEW_LINE);
result.append(" FACTURA_CREDITO: _" + this.getFACTURA_CREDITO() + "_" + NEW_LINE);
result.append(" TIPO_TITULO: _" + this.getTIPO_TITULO() + "_" + NEW_LINE);
result.append(" ID_PAGO_CATEG: _" + this.getID_PAGO_CATEG() + "_" + NEW_LINE);
result.append(" PRECIO_ANUAL: _" + this.getPRECIO_ANUAL() + "_" + NEW_LINE);
result.append(" NOMBRE_UNICO: _" + this.getNOMBRE_UNICO() + "_" + NEW_LINE);
result.append(" EPISODIO: _" + this.getEPISODIO() + "_" + NEW_LINE);
result.append(" ID_BV: _" + this.getID_BV() + "_" + NEW_LINE);
result.append(" ID_CATEGORIA_TIT: _" + this.getID_CATEGORIA_TIT() + "_" + NEW_LINE);
result.append(" TEMPORADA: _" + this.getTEMPORADA() + "_" + NEW_LINE);
result.append(" MESES_VU: _" + this.getMESES_VU() + "_" + NEW_LINE);
result.append(" PJE_EXCLUSIVO: _" + this.getPJE_EXCLUSIVO() + "_" + NEW_LINE);
result.append(" MESES_EXCLUSIVO: _" + this.getMESES_EXCLUSIVO() + "_" + NEW_LINE);
result.append(" FLGCALCULO_PRECIO: _" + this.getFLGCALCULO_PRECIO() + "_" + NEW_LINE);
result.append(" FECHA_CONTABILIZACION: _" + this.getFECHA_CONTABILIZACION() + "_" + NEW_LINE);
result.append(" ANIO_CONTRATO: _" + this.getANIO_CONTRATO() + "_" + NEW_LINE);
result.append(" [End of Class] " + NEW_LINE);
result.append("}");
NEW_LINE = null;
return result.toString();
}
}
package mx.com.amx.mx.dda.crn.utils;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import org.apache.log4j.Logger;
public class DateManager
{
private final Logger LOG = Logger.getLogger(this.getClass().getSimpleName());
public DateManager()
{
super();
}
public String cambiarFormato(String pstFecha, String pstFormato) throws Exception
{
/* Los formatos deben ser acorde a la clase SimpleDateFormat. En este caso este es el usado: "yyyy-MM-dd" */
String fechaFinal = "";
try
{
DateFormat formatoOriginal = new SimpleDateFormat("dd/MM/yyyy");
DateFormat formatoFinal = new SimpleDateFormat(pstFormato);
Date fechaOriginal = formatoOriginal.parse(pstFecha);
fechaFinal = formatoFinal.format(fechaOriginal);
}
catch (ParseException pe)
{
LOG.info("Ocurrio un error al parsear las fechas proporcionadas.");
LOG.error("Exception["+this.getClass().getSimpleName()+"::cambiarFormato]: "+ pe.getMessage() );
throw new Exception(pe.getMessage());
}
catch(Exception e)
{
LOG.info("Ocurrio un error al ejecutar el cambio de formato.");
LOG.error("Exception["+this.getClass().getSimpleName()+"::cambiarFormato]: "+ e.getMessage() );
throw new Exception(e.getMessage());
}
return fechaFinal;
}
public String dateToString(Date pobDate, String pstFormato) throws Exception
{
/* Los formatos deben ser acorde a la clase SimpleDateFormat */
String fechaFinal = "";
try
{
DateFormat formatoFinal = new SimpleDateFormat(pstFormato);
fechaFinal = formatoFinal.format(pobDate);
}
catch(Exception e)
{
LOG.info("Ocurrio un error al ejecutar la traduccion del Date a String.");
LOG.error("Exception["+this.getClass().getSimpleName()+"::dateToString]: "+ e.getMessage() );
throw new Exception(e.getMessage());
}
return fechaFinal;
}
public String getFechaActual(String pstFormato)
{
String lstFechaActual = "";
Calendar lobTiempoActual = Calendar.getInstance();
//--
int lnuDiaActual = lobTiempoActual.get(Calendar.DAY_OF_MONTH);
int lnuMesActual = lobTiempoActual.get(Calendar.MONTH) + 1;
int lnuAnnioActual = lobTiempoActual.get(Calendar.YEAR);
//--
String lstTmpDia = (lobTiempoActual.get(Calendar.DAY_OF_MONTH) < 10) ? "0" +Integer.toString(lobTiempoActual.get(Calendar.DAY_OF_MONTH)) : Integer.toString(lobTiempoActual.get(Calendar.DAY_OF_MONTH));
String lstTmpMes = (lnuMesActual < 10 ) ? "0" + Integer.toString(lnuMesActual) : Integer.toString(lnuMesActual);
String lstTmpAnnio = Integer.toString(lnuAnnioActual);
String lstHora = (lobTiempoActual.get(Calendar.HOUR_OF_DAY) < 10) ? "0" +Integer.toString(lobTiempoActual.get(Calendar.HOUR_OF_DAY)) : Integer.toString(lobTiempoActual.get(Calendar.HOUR_OF_DAY));
String lstMinutos = (lobTiempoActual.get(Calendar.MINUTE) < 10) ? "0" +Integer.toString(lobTiempoActual.get(Calendar.MINUTE)) : Integer.toString(lobTiempoActual.get(Calendar.MINUTE));
String lstSegundos = (lobTiempoActual.get(Calendar.SECOND) < 10) ? "0" +Integer.toString(lobTiempoActual.get(Calendar.SECOND)) : Integer.toString(lobTiempoActual.get(Calendar.SECOND));
if(pstFormato.equalsIgnoreCase("dd/mm/yyyy"))
lstFechaActual = lstTmpDia + "/" + lstTmpMes + "/" + lstTmpAnnio;
else if(pstFormato.equalsIgnoreCase("mm/dd/yyyy"))
lstFechaActual = lstTmpMes + "/" + lstTmpDia + "/" + lstTmpAnnio;
else if(pstFormato.equalsIgnoreCase("yyyy/mm/dd"))
lstFechaActual = lstTmpAnnio + "/" + lstTmpMes + "/" + lstTmpDia;
else if(pstFormato.equalsIgnoreCase("dd/mm/yyyy hh:mi:ss"))
lstFechaActual = lstTmpDia + "/" + lstTmpMes + "/" + lstTmpAnnio + lstHora + ":" + lstMinutos + ":" + lstSegundos;
else if(pstFormato.equalsIgnoreCase("mm/dd/yyyy hh:mi:ss"))
lstFechaActual = lstTmpMes + "/" + lstTmpDia + "/" + lstTmpAnnio + lstHora + ":" + lstMinutos + ":" + lstSegundos;
else if(pstFormato.equalsIgnoreCase("yyyy/mm/dd hh:mi:ss"))
lstFechaActual = lstTmpAnnio + "/" + lstTmpMes + "/" + lstTmpDia + lstHora + ":" + lstMinutos + ":" + lstSegundos;
if(pstFormato.equalsIgnoreCase("dd-mm-yyyy"))
lstFechaActual = lstTmpDia + "-" + lstTmpMes + "-" + lstTmpAnnio;
else if(pstFormato.equalsIgnoreCase("mm-dd-yyyy"))
lstFechaActual = lstTmpMes + "-" + lstTmpDia + "-" + lstTmpAnnio;
else if(pstFormato.equalsIgnoreCase("yyyy-mm-dd"))
lstFechaActual = lstTmpAnnio + "-" + lstTmpMes + "-" + lstTmpDia;
else if(pstFormato.equalsIgnoreCase("dd.mm.yyyy"))
lstFechaActual = lstTmpDia + "." + lstTmpMes + "." + lstTmpAnnio;
else if(pstFormato.equalsIgnoreCase("mm/yyyy"))
lstFechaActual = lstTmpMes + "/" + lstTmpAnnio;
else if(pstFormato.equalsIgnoreCase("yyyy/mm"))
lstFechaActual = lstTmpAnnio + "/" + lstTmpMes;
else if(pstFormato.equalsIgnoreCase("yyyy-mm"))
lstFechaActual = lstTmpAnnio + "-" + lstTmpMes;
else if(pstFormato.equalsIgnoreCase("yyyy"))
lstFechaActual = lstTmpAnnio;
else if(pstFormato.equalsIgnoreCase("yyyymmdd"))
lstFechaActual = lstTmpAnnio+lstTmpMes+lstTmpDia;
return lstFechaActual;
}
public int compararFechas(String pstFechaAComparar, String pstFechaReferencia) throws Exception
{
int resultado=0;
try
{
//--Obtener las fechas enviadas en el formato a comparar
SimpleDateFormat formateador = new SimpleDateFormat("dd/MM/yyyy");
Date lobFechaACompararDate = formateador.parse(pstFechaAComparar);
Date lobFechaReferenciaDate = formateador.parse(pstFechaReferencia);
if ( lobFechaACompararDate.before(lobFechaReferenciaDate) )
{
resultado = -1;
}
else if ( lobFechaReferenciaDate.before(lobFechaACompararDate) )
{
resultado = 1;
}
else
{
resultado= 0;
}
}
catch (ParseException pe)
{
LOG.info("Ocurrio un error al parsear las fechas proporcionadas.");
LOG.error("Exception["+this.getClass().getSimpleName()+"::compararFechas]: "+ pe.getMessage() );
throw new Exception(pe.getMessage());
}
catch (Exception e)
{
LOG.info("Ocurrio un error al comparar las fechas proporcionadas.");
LOG.error("Exception["+this.getClass().getSimpleName()+"::compararFechas]: "+ e.getMessage() );
throw new Exception(e.getMessage());
}
return resultado;
}
public boolean esFechaValida(String pstFormato, String pstFecha)
{
boolean resultado = false;
DateFormat formateador = new SimpleDateFormat(pstFormato);
formateador.setLenient(false);
try
{
Date fecha = formateador.parse(pstFecha);
resultado = true;
}
catch(ParseException pe)
{
resultado = false;
}
return resultado;
}
/*
public String obtenerFechaMayorVsActual(String pstFecha) throws Exception
{
String resultado = "";
//--Obtener fecha actual
String lstFechaActual = this.getFechaActual("dd/mm/yyyy");
//--Determina fecha mayor
try
{
int lnuResComparacionFechas = this.compararFechas(pstFecha, lstFechaActual);
if (lnuResComparacionFechas == -1)
resultado = lstFechaActual;
else if (lnuResComparacionFechas == 1)
resultado = pstFecha;
else if (lnuResComparacionFechas == 0)
resultado = lstFechaActual;
}
catch (Exception e)
{
LOG.error("Exception[" + this.getClass().getSimpleName() + "::obtenerFechaMayorVsActual]: "+ e.getMessage());
throw new Exception(e.getMessage());
}
return resultado;
}
*/
public String obtenerFechaMayorVsActual(String pstFecha, String pstFormatoSalida) throws Exception
{
//-- Nota: El parametro de formato salida debe apegarse a la especificacion de la clase SimpleDateFormat
//-- Para el caso ESPECIFICO de esta funcion el parametro pstFecha se supone que viene en formato dd/mm/yyyy
String resultado = "";
//--Obtener fecha actual
String lstFechaActual = this.getFechaActual("dd/mm/yyyy");
//--Determina fecha mayor
try
{
int lnuResComparacionFechas = this.compararFechas(pstFecha, lstFechaActual);
if (lnuResComparacionFechas == -1)
resultado = lstFechaActual;
else if (lnuResComparacionFechas == 1)
resultado = pstFecha;
else if (lnuResComparacionFechas == 0)
resultado = lstFechaActual;
//--Cambiar fecha a formato solicitado
resultado = this.cambiarFormato(resultado, pstFormatoSalida);
}
catch (Exception e)
{
LOG.error("Exception[" + this.getClass().getSimpleName() + "::obtenerFechaMayorVsActual]: "+ e.getMessage());
throw new Exception(e.getMessage());
}
return resultado;
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment