From b4e49e8b29baeb13f31861ace3890e947b17228b Mon Sep 17 00:00:00 2001 From: "Eric J. Bowersox" Date: Thu, 26 Jan 2006 07:04:42 +0000 Subject: [PATCH] updated build to automate the process of copying configuration to Tomcat 5, and also have it generate logging configuration with selectable logging directory --- build.properties.sample | 7 +++ build.xml | 53 ++++++++++++++++--- ...gging-config.xml => logging-config.xml.in} | 6 +-- setup/context-add.xml | 4 -- setup/tomcat.policy.add | 4 -- setup/venice-tomcat5.xml.in | 22 ++++++++ 6 files changed, 77 insertions(+), 19 deletions(-) rename etc/{logging-config.xml => logging-config.xml.in} (90%) delete mode 100644 setup/context-add.xml delete mode 100644 setup/tomcat.policy.add create mode 100644 setup/venice-tomcat5.xml.in diff --git a/build.properties.sample b/build.properties.sample index 83348db..a0962b4 100644 --- a/build.properties.sample +++ b/build.properties.sample @@ -24,6 +24,7 @@ # [Target directories] deploy.home=/home/erbo/venice # javadoc.home=${deploy.home}/javadoc +# logging.dir=${user.home} # [Location of Servlet API 2.4] servlet.base=/usr/local/java/apache-tomcat-5.5.15 @@ -80,3 +81,9 @@ rhino.base=/usr/local/java/rhino1_5R4_1 velocity.base=/usr/local/java/velocity-1.4 # velocity.lib=${velocity.base} # velocity.jarfile=velocity-1.4.jar + +# [Tomcat 5 deploy properties] +# tomcat5.base=../tomcat5 +# tomcat5.confdir=${tomcat5.base}/conf/Catalina/localhost +# tomcat5.deployAs=${ant.project.name} + diff --git a/build.xml b/build.xml index d2a9d54..7899ee7 100644 --- a/build.xml +++ b/build.xml @@ -16,7 +16,7 @@ Contributor(s): --> - + + @@ -94,6 +95,11 @@ + + + + + @@ -110,6 +116,13 @@ + + + + + @@ -178,11 +191,11 @@ - + @@ -190,8 +203,13 @@ - - + + + + + + + @@ -205,15 +223,33 @@ - + - + + + + + + + + + + + + + + + @@ -228,6 +264,7 @@ ============================================================================ --> + diff --git a/etc/logging-config.xml b/etc/logging-config.xml.in similarity index 90% rename from etc/logging-config.xml rename to etc/logging-config.xml.in index dd4883f..cb13aa4 100644 --- a/etc/logging-config.xml +++ b/etc/logging-config.xml.in @@ -13,7 +13,7 @@ The Initial Developer of the Original Code is Eric J. Bowersox , for Silverwrist Design Studios. Portions created by Eric J. Bowersox are - Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. + Copyright (C) 2001-2006 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. Contributor(s): --> @@ -21,7 +21,7 @@ - + @@ -32,7 +32,7 @@ - + diff --git a/setup/context-add.xml b/setup/context-add.xml deleted file mode 100644 index 9c4852b..0000000 --- a/setup/context-add.xml +++ /dev/null @@ -1,4 +0,0 @@ - - diff --git a/setup/tomcat.policy.add b/setup/tomcat.policy.add deleted file mode 100644 index ea39bd1..0000000 --- a/setup/tomcat.policy.add +++ /dev/null @@ -1,4 +0,0 @@ -grant codebase "file:/home/erbo/venice" { - permission java.security.AllPermission; -}; - diff --git a/setup/venice-tomcat5.xml.in b/setup/venice-tomcat5.xml.in new file mode 100644 index 0000000..4381c95 --- /dev/null +++ b/setup/venice-tomcat5.xml.in @@ -0,0 +1,22 @@ + + + + +