Commit 8302b807 by Nilu

project setup

parent 03e9004a
<?xml version="1.0" encoding="UTF-8"?><project name="PerformaInvestments" basedir="." default="all">
<taskdef resource="oneit/ant.properties">
<classpath>
<pathelement location="../Support/AntTasks.jar"/>
</classpath>
</taskdef>
<property name="custom.property.file" value="workspace"/>
<property file="${custom.property.file}.override.properties"/>
<property file="override.properties"/>
<property file="../global.override.properties"/>
<property file="${custom.property.file}.properties"/>
<property file="${key.file}"/>
<property value="/Projects" name="project.src.dir"/>
<property value="/ant" name="ant.src.dir"/>
<property name="tctransform.version" value="41"/>
<property name="build.target.dir" value="C:/build/PerformaInvestments"/>
<property name="app.target.dir" value="${app.deploy.dir}"/>
<property name="webapp.target.dir" value="${webapp.deploy.dir}"/>
<property name="config.target.dir" value="${config.deploy.dir}"/>
<property name="CRLF.action" value="add"/>
<property name="build.source.dir" value="."/>
<property name="tmp.dir" value="${target.dir}/tmp"/>
<property name="infrastructure.bin.dir" value="${build.target.dir}/bin/infrastructure"/>
<property name="infrastructure.lib.dir" value="${build.target.dir}/lib/infrastructure"/>
<property name="cmsWebApp.bin.dir" value="${build.target.dir}/bin/cmsWebApp"/>
<property name="cmsWebApp.lib.dir" value="${build.target.dir}/lib/cmsWebApp"/>
<property name="cmsWebApp.war.dir" value="${build.target.dir}/cmsWebApp"/>
<property name="cmsWebApp.configxsl.dir" value="${build.target.dir}/cmsWebApp.xsl"/>
<property name="cmsWebApp.deploy.dir" value="${webapp.deploy.dir}/cmsWebApp"/>
<property name="cmsWebApp.target.dir" value="${webapp.target.dir}/cmsWebApp"/>
<property name="executor.deploy.dir" value="${testMainApp.deploy.dir}"/>
<target name="clean">
<deltree dir="${build.target.dir}"/>
</target>
<target name="config.fixcrlf" if="fix.crlf">
<echo level="verbose" message="########## FIXING CRLF ISSUES ########## ${PerformaInvestments.war.dir}"/>
<fixcrlf srcdir="${build.target.dir}/config" eol="lf" eof="remove" includes="**/*.xml,**/*.txt,**/*.sql,**/*.css,**/*.js,**/*.dtd,**/*.mod,**/*.xsl"/>
</target>
<target name="config" depends="prepare">
<jsync todir="${build.target.dir}/config" overwrite="true">
<fileset dir="${build.source.dir}/config" excludes="*.xml"/>
</jsync>
<echo level="info" message="Styling from ${build.source.dir}/config to ${build.target.dir}/config.xsl and copying to ${build.target.dir}/config"/>
<style processor="org.apache.tools.ant.taskdefs.optional.TraXLiaison" basedir="${build.source.dir}/config" includes="*.xml" destdir="${build.target.dir}/config.xsl" extension=".xml" style="${build.source.dir}/../../Support/xslt/identity-transform.xsl"/>
<jsync overwrite="true" todir="${build.target.dir}/config">
<fileset dir="${build.target.dir}/config.xsl"/>
</jsync>
<jsync todir="${build.target.dir}/config/sql">
<fileset dir="sql">
<include name="**/*.sql"/>
<include name="**/*.xml"/>
<include name="**/*.txt"/>
</fileset>
</jsync>
<antcall target="config.fixcrlf"/>
</target>
<target name="prepare">
<condition property="custom.property.file.exists.notexist">
<not>
<available file="${custom.property.file}.properties" property="custom.property.file.exists"/>
</not>
</condition>
<fail if="custom.property.file.exists.notexist">File does not exist ${custom.property.file}</fail>
<time/>
<tstamp/>
<mkdir dir="${build.target.dir}"/>
<mkdir dir="${build.target.dir}/config"/>
<mkdir dir="${build.target.dir}/config.xsl"/>
<mkdir dir="${build.target.dir}/logs"/>
</target>
<target name="cmsWebApp" depends="prepare,config">
<ant dir="${build.source.dir}/cmsWebApp" target="build"/>
<antcall target="config"/>
<property name="build.partial" value="true"/>
<property name="build.cmsWebApp" value="true"/>
</target>
<target name="cmsWebApp_deploy" depends="cmsWebApp,deploy"/>
<target name="cms">
<property name="build.partial" value="true"/>
<property name="build.cmsWebApp" value="true"/>
</target>
<target name="all" depends="config&#10; ,cmsWebApp"/>
<target name="all_deploy" depends="all,deploy"/>
<target name="deploy.prepare" unless="build.partial">
<property name="build.cmsWebApp" value="true"/>
</target>
<target name="deploy.basic">
<filter token="config.deploy.dir" value="${config.deploy.dir}"/>
<filter token="webapp.deploy.dir" value="${webapp.deploy.dir}"/>
<filter token="app.deploy.dir" value="${app.deploy.dir}"/>
<filter token="openoffice.dir" value="${openoffice.dir}"/>
<filter token="openoffice.program" value="${openoffice.program}"/>
<filter token="openoffice.port" value="${openoffice.port}"/>
<filter token="cmsWebApp.deploy.dir" value="${cmsWebApp.deploy.dir}"/>
<filter token="key.file" value="${key.file}"/>
<antcall target="tomcat_stop"/>
<mkdir dir="${config.target.dir}"/>
<copy todir="${config.target.dir}" filtering="true">
<fileset dir="${build.target.dir}/config">
<exclude name="**/binaries/**/*"/>
</fileset>
</copy>
<jsync todir="${config.target.dir}" filtering="false">
<fileset dir="${build.target.dir}/config">
<include name="**/binaries/**/*"/>
</fileset>
</jsync>
<mkdir dir="${app.target.dir}/logs"/>
<mkdir dir="${webapp.target.dir}/logs/std"/>
<mkdir dir="${webapp.target.dir}/logs/error"/>
<mkdir dir="${app.target.dir}/logs/std"/>
<mkdir dir="${app.target.dir}/logs/error"/>
<touch file="${app.target.dir}/logs/std/placeholder.txt"/>
<touch file="${app.target.dir}/logs/error/placeholder.txt"/>
</target>
<target name="deploy.cmsWebApp" if="build.cmsWebApp">
<ant dir="${build.source.dir}/cmsWebApp" target="deploy"/>
</target>
<target name="upload.cmsWebApp">
<rsync port="${rsync.port}" toLocation="${rsync.user}@${rsync.server}:${cmsWebApp.deploy.dir}" bwlimit="${rsync.bwlimit}" options="-lcn">
<fileset dir="${cmsWebApp.target.dir}" excludes="${rsync.excludes}"/>
</rsync>
<input message="Do you wish to perform the real rsync (y/n)?" validargs="y,n" addproperty="do.upload.cmsWebApp"/>
<condition property="do.abort">
<equals arg1="n" arg2="${do.upload.cmsWebApp}"/>
</condition>
<fail if="do.abort">RSync aborted.</fail>
<rsync port="${rsync.port}" toLocation="${rsync.user}@${rsync.server}:${cmsWebApp.deploy.dir}" bwlimit="${rsync.bwlimit}" options="-lc">
<fileset dir="${cmsWebApp.target.dir}" excludes="${rsync.excludes}"/>
</rsync>
</target>
<target name="deployJSP.cmsWebApp" if="build.cmsWebApp">
<ant dir="${build.source.dir}/cmsWebApp" target="deployJSP"/>
</target>
<target name="tomcat_stop" if="tomcat.version">
<property name="url" value="http://${web.server.host}:${web.server.port}/manager"/>
<taskdef resource="tomcattasks.properties">
<classpath>
<pathelement location="../Support/${tomcat.version}"/>
<pathelement location="../Support/${tomcat.version}/catalina-ant.jar"/>
</classpath>
</taskdef>
<echo level="info" message="Stopping Tomcat ${url} /${tomcat.app.contextpath}"/>
<nofail>
<stop_web_app url="${url}" username="${tomcat.manager.username}" password="${tomcat.manager.password}" path="/${tomcat.app.contextpath}"/>
</nofail>
<echo level="info" message="Stopped Tomcat ${url} /${tomcat.app.contextpath}"/>
</target>
<target name="tomcat_start" if="tomcat.version">
<property name="url" value="http://${web.server.host}:${web.server.port}/manager"/>
<taskdef resource="tomcattasks.properties">
<classpath>
<pathelement location="../Support/${tomcat.version}"/>
<pathelement location="../Support/${tomcat.version}/catalina-ant.jar"/>
</classpath>
</taskdef>
<echo level="info" message="Start Tomcat ${url} /${tomcat.app.contextpath}"/>
<nofail>
<start_web_app url="${url}" username="${tomcat.manager.username}" password="${tomcat.manager.password}" path="/${tomcat.app.contextpath}"/>
</nofail>
<echo level="info" message="Started Tomcat ${url} /${tomcat.app.contextpath}"/>
</target>
<target name="deploy" depends="deploy.prepare,deploy.basic&#10; ,deploy.cmsWebApp">
<filter token="config.deploy.dir" value="${config.deploy.dir}"/>
<filter token="webapp.deploy.dir" value="${webapp.deploy.dir}"/>
<filter token="app.deploy.dir" value="${app.deploy.dir}"/>
<filter token="openoffice.dir" value="${openoffice.dir}"/>
<filter token="openoffice.program" value="${openoffice.program}"/>
<filter token="openoffice.port" value="${openoffice.port}"/>
<filter token="cmsWebApp.deploy.dir" value="${cmsWebApp.deploy.dir}"/>
<filter token="key.file" value="${key.file}"/>
<antcall target="tomcat_start"/>
</target>
<target name="deployJSP" depends="deploy.prepare,deploy.basic&#10; ,deployJSP.cmsWebApp"/>
<target name="autogen">
<ant dir="${build.source.dir}/cmsWebApp" target="autogen"/>
</target>
</project>
<?xml version="1.0" encoding="UTF-8"?><project name="cmsWebApp" basedir="." default="error">
<property name="system.name" value="PerformaInvestments"/>
<property name="src.dir" value="src"/>
<property name="extensions.src.dir" value="webroot/extensions"/>
<property name="config.dir" value="config"/>
<property name="lib.dir" value="libraries"/>
<property name="libnodeploy.dir" value="lib-no-deploy"/>
<property name="nodelete.appwar" value="${nodelete}"/>
<path id="cmsWebApp.lib">
<pathelement location="${build.target.dir}/overlay/CougarCMS8.1/bin/cmsWebApp"/>
<fileset dir="${build.target.dir}/overlay/CougarCMS8.1/lib/cmsWebApp">
<include name="**/*.jar"/>
<include name="**/*.zip"/>
<exclude name="**/.new*"/>
</fileset>
<fileset dir="${lib.dir}">
<include name="**/*.jar"/>
<include name="**/*.zip"/>
<exclude name="**/.new*"/>
</fileset>
<fileset dir="${libnodeploy.dir}">
<include name="**/*.jar"/>
<include name="**/*.zip"/>
</fileset>
<fileset dir="../../CougarCMS8.1/cmsWebApp/lib-no-deploy">
<include name="**/*.jar"/>
<include name="**/*.zip"/>
</fileset>
</path>
<target name="copylib">
<jsync todir="${cmsWebApp.lib.dir}">
<fileset dir="${lib.dir}">
<exclude name="**/.new*"/>
</fileset>
</jsync>
</target>
<target name="execute-overlays">
<echo level="info" message="Overlays exist"/>
<mkdir dir="${cmsWebApp.war.dir}"/>
<property name="overwrite.appwar" value="true"/>
<echo level="info" message="Executing overlay CougarCMS8.1 cmsWebApp"/>
<ant dir="../../CougarCMS8.1" target="cmsWebApp" inheritAll="false">
<property name="build.target.dir" value="${build.target.dir}/overlay/CougarCMS8.1"/>
<property name="cmsWebApp.war.dir" value="${cmsWebApp.war.dir}"/>
<property name="cmsWebApp.app.dir" value="${cmsWebApp.war.dir}"/>
<property name="tctransform.version" value="${tctransform.version}"/>
<property name="nodelete.appwar" value="true"/>
<property name="overwrite.appwar" value="true"/>
</ant>
<copy todir="${build.target.dir}/config" overwrite="true" filtering="true">
<fileset dir="${build.target.dir}/overlay/CougarCMS8.1/config">
<include name="**/*.xml"/>
<include name="**/*.properties"/>
</fileset>
</copy>
<jsync todir="${build.target.dir}/config" overwrite="true" filtering="false">
<fileset dir="${build.target.dir}/overlay/CougarCMS8.1/config">
<exclude name="**/*.xml"/>
<exclude name="**/*.properties"/>
</fileset>
</jsync>
<echo level="info" message="Finished overlay CougarCMS8.1 cmsWebApp"/>
</target>
<target name="compiletest">
<mkdir dir="${cmsWebApp.bin.dir}"/>
<setproperty name="cmsWebApp.out.of.date" value="true" when="nodelete"/>
<recursivediff srcDir="${src.dir}" srcExtension="java" destDir="${cmsWebApp.bin.dir}" destExtension="class" differentProperty="cmsWebApp.out.of.date"/>
<recursivediff srcDir="${extensions.src.dir}" srcExtension="java" destDir="${cmsWebApp.bin.dir}" destExtension="class" differentProperty="cmsWebApp.out.of.date"/>
</target>
<target name="compile" depends="compiletest" if="cmsWebApp.out.of.date">
<delete dir="${cmsWebApp.bin.dir}" unless="nodelete"/>
<mkdir dir="${cmsWebApp.bin.dir}"/>
<echo level="info" message="Building project classes"/>
<javac debug="on" destdir="${cmsWebApp.bin.dir}" executable="${build.compiler.javac}" compiler="extJavac">
<src>
<pathelement path="${src.dir}"/>
<dirset dir="${extensions.src.dir}">
<include name="*/src"/>
</dirset>
</src>
<classpath>
<path refid="cmsWebApp.lib"/>
<path path="${cmsWebApp.bin.dir}"/>
</classpath>
</javac>
<mkdir dir="../config/classlists"/>
<diffclasses taskname="${system.name}_cmsWebApp_Classes" classesDir="${cmsWebApp.bin.dir}" classList="../config/classlists/${system.name}_cmsWebApp_Classes.xml"/>
<jsync todir="${cmsWebApp.bin.dir}">
<fileset dir="${src.dir}">
<exclude name="**/*.class"/>
<exclude name="**/*.java"/>
<exclude name="**/*.scc"/>
</fileset>
<fileset dir="${extensions.src.dir}">
<exclude name="**/*.class"/>
<exclude name="**/*.java"/>
<exclude name="**/*.scc"/>
</fileset>
</jsync>
</target>
<target name="autogen">
<property name="infra.src" value="../../Infrastructure8.2/src"/>
<available file="../../CougarCMS8.2/src" property="infra.src" value="../../CougarCMS8.2/src"/>
<style processor="org.apache.tools.ant.taskdefs.optional.TraXLiaison" basedir="${infra.src}" destdir="../../../Build/xsl8.2" extension=".xsl" style="../../Support/xslt/1iT-transform.xsl" includes="**/*.xsl" excludes="**/1iT-transform.xsl,**/identity-transform.xsl"/>
<copy file="../../Support/xslt/1iT-transform.xsl" todir="../../../Build/xsl8.2/oneit"/>
<copy file="../../Support/xslt/identity-transform.xsl" todir="../../../Build/xsl8.2/oneit"/>
<bogen toDir="${src.dir}" sqlDir="sql/" xslDir="../../../Build/xsl8.2" hashRecordFile="../config/classlists/bogen_cmsWebApp_src.xml">
<fileset dir="${src.dir}" includes="**/*.xml">
<and>
<contains text="&lt;BUSINESSCLASS"/>
<not>
<contains text="DO NOT REGENERATE"/>
</not>
</and>
</fileset>
</bogen>
<dbconst toDir="${src.dir}" sqlDir="sql/" xslDir="../../../Build/xsl8.2" hashRecordFile="../config/classlists/dbconst_cmsWebApp_src.xml">
<fileset dir="${src.dir}" includes="**/*.xml">
<and>
<contains text="&lt;DB_ENUM"/>
<not>
<contains text="DO NOT REGENERATE"/>
</not>
</and>
</fileset>
</dbconst>
<const toDir="${src.dir}" xslDir="../../../Build/xsl8.2" hashRecordFile="../config/classlists/const_cmsWebApp_src.xml">
<fileset dir="${src.dir}" includes="**/*.xml">
<and>
<contains text="&lt;CONSTANT"/>
<not>
<contains text="DO NOT REGENERATE"/>
</not>
</and>
</fileset>
</const>
<bogen toDir="${extensions.src.dir}" sqlDir="sql/" xslDir="../../../Build/xsl8.2" hashRecordFile="../config/classlists/bogen_cmsWebApp_ext.xml">
<fileset dir="${extensions.src.dir}" includes="**/*.xml">
<and>
<contains text="&lt;BUSINESSCLASS"/>
<not>
<contains text="DO NOT REGENERATE"/>
</not>
</and>
</fileset>
</bogen>
<dbconst toDir="${extensions.src.dir}" sqlDir="sql/" xslDir="../../../Build/xsl8.2" hashRecordFile="../config/classlists/dbconst_cmsWebApp_ext.xml">
<fileset dir="${extensions.src.dir}" includes="**/*.xml">
<and>
<contains text="&lt;DB_ENUM"/>
<not>
<contains text="DO NOT REGENERATE"/>
</not>
</and>
</fileset>
</dbconst>
<const toDir="${extensions.src.dir}" xslDir="../../../Build/xsl8.2" hashRecordFile="../config/classlists/const_cmsWebApp_ext.xml">
<fileset dir="${extensions.src.dir}" includes="**/*.xml">
<and>
<contains text="&lt;CONSTANT"/>
<not>
<contains text="DO NOT REGENERATE"/>
</not>
</and>
</fileset>
</const>
</target>
<target name="error">
<echo level="error" message="No default target, compile from top level build"/>
</target>
<target name="config.fixcrlf" if="fix.crlf">
<echo level="verbose" message="########## FIXING CRLF ISSUES ########## ${cmsWebApp.war.dir}"/>
<fixcrlf srcdir="${cmsWebApp.war.dir}" eol="lf" eof="remove" includes="**/*.xml,**/*.txt,**/*.jsp,**/*.jspf,**/*.inc,**/*.htm,**/*.html,**/*.sql,**/*.css,**/*.js,**/*.dtd,**/*.mod,**/*.xsl"/>
</target>
<target name="build" depends="execute-overlays,copylib,compile">
<delete dir="${cmsWebApp.war.dir}" unless="nodelete.appwar"/>
<mkdir dir="${cmsWebApp.war.dir}"/>
<mkdir dir="${cmsWebApp.configxsl.dir}"/>
<property name="overwrite.appwar" value="false"/>
<jsync todir="${cmsWebApp.war.dir}">
<fileset dir="webroot"/>
</jsync>
<jsync todir="${cmsWebApp.war.dir}/WEB-INF">
<fileset dir="config" excludes="*.xml,*.tld"/>
</jsync>
<sleep seconds="1"/>
<echo level="info" message="Styling from config to ${cmsWebApp.configxsl.dir} and copying to ${cmsWebApp.war.dir}/WEB-INF"/>
<style processor="org.apache.tools.ant.taskdefs.optional.TraXLiaison" basedir="config" includes="*.xml" excludes="web.xml" destdir="${cmsWebApp.configxsl.dir}" extension=".xml" style="../../../Support/xslt/identity-transform.xsl">
<xmlcatalog>
<dtd publicId="-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" location="../../Support/xslt/javax/servlet/resources/web-app_2_3.dtd"/>
<dtd publicId="-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" location="../../Support/xslt/javax/servlet/jsp/resources/web-jsptaglibrary_1_2.dtd"/>
</xmlcatalog>
</style>
<echo level="info" message="Styling from web.xml to ${cmsWebApp.configxsl.dir} and copying to ${cmsWebApp.war.dir}/WEB-INF using Support/cmsWebApp/config/xslt/webxml_${tctransform.version}.xsl"/>
<style processor="org.apache.tools.ant.taskdefs.optional.TraXLiaison" basedir="config" includes="web.xml" destdir="${cmsWebApp.configxsl.dir}" extension=".xml" style="../../../Support/xslt/webxml_${tctransform.version}.xsl" force="true">
<xmlcatalog>
<dtd publicId="-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" location="../../Support/xslt/javax/servlet/resources/web-app_2_3.dtd"/>
<dtd publicId="-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" location="../../Support/xslt/javax/servlet/jsp/resources/web-jsptaglibrary_1_2.dtd"/>
</xmlcatalog>
</style>
<echo level="info" message="Styling from tlds to ${cmsWebApp.configxsl.dir} and copying to ${cmsWebApp.war.dir}/WEB-INF using ../../../CougarCMS8.2/cmsWebApp/config/xslt/taglib_${tctransform.version}.xsl"/>
<style processor="org.apache.tools.ant.taskdefs.optional.TraXLiaison" basedir="config" includes="*.tld" destdir="${cmsWebApp.configxsl.dir}" extension=".tld" style="../../../Support/xslt/taglib_${tctransform.version}.xsl" force="true">
<xmlcatalog>
<dtd publicId="-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" location="../../Support/xslt/javax/servlet/resources/web-app_2_3.dtd"/>
<dtd publicId="-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" location="../../Support/xslt/javax/servlet/jsp/resources/web-jsptaglibrary_1_2.dtd"/>
</xmlcatalog>
</style>
<jsync todir="${cmsWebApp.war.dir}/WEB-INF">
<fileset dir="${cmsWebApp.configxsl.dir}"/>
</jsync>
<jsync todir="${cmsWebApp.war.dir}/WEB-INF/lib" flatten="true">
<fileset dir="${cmsWebApp.lib.dir}">
<exclude name="**/.new*"/>
</fileset>
</jsync>
<jsync todir="${cmsWebApp.war.dir}/WEB-INF/classes">
<fileset dir="${cmsWebApp.bin.dir}"/>
</jsync>
<jsync todir="${cmsWebApp.war.dir}/WEB-INF/sql">
<fileset dir="sql">
<include name="**/*.sql"/>
<include name="**/*.xml"/>
<include name="**/*.txt"/>
</fileset>
</jsync>
<antcall target="config.fixcrlf"/>
</target>
<target name="deploy">
<filter token="cmsWebApp.deploy.dir" value="${cmsWebApp.deploy.dir}"/>
<filter token="config.deploy.dir" value="${config.deploy.dir}"/>
<filter token="cmsWebApp.deploy.dir" value="${cmsWebApp.deploy.dir}"/>
<filter token="key.file" value="${key.file}"/>
<delete dir="${cmsWebApp.target.dir}" unless="nodelete"/>
<mkdir dir="${cmsWebApp.target.dir}"/>
<jsync todir="${cmsWebApp.target.dir}">
<fileset dir="${cmsWebApp.war.dir}">
<exclude name="**/*.xml"/>
<exclude name="**/*.properties"/>
<exclude name="**/*.scc"/>
</fileset>
</jsync>
<copy todir="${cmsWebApp.target.dir}" filtering="true" overwrite="true">
<fileset dir="${cmsWebApp.war.dir}">
<include name="**/*.xml"/>
<include name="**/*.properties"/>
</fileset>
</copy>
</target>
<target name="deployJSP">
<jsync todir="${cmsWebApp.target.dir}">
<fileset dir="${cmsWebApp.war.dir}">
<exclude name="WEB-INF/**"/>
</fileset>
</jsync>
</target>
</project>
<?xml version="1.0"?>
<OBJECTS name="FOO">
</OBJECTS>
<?xml version="1.0" encoding="UTF-8"?>
<OBJECTS name="">
<NODE name="DBEnumStaticOverride:ArticleTemplates" factory="Participant" class="oneit.appservices.dbenums.DBEnumStaticOptions">
<!-- This gets the standard templates for you. -->
<INHERITS nodename="DBEnumStaticOverride:StandardTemplates"/>
<!-- You also need to list any custom templates here -->
<!--
<MAP value="MY_TEMPLATE" description="Site" TemplatePage="mymagic.jsp">
<NODE name="Config" factory="Participant" class="oneit.business.content.ArticleConfiguration">
<INHERITS nodename="StandardJSP"/>
<Attribute name="Document" factory="MetaComponent" component="FileAttrib" mandatory="true" secure="true" isSearchable="true"/>
<Attribute name="ALT Text" factory="MetaComponent" component="StringAttrib"/>
<Template name="ArticleImplementation" factory="Participant" class="oneit.business.content.DefaultArticleImpl" target="_blank" attributeToDisplayAsArticle="Document"/>
<Template name="ContentPreIncludeJSP:Page" factory="String" value="inc/dyn/page_mymagic.jsp"/>
<Content name="MagicSynopsis"/>
</NODE>
</MAP>
<MAP value="FUNNY_SECTION" description="Funny Section" TemplatePage="dynamic_content.jsp" IsCompoundArticle="true">
<NODE name="Config" factory="Participant" class="oneit.business.content.ArticleConfiguration">
<INHERITS nodename="StandardJSP"/>
Custom config stuff goes here
</NODE>
<NODE name="ChildConfig" factory="Participant" class="oneit.business.content.ArticleConfiguration">
This config is applied to the children of this article
</NODE>
</MAP>
-->
</NODE>
<!-- This is where you override the standard templates from Cougar -->
<!--
<NODE name="SECTION" factory="Participant" class="oneit.business.content.ArticleConfiguration">
<INHERITS nodename="SECTION:base"/>
<Template name="ContentPreIncludeJSP:Synopsis" factory="String" value="inc/dyn/synopsis_section.jsp"/>
</NODE>
<NODE name="StandardJSP" factory="Participant" class="oneit.business.content.ArticleConfiguration">
<INHERITS nodename="StandardJSP:base"/>
<Attribute name="CatchlineName" factory="MetaComponent" component="StringAttrib" group="Banner"/>
</NODE>
-->
</OBJECTS>
<?xml version="1.0"?>
<OBJECTS name="">
</OBJECTS>
<?xml version="1.0"?>
<OBJECTS name="">
<NODE name="CONFIG.CASHFLOW" factory="SystemConfiguration">
<PARENT factory="Named" nodename="CONFIG.GLOBAL"/>
</NODE>
</OBJECTS>
<?xml version="1.0"?>
<!-- This file can be used to override any configs -->
<OBJECTS name="">
<NODE name="CONFIG.GLOBAL" factory="SystemConfiguration">
<PARENT factory="Named" nodename="CONFIG.GLOBAL:parent"/>
<PARAM name="StorageMappings" factory="Participant" class="oneit.objstore.rdbms.StorageMapping">
<INHERITS nodename="StorageMappingsParent"/>
<!-- This is an example MAP node for adding more polymorphic loaders
<MAP code="SEC_USER" class="oneit.security.SecUser"/>
-->
</PARAM>
<PARAM name="DBEnumStaticOverride:oneit.business.content.ArticleTemplate" factory="Named" nodename="DBEnumStaticOverride:ArticleTemplates"/>
</NODE>
<NODE name="CONFIG.ORMVALIDATOR" factory="SystemConfiguration">
<PARENT factory="Named" nodename="CONFIG.ORMVALIDATOR:parent"/>
<!-- Validator for InvoiceStatus
<PARAM name="InvoiceStatusValidator" factory="Participant" class="oneit.cashflow.orm.InvoiceStatusValidator" errorType="illegalStatus"/>
-->
</NODE>
<NODE name="CONFIG.CONTENT" factory="SystemConfiguration">
<PARENT factory="Named" nodename="CONFIG.CONTENT:parent"/>
<!-- Initial HTML for new articles -->
<!-- <PARAM name="initialHTML" factory="String">
<![CDATA[
<html>
<head>
<meta name='author' content='Cougar Content by 1iT www.1it.com.au'>
<link href="css/cms_style.css" rel="stylesheet" type="text/css">
</head>
<body>
<p>
</p>
<br>
</body>
</html>]]>
</PARAM> -->
<!-- Withdrawal diration of new articles -->
<!-- <PARAM name="DefaultNewArticleWithdrawDurationYears" factory="Integer" value="50"/> -->
<!-- List of groups for filtering
<PARAM name="listFilterGroupNames" factory="Array" class="java.lang.String">
<NODE factory="String" value="Sales"/>
<NODE factory="String" value="Dealer"/>
</PARAM>
-->
<!--
<PARAM name="ArticleLifecycleListeners" factory="Array" class="oneit.business.content.ArticleLifecycleListener">
<NODE factory="Participant" class="cba.xsites.wizard.XSitesCommitListener"/>
</PARAM>
-->
<NODE name="SharedPersonalisationTransformFactories">
<INHERITS nodename="SharedPersonalisationTransformFactories:parent"/>
<NODE name="it" factory="Participant" class="oneit.utils.transform.param.ConstantTransform">
<Constant factory="String"><![CDATA[<span class="oneit_it">it</span>]]></Constant>
</NODE>
</NODE>
</NODE>
<NODE name="CONFIG.SEARCH" factory="SystemConfiguration">
<PARENT factory="Named" nodename="CONFIG.SEARCH:parent"/>
<!-- Uncomment this to enable the content search -->
<!-- <PARAM name="DoCMSSearch" factory="Boolean" value="true"/> -->
</NODE>
</OBJECTS>
#
# Database details
#
db.type=MSSQL MS Driver
db.server=[db server name here]
db.name=[database name here]
db.port=1433
db.user=[db user]
db.password=[db passwd]
#
# SMTP server for sending emails
#
smtp.server.name=smtp.vianet.net.au
#
# Error emails sent to this address
#
logging.email.to=[error email recipient here]
encryption.key=ABCDEFGHIJKLMNOPQ
#
# Web server details for pre-loading JSPs
# and creating absolute references where applicable
#
web.server.name=localhost:8080/[xyz]
web.server.port=8080
web.server.path=/[xyz]/
#
# Logging profile
#
logging.profile=PRODUCTION
#
# Licencing key
#
1itcougar.license.key=[LicenseKey]
1itcougar.license.data=[Long String]
db.type=PostgreSQL
db.user=postgres
db.password=password
db.server=localhost
db.name=PerformaInvestments
db.port=5432
smtp.server.name=localhost
logging.email.to=devnull@oneit.com.au
encryption.key=ABCDEFGHIJKLMNOP
## Web server details for pre-load
web.server.name=localhost:8080/[TODO]PerformaInvestments
web.server.port=8080
web.server.path=/[TODO]/PerformaInvestments
logging.profile=WEBTEST
email.send.nothing=false
email.sendall.to=devnull@oneit.com.au
upgrade.execute.password=password
1itcougar.license.key=Developer
1itcougar.license.data=31402889AB7D5F2596110E88606C45777AB77195B8BF35CE5AAFB3CAC3F2A6E82BF8372A62B31E166C06FE1224E1E8557FDD2BF8216634E57DD5F0B69AA5FAD745DA3D510EAA04D8A3E2BEDDB2ED2C1C34ECFA9787DA13128F694C00E251F34C7336397CCB61313358B96D9E3BDB3E52F8E76E643A32D4C5173A7DE0138D01776857B38A9A0C28CAD2E54A399EB61BBD2E33F516526C5AFCE54C2231F146CC71E3B066AB159BF6E37BD6CE3B9EB7A2264A3D81CFF492121791980D1C553F668E93D9E7EEC95251F3CB009383F812707FFA524AFBDB58D6B85961527091F9E00FEB309D1741F16B754FCD9D8A77A160D73DB387EB4AE4DE13294FEB44BCFAD6E2706C7EEF936583C102BA931939272D88693BE84345FAE09182C86E8BB1E044EE0C9CEC14949BAC4D01C842DC6F8E04D2A2A0E9F83F6E0E910B4D77A76FE4EA116D3E80F81A7DADE0EA579F3A38408356750627DF1C690D0B1E59BDE53A57FB56AE216994E46F26877231B9EA61AFF8098BA890A550A045ADBE2274F40D4F5C0EB2D709A4A0C2C211517C910BF5C5ED99949FC75B554961E6B5D3F84479F0240B3CE7594D8E2FF488EF9F8E4029B1F7419B1A80E2A22CEDECF1D359B179164FBFF64334513C95434AB6E65FEB097A76BA83F98E
java.version=8
tctransform.version=70
#
# Production deployment properties
# Application: PerformaInvestments
#
# To build, use:
# ant -Dcustom.property.file=(this file path) cmsWebApp deploy
#
#
# Local Build Paths:
# Where the files are compiled
# should be different from the dev build
#
build.target.dir=${dir.root}/Build/Target/PerformaInvestments
keywebapp.deploy=/misc/PerformaInvestments/webapps/ROOT
keywebapp.target=${dir.root}/Deploy/Target/PerformaInvestments/webapps/ROOT
#
# Local Target Paths:
# The location that the deployment puts the files
#
webapp.target.dir=${keywebapp.target}/WEB-INF/webapps
cmsWebApp.target.dir=${keywebapp.target}
config.target.dir=${keywebapp.target}/WEB-INF/config
app.target.dir=${keywebapp.target}/WEB-INF/apps
#
# Server Deploy Paths
# The final location where the system is run from
#
webapp.deploy.dir=${keywebapp.deploy}/WEB-INF/webapps
cmsWebApp.deploy.dir=${keywebapp.deploy}
config.deploy.dir=${keywebapp.deploy}/WEB-INF/config
app.deploy.dir=${keywebapp.deploy}/WEB-INF/apps
#
# Location of keyfile in deployment
# This is the default location deployed from config
# but can be placed elsewhere for security reasons.
#
cd.deploy.dir=${dir.root}/Deploy/PerformaInvestments/CD_image
key.file=${config.deploy.dir}/thor.keyfile.properties
build.target.dir=${dir.root}/Build/PerformaInvestments
webapp.deploy.dir=${dir.root}/Deploy/PerformaInvestments/webapps
config.deploy.dir=${dir.root}/Deploy/PerformaInvestments/config
app.deploy.dir=${dir.root}/Deploy/PerformaInvestments/apps
# apps for deploying
cd.deploy.dir=${dir.root}/PerformaInvestments/CD_image
key.file=${dir.root}/Projects/PerformaInvestments/keyfile.properties
tomcat.version=tomcat4
tomcat.manager.username=tomcat
tomcat.manager.password=tomcat
tomcat.app.contextpath=PerformaInvestments
DELETE FROM oneit_constant WHERE constant_category_id = 20002;
DELETE FROM oneit_constant_category WHERE object_id = 20002;
INSERT INTO oneit_constant_category
(object_id, name, description, object_last_updated_date, object_created_date)
VALUES
(20002, 'FieldNames', 'FieldNames', getdate(), getdate());
INSERT INTO oneit_constant
(object_id,
constant_category_id,
name,
description,
value,
validation,
object_last_updated_date,
object_created_date)
VALUES
(25001,
20002,
'CLASS.FIELD',
'CLASS.FIELD',
'Field name',
'<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>',
getdate(),
getdate());
INSERT INTO oneit_constant
(object_id,
constant_category_id,
name,
description,
value,
validation,
object_last_updated_date,
object_created_date)
VALUES
(25002,
20002,
'CLASS.FIELD$mode',
'CLASS.FIELD$mode',
'Field name',
'<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>',
getdate(),
getdate());
INSERT INTO oneit_constant
(object_id,
constant_category_id,
name,
description,
value,
validation,
object_last_updated_date,
object_created_date)
VALUES
(25003,
20002,
'Debtor.Contact',
'Debtor.Contact',
'Contat Name',
'<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>',
getdate(),
getdate());
INSERT INTO oneit_constant
(object_id,
constant_category_id,
name,
description,
value,
validation,
object_last_updated_date,
object_created_date)
VALUES
(25004,
20002,
'Debtor.CompanyName',
'Debtor.CompanyName',
'Company',
'<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>',
getdate(),
getdate());
INSERT INTO oneit_constant
(object_id,
constant_category_id,
name,
description,
value,
validation,
object_last_updated_date,
object_created_date)
VALUES
(25005,
20002,
'Debtor.Address1',
'Debtor.Address1',
'Address 1',
'<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>',
getdate(),
getdate());
INSERT INTO oneit_constant
(object_id,
constant_category_id,
name,
description,
value,
validation,
object_last_updated_date,
object_created_date)
VALUES
(25006,
20002,
'Debtor.Address2',
'Debtor.Address2',
'Address 2',
'<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>',
getdate(),
getdate());
INSERT INTO oneit_constant
(object_id,
constant_category_id,
name,
description,
value,
validation,
object_last_updated_date,
object_created_date)
VALUES
(25007,
20002,
'Debtor.SUBURB',
'Debtor.SUBURB',
'Suburb',
'<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>',
getdate(),
getdate());
INSERT INTO oneit_constant
(object_id,
constant_category_id,
name,
description,
value,
validation,
object_last_updated_date,
object_created_date)
VALUES
(25008,
20002,
'Debtor.POSTCODE',
'Debtor.POSTCODE',
'Postcode',
'<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>',
getdate(),
getdate());
INSERT INTO oneit_constant
(object_id,
constant_category_id,
name,
description,
value,
validation,
object_last_updated_date,
object_created_date)
VALUES
(25009,
20002,
'Debtor.TERMS',
'Debtor.TERMS',
'Payment Terms',
'<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>',
getdate(),
getdate());
INSERT INTO oneit_constant
(object_id,
constant_category_id,
name,
description,
value,
validation,
object_last_updated_date,
object_created_date)
VALUES
(25010,
20002,
'Invoice.InvoiceNumber',
'Invoice.InvoiceNumber',
'Invoice Number',
'<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>',
getdate(),
getdate());
INSERT INTO oneit_constant
(object_id,
constant_category_id,
name,
description,
value,
validation,
object_last_updated_date,
object_created_date)
VALUES
(25011,
20002,
'Invoice.BalanceDue',
'Invoice.BalanceDue',
'Balance Due',
'<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>',
getdate(),
getdate());
INSERT INTO oneit_constant
(object_id,
constant_category_id,
name,
description,
value,
validation,
object_last_updated_date,
object_created_date)
VALUES
(25012,
20002,
'Invoice.StatusLastChanged',
'Invoice.StatusLastChanged',
'Status Last Changed',
'<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>',
getdate(),
getdate());
INSERT INTO oneit_constant
(object_id,
constant_category_id,
name,
description,
value,
validation,
object_last_updated_date,
object_created_date)
VALUES
(25013,
20002,
'Invoice.DueDate',
'Invoice.DueDate',
'Due Date',
'<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>',
getdate(),
getdate());
INSERT INTO oneit_constant
(object_id,
constant_category_id,
name,
description,
value,
validation,
object_last_updated_date,
object_created_date)
VALUES
(25014,
20002,
'Invoice.InvoiceStatus',
'Invoice.InvoiceStatus',
'Invoice Status',
'<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>',
getdate(),
getdate());
INSERT INTO oneit_constant
(object_id,
constant_category_id,
name,
description,
value,
validation,
object_last_updated_date,
object_created_date)
VALUES
(25015,
20002,
'InvoiceTemplate.StartNext',
'InvoiceTemplate.StartNext',
'Start Next',
'<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>',
getdate(),
getdate());
INSERT INTO oneit_constant
(object_id,
constant_category_id,
name,
description,
value,
validation,
object_last_updated_date,
object_created_date)
VALUES
(25016,
20002,
'InvoiceTemplate.MonthPeriod',
'InvoiceTemplate.MonthPeriod',
'Month Period',
'<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>',
getdate(),
getdate());
INSERT INTO oneit_constant
(object_id,
constant_category_id,
name,
description,
value,
validation,
object_last_updated_date,
object_created_date)
VALUES
(25017,
20002,
'InvoiceTemplate.RaiseInAdvance',
'InvoiceTemplate.RaiseInAdvance',
'Raise In Advance',
'<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>',
getdate(),
getdate());
INSERT INTO oneit_constant
(object_id,
constant_category_id,
name,
description,
value,
validation,
object_last_updated_date,
object_created_date)
VALUES
(25018,
20002,
'InvoiceTemplate.BalanceDue',
'InvoiceTemplate.BalanceDue',
'Balance Due',
'<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>',
getdate(),
getdate());
DELETE FROM oneit_constant WHERE constant_category_id = 20003;
DELETE FROM oneit_constant_category WHERE object_id = 20003;
INSERT INTO oneit_constant_category
(object_id, name, description, object_last_updated_date, object_created_date)
VALUES
(20003, 'GUILabels', 'GUILabels', getdate(), getdate());
INSERT INTO oneit_constant
(object_id,
constant_category_id,
name,
description,
value,
validation,
object_last_updated_date,
object_created_date)
VALUES
(27001,
20003,
'SampleLabel',
'SampleLabel',
'SampleValue',
'<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>',
getdate(),
getdate());
DELETE FROM oneit_constant WHERE constant_category_id = 20004;
DELETE FROM oneit_constant_category WHERE object_id = 20004;
INSERT INTO oneit_constant_category
(object_id, name, description, object_last_updated_date, object_created_date)
VALUES
(20004, 'Message', 'Message', getdate(), getdate());
INSERT INTO oneit_constant
(object_id,
constant_category_id,
name,
description,
value,
validation,
object_last_updated_date,
object_created_date)
VALUES
(29001,
20004,
'#',
'#',
'Please enter a valid ${name}',
'<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>',
getdate(),
getdate());
INSERT INTO oneit_constant
(object_id,
constant_category_id,
name,
description,
value,
validation,
object_last_updated_date,
object_created_date)
VALUES
(29002,
20004,
'#mandatory',
'#mandatory',
'Please enter a value for ${name}',
'<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>',
getdate(),
getdate());
INSERT INTO oneit_constant
(object_id,
constant_category_id,
name,
description,
value,
validation,
object_last_updated_date,
object_created_date)
VALUES
(29003,
20004,
'#tooLong',
'#tooLong',
'The value for ${name} is too long',
'<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>',
getdate(),
getdate());
INSERT INTO oneit_constant
(object_id,
constant_category_id,
name,
description,
value,
validation,
object_last_updated_date,
object_created_date)
VALUES
(29004,
20004,
'#invalidFormat',
'#invalidFormat',
'The ${name} is not valid',
'<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>',
getdate(),
getdate());
INSERT INTO oneit_constant
(object_id,
constant_category_id,
name,
description,
value,
validation,
object_last_updated_date,
object_created_date)
VALUES
(29005,
20004,
'CLASS.FIELD#error',
'CLASS.FIELD#error',
'Message if error occurs against FIELD on CLASS',
'<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>',
getdate(),
getdate());
INSERT INTO oneit_constant
(object_id,
constant_category_id,
name,
description,
value,
validation,
object_last_updated_date,
object_created_date)
VALUES
(29006,
20004,
'CLASS.FIELD',
'CLASS.FIELD',
'Message if any other error occurs against FIELD on CLASS',
'<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>',
getdate(),
getdate());
INSERT INTO oneit_constant
(object_id,
constant_category_id,
name,
description,
value,
validation,
object_last_updated_date,
object_created_date)
VALUES
(29007,
20004,
'#greater0',
'#greater0',
'The value for ${name} must be greater than 0',
'<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>',
getdate(),
getdate());
INSERT INTO oneit_constant
(object_id,
constant_category_id,
name,
description,
value,
validation,
object_last_updated_date,
object_created_date)
VALUES
(29008,
20004,
'#tooShort',
'#tooShort',
'The value for ${name} is too short',
'<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>',
getdate(),
getdate());
INSERT INTO oneit_constant
(object_id,
constant_category_id,
name,
description,
value,
validation,
object_last_updated_date,
object_created_date)
VALUES
(29009,
20004,
'#regex',
'#regex',
'The ${name} is not valid',
'<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>',
getdate(),
getdate());
INSERT INTO oneit_constant
(object_id,
constant_category_id,
name,
description,
value,
validation,
object_last_updated_date,
object_created_date)
VALUES
(29010,
20004,
'#tooBig',
'#tooBig',
'The value of ${name} is too large',
'<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>',
getdate(),
getdate());
INSERT INTO oneit_constant
(object_id,
constant_category_id,
name,
description,
value,
validation,
object_last_updated_date,
object_created_date)
VALUES
(29011,
20004,
'#tooSmall',
'#tooSmall',
'The value of ${name} is too small',
'<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>',
getdate(),
getdate());
INSERT INTO oneit_constant
(object_id,
constant_category_id,
name,
description,
value,
validation,
object_last_updated_date,
object_created_date)
VALUES
(29012,
20004,
'#illegalStatus',
'#illegalStatus',
'The status you have chosen is illegal.',
'<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>',
getdate(),
getdate());
DELETE FROM oneit_constant WHERE constant_category_id = 20005;
DELETE FROM oneit_constant_category WHERE object_id = 20005;
INSERT INTO oneit_constant_category
(object_id, name, description, object_last_updated_date, object_created_date)
VALUES
(20005, 'Enums', 'Enums', getdate(), getdate());
INSERT INTO oneit_constant
(object_id,
constant_category_id,
name,
description,
value,
validation,
object_last_updated_date,
object_created_date)
VALUES
(31001,
20005,
'CustomerType.XXXXX',
'CustomerType.XXXXX',
'Account Name',
'<NODE factory="Participant" class="oneit.utils.parsers.StringParser"/>',
getdate(),
getdate());
<?xml version="1.0" encoding="UTF-8"?>
<SYSTEM name="PerformaInvestments" targetDir="C:/build/PerformaInvestments" executor="testMainApp">
<WEBAPP name="cmsWebApp" relative-path="cmsWebApp" deployment="cms">
<OVERLAY system="CougarCMS8.2" subsystem="cmsWebApp" pin="CougarCMS8_2_Develop"/>
</WEBAPP>
<PARAMETER name="key.file"/>
<SUBSYSTEM name="CMS"/>
<SUBSYSTEM name="Support"/>
<CUSTOM.ANT.DEPLOY>
</CUSTOM.ANT.DEPLOY>
</SYSTEM>
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