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"?>
<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
<?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