From 5430f540e9641f8eada5320c4331555dcc26298b Mon Sep 17 00:00:00 2001 From: maxcooper Date: Mon, 5 May 2003 11:38:27 +0000 Subject: [PATCH] new build system, includes deployment --- build-webapp.xml | 317 --------------------------------- build-webapps.xml | 347 ++++++++++++++++++++++-------------- build.properties.sample | 59 +++++-- build.xml | 457 +++++++++++++++++------------------------------- deploy.xml | 67 +++++++ 5 files changed, 489 insertions(+), 758 deletions(-) delete mode 100644 build-webapp.xml create mode 100644 deploy.xml diff --git a/build-webapp.xml b/build-webapp.xml deleted file mode 100644 index c542c6d..0000000 --- a/build-webapp.xml +++ /dev/null @@ -1,317 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/build-webapps.xml b/build-webapps.xml index 22fb439..8aba8f9 100644 --- a/build-webapps.xml +++ b/build-webapps.xml @@ -1,178 +1,253 @@ - + + - + +]> + - + + &properties; + + - - build.home Base directory into which we are building - the Security Filter components. + + + + - compile.classpath If specified, contains a set of JAR files - and/or directories to be added to the - compilation classpath. + + + + + + + + + - servlet.jar The pathname of the servlet API classes - that you wish to compile against. + - securityfilter.libs The directory containing - securityfilter.jar file. + + + + - webapp.libs If specified, must be the pathname of a - directory from which all available - "*.jar" files are copied to the web - application's WEB-INF/lib directory. - --> + - - + + + + + + - + + + + + - + - - - - - - - + + + + + + + + - - - - - - - - - - - - - + - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + - - + + - - + + - - - - - - + + + + - - - + + - - - + + + - - - - - - - - - - - + + + + Processing webapp: ${webapp.name} + + + + + + + + + + + + + + No sources to compile for webapp ${webapp.name}. + + + + + + + + + No static files to copy for webapp ${webapp.name}. + + + + + + + + + No library files to copy for webapp ${webapp.name}. + + + + Processing webapp: ${webapp.name} + + + + + + + + - - + + Processing webapp: ${webapp.name} + + + + + + + + + + + + + + + + Processing webapp: ${webapp.name} + + + + + + + + + + + + + + + + + + Processing webapp: ${webapp.name} + + + + + + + + + + + + + + Processing webapp: ${webapp.name} + + + + + + + + + + Processing webapp: ${webapp.name} + + diff --git a/build.properties.sample b/build.properties.sample index 10fc8d3..07154ad 100644 --- a/build.properties.sample +++ b/build.properties.sample @@ -2,38 +2,75 @@ # build.properties.sample # # This is an example "build.properties" file, used to customize building -# Security Filter for your local environment. Make any changes you need, and -# rename this file to "build.properties" in the same directory that contains -# the Security Filter "build.xml" file. +# Security Filter. Copy this file to "build.properties" and make any changes +# you want to use custom values. # -# $Id: build.properties.sample,v 1.3 2003/03/30 10:34:24 maxcooper Exp $ +# $Id: build.properties.sample,v 1.4 2003/05/05 11:38:27 maxcooper Exp $ +# ----------------------------------------------------------------------------- + +# ----------------------------------------------------------------------------- +# Tomcat deployment settings +# +# Set these values for deploying to your Tomcat server for automated +# deployment and testing of the SecurityFilter web apps. The username +# must be in the admin group on your server, and the admin app must running. +# +# If these values are not set, the default values listed below will be used. +# ----------------------------------------------------------------------------- +#tomcat.host=localhost +#tomcat.port=8080 +#tomcat.username=admin +#tomcat.password=password + +# ----------------------------------------------------------------------------- +# Tomcat installation directory (CATALINA_HOME) +# +# If you do not wish to set CATALINA_HOME in your environment or on the Ant +# command line (as env.CATALINA_HOME), you can set env.CATALINA_HOME to +# point to your Tomcat installation in your build.properties file. This +# value is required to access the catalina-ant.jar file with the +# Tomcat-specific Ant deployment tasks. The default behavior is to get the +# value from the environment, in which case it does not need to be set here. +# ----------------------------------------------------------------------------- +#env.CATALINA_HOME=/usr/local/jakarta-tomcat-4.1.24-LE-jdk14 + +# ----------------------------------------------------------------------------- +# External library files +# +# These files are all avilable in the securityfilter lib CVS directory, and +# do not need to be set if you wish to use the default libraries. The build +# file will automatically set them to the values commented out below, so you +# do not need to uncomment these values to use the defaults. +# +# You can override them to point to external libraries if you would like to +# use versions that are not available in the lib directory. # ----------------------------------------------------------------------------- # The catalina JAR file from version 4.0 (or later) of the Jakarta Tomcat # package. -catalina.jar=/usr/local/jakarta-tomcat-4.1.24/server/lib/catalina.jar +#catalina.jar=lib/catalina.jar # The JAR file containing version 1.0 (or later) of the Beanutils package # from the Jakarta Commons project. -commons-beanutils.jar=/usr/local/commons-beanutils-1.6.1/commons-beanutils.jar +#commons-beanutils.jar=lib/commons-beanutils.jar # The JAR file containing version 1.0 (or later) of the Collections package # from the Jakarta Commons project. -commons-collections.jar=/usr/local/commons-collections-2.1/commons-collections.jar +#commons-collections.jar=lib/commons-collections.jar # The JAR file containing version 1.0 (or later) of the Digester package # from the Jakarta Commons project. -commons-digester.jar=/usr/local/commons-digester-1.4.1/commons-digester.jar +#commons-digester.jar=lib/commons-digester.jar # The JAR file containing version 1.0 (or later) of the Logging package # from the Jakarta Commons project. -commons-logging.jar=/usr/local/commons-logging-1.0.2/commons-logging.jar +#commons-logging.jar=lib/commons-logging.jar # The JAR file containing version 2.0.6 (or later) of # the the Jakarta ORO project. -jakarta-oro.jar=/usr/local/jakarta-oro-2.0.7/jakarta-oro-2.0.7.jar +#jakarta-oro.jar=lib/jakarta-oro.jar # The JAR file containing the Servlet API version 2.3 (or later) classes to # compile against -servlet.jar=/usr/local/jakarta-servletapi-4/lib/servlet.jar +#servlet.jar=lib/servlet.jar diff --git a/build.xml b/build.xml index c5f679a..cecb3d6 100644 --- a/build.xml +++ b/build.xml @@ -1,193 +1,88 @@ - + - - This script will delegate some of it's tasks to the other build*.xml - scripts (build-webapps.xml, ...) - --> + +]> + - + + &properties; - - catalina.jar (required). The path to the JAR file - of the Tomcat - package (version 4.0 or later). + - commons-beanutils.jar (required). The path to the JAR file - of the Jakarta Commons Beanutils - package (version 1.0 or later). + - commons-collections.jar (required). The path to the JAR file - of the Jakarta Commons Collections - package (version 1.0 or later). - - commons-digester.jar (required). The path to the JAR file - of the Jakarta Commons Digester - package (version 1.0 or later). - - commons-logging.jar (required). The path to the JAR file - of the Jakarta Commons Logging - package (version 1.0 or later). - - jakarta-oro.jar (required). The path to the JAR file - of the Jakarta ORO - package (version 2.0.6 or later). - - servlet.jar (required). The path to the Servlet API - classes to compile against - (version 2.3 or later). - - --> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - - + + + + + + + + + + + - - - + + - + - - - - - + + + + + + + + + + - - - - - + + + + + + + + + - + - + @@ -196,57 +91,31 @@ - - - + + + - - - - - - - - - - - + + + + + + - - - + + + + - - - - + + + + bottom="Copyright © 2002, 2003 - SecurityFilter.org"> @@ -263,99 +132,99 @@ - - - - - - + - - - - + + + + + + + + + + + + + + + + + - - - + + + + - - - - - - - + - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - - + + + + + + + - - - - + + + - - - + + + - - - - - + + - - + + + + + + + + + + No tests yet, but they're coming soon! + + + + + diff --git a/deploy.xml b/deploy.xml new file mode 100644 index 0000000..8d0a450 --- /dev/null +++ b/deploy.xml @@ -0,0 +1,67 @@ + + + + + +]> + + + + &properties; + + + Deploying ${webapp.name}.war + + + + + Undeploying ${webapp.name}.war + + + + + + + + + + + + + + + + + + + + + Deploying ${webapp.name}.war on Tomcat + + + + + Undeploying ${webapp.name}.war from Tomcat + + + + + + + + + + -- 2.11.0