From e0428f0229fe920bc311c123f29b8471bc4e064a Mon Sep 17 00:00:00 2001 From: mindthegab Date: Wed, 9 Jul 2008 23:31:27 +0000 Subject: [PATCH] -- updated to have a separate config folder for the module config and enforce pom properties single sourcing git-svn-id: http://maven-alfresco-archetypes.googlecode.com/svn/trunk@25 04253f4f-3451-0410-a141-5562f1e59037 --- .../main/config/context/service-context.xml | 34 +++++++++++++++ .../src/main/config/log4j.properties | 41 +++++++++++++++++++ .../src/main/config/module-context.xml | 25 +++++++++++ 3 files changed, 100 insertions(+) create mode 100644 maven-alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/config/context/service-context.xml create mode 100644 maven-alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/config/log4j.properties create mode 100644 maven-alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/config/module-context.xml diff --git a/maven-alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/config/context/service-context.xml b/maven-alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/config/context/service-context.xml new file mode 100644 index 00000000..af80bed8 --- /dev/null +++ b/maven-alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/config/context/service-context.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + diff --git a/maven-alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/config/log4j.properties b/maven-alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/config/log4j.properties new file mode 100644 index 00000000..960dd90b --- /dev/null +++ b/maven-alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/config/log4j.properties @@ -0,0 +1,41 @@ +# 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. + #----------------------------------------------------------------------- + # ${artifactId} module log4j.properties + # + # NOTE + # ---- + # Log4j uses the following logging levels: + # debug,info,warn,error,fatal + # + # To set the logging level of {fullClassName} to {loglevel}, + # add a line to this file of the following form: + # + # log4j.logger.{fullClassName}={loglevel} + # + # For example, to make 'com.example.MyExample' produce 'debug' + # logs, add a line like this: + # + # log4j.logger.com.example.MyExample=debug + # + # + # WARNING + # ------- + # Log properties in this log4j.properties file override/augment + # those in the webapp's main log4j.properties. + # + #----------------------------------------------------------------------- + + log4j.logger.com.sourcesense.demoamp.DemoComponent=${module.log.level} \ No newline at end of file diff --git a/maven-alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/config/module-context.xml b/maven-alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/config/module-context.xml new file mode 100644 index 00000000..e6a65964 --- /dev/null +++ b/maven-alfresco-amp-archetype/src/main/resources/archetype-resources/src/main/config/module-context.xml @@ -0,0 +1,25 @@ + + + + + + + + +