Updated Branches: refs/heads/master [created] 4b3b01a61
http://git-wip-us.apache.org/repos/asf/river-container/blob/9ab01093/river-container-core/src/test/resources/org/apache/river/container/config/config-test-doc.xml ---------------------------------------------------------------------- diff --git a/river-container-core/src/test/resources/org/apache/river/container/config/config-test-doc.xml b/river-container-core/src/test/resources/org/apache/river/container/config/config-test-doc.xml new file mode 100644 index 0000000..c7af3fb --- /dev/null +++ b/river-container-core/src/test/resources/org/apache/river/container/config/config-test-doc.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + Document : config-test-doc.xml + Created on : November 24, 2010, 4:13 PM + Author : trasukg + Description: + Purpose of the document follows. +--> + +<cfg:container-config xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' + xmlns:cfg='http://river.apache.org/xml/ns/container/config/1.0' + xsi:schemaLocation='http://river.apache.org/xml/ns/container/config/1.0 file:/home/trasukg/development/surrogate/schemas/config.xsd'> + <cfg:classpath id="a">lib/abc.jar</cfg:classpath> + <cfg:classpath id="b" parent="a">lib/def.jar</cfg:classpath> + + <cfg:discovery-context name="default"> + <cfg:locator></cfg:locator> + <cfg:group></cfg:group> + </cfg:discovery-context> + + <cfg:property name="abc" value="def"/> + + <cfg:component class="org.apache.SomethingOrOther"/> + +</cfg:container-config> http://git-wip-us.apache.org/repos/asf/river-container/blob/9ab01093/river-container-core/src/test/resources/org/apache/river/container/deployer/sample.config ---------------------------------------------------------------------- diff --git a/river-container-core/src/test/resources/org/apache/river/container/deployer/sample.config b/river-container-core/src/test/resources/org/apache/river/container/deployer/sample.config new file mode 100644 index 0000000..d7116d5 --- /dev/null +++ b/river-container-core/src/test/resources/org/apache/river/container/deployer/sample.config @@ -0,0 +1,54 @@ +/* + * 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. + */ + +// Sample file that our policy file parser should be able to process. + +// Grants given to all applications. +grant { + java.io.FilePermission "${serviceArchive}" "read"; + java.net.SocketPermission "*" "connect"; +} + +classloader { + // Variables required to set up the application classloader. + //For a privileged application deployer, parent=containerClassLoader; + parent systemClassLoader; + + jars { + commons-vfs-1.0.jar, + commons-logging-1.1.1.jar, + jsk-platform.jar, + jsk-lib.jar, + jsk-resources.jar, + RiverSurrogate.jar(org.apache.river.container.liaison.Strings, + org.apache.river.container.liaison.VirtualFileSystemConfiguration, + org.apache.river.container.liaison.VirtualFileSystemConfiguration$MyConfigurationFile, + "META-INF/services/*") + } + + codebase {jsk-dl.jar} +} + +configuration { + // Anything on the left-hand side of '=' is set into the application config + // as a "special variable, accessible through '$name'. + discoveryGroup=defaultDiscoveryGroup; + + // For privileged deployer, include + // context=context; +} \ No newline at end of file
