mirror of
https://github.com/Alfresco/alfresco-sdk.git
synced 2025-10-01 14:41:57 +00:00
-- 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
This commit is contained in:
@@ -0,0 +1,34 @@
|
|||||||
|
<?xml version='${version}' encoding='UTF-8'?>
|
||||||
|
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
|
||||||
|
<!--
|
||||||
|
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.
|
||||||
|
|
||||||
|
-->
|
||||||
|
<beans>
|
||||||
|
|
||||||
|
<!-- A simple class that is initialized by Spring -->
|
||||||
|
<bean id="${groupId}.${artifactId}.exampleBean" class="com.sourcesense.demoamp.Demo" init-method="init" />
|
||||||
|
|
||||||
|
<!-- A simple module component that will be executed once -->
|
||||||
|
<bean id="${groupId}.${artifactId}.exampleComponent" class="com.sourcesense.demoamp.DemoComponent" parent="module.baseComponent" >
|
||||||
|
<property name="moduleId" value="${pom.groupId}.${pom.artifactId}" /> <!-- See module.properties -->
|
||||||
|
<property name="name" value="exampleComponent" />
|
||||||
|
<property name="description" value="A demonstration component" />
|
||||||
|
<property name="sinceVersion" value="2.0" />
|
||||||
|
<property name="appliesFromVersion" value=".20x" />
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
</beans>
|
@@ -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}
|
@@ -0,0 +1,25 @@
|
|||||||
|
<?xml version='${version}' encoding='UTF-8'?>
|
||||||
|
<!--
|
||||||
|
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.
|
||||||
|
|
||||||
|
-->
|
||||||
|
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
|
||||||
|
|
||||||
|
<beans>
|
||||||
|
|
||||||
|
<import resource="classpath:alfresco/module/${groupId}.${artifactId}/context/service-context.xml" />
|
||||||
|
|
||||||
|
</beans>
|
Reference in New Issue
Block a user