You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by ld...@apache.org on 2011/01/11 15:14:44 UTC
svn commit: r1057649 - in /karaf/trunk/manual/src/main/webapp/users-guide:
provisioning-schema.conf provisioning.conf
Author: ldywicki
Date: Tue Jan 11 14:14:43 2011
New Revision: 1057649
URL: http://svn.apache.org/viewvc?rev=1057649&view=rev
Log:
KARAF-370 Include schema reference in manual
Added:
karaf/trunk/manual/src/main/webapp/users-guide/provisioning-schema.conf
Modified:
karaf/trunk/manual/src/main/webapp/users-guide/provisioning.conf
Added: karaf/trunk/manual/src/main/webapp/users-guide/provisioning-schema.conf
URL: http://svn.apache.org/viewvc/karaf/trunk/manual/src/main/webapp/users-guide/provisioning-schema.conf?rev=1057649&view=auto
==============================================================================
--- karaf/trunk/manual/src/main/webapp/users-guide/provisioning-schema.conf (added)
+++ karaf/trunk/manual/src/main/webapp/users-guide/provisioning-schema.conf Tue Jan 11 14:14:43 2011
@@ -0,0 +1,9 @@
+
+
+h1. XML Schema for provisioning
+
+Following schema can be found in Karaf sources. It is also available public on url http://karaf.apache.org/xmlns/features/v1.0.0.
+
+{snippet:url=../features/core/src/main/resources/org/apache/karaf/features/karaf-features-1.0.0.xsd|lang=xml|pygmentize=true}
+{snippet}
+
Modified: karaf/trunk/manual/src/main/webapp/users-guide/provisioning.conf
URL: http://svn.apache.org/viewvc/karaf/trunk/manual/src/main/webapp/users-guide/provisioning.conf?rev=1057649&r1=1057648&r2=1057649&view=diff
==============================================================================
--- karaf/trunk/manual/src/main/webapp/users-guide/provisioning.conf (original)
+++ karaf/trunk/manual/src/main/webapp/users-guide/provisioning.conf Tue Jan 11 14:14:43 2011
@@ -6,36 +6,12 @@ Karaf provides a simple, yet flexible, w
h2. Repositories
-The xml features repositories use the following Relax NG Compact syntax:
+The complete xml schema for feature descriptor are available on [Features XML Schema|provisioning-schema] page. We recommend using this XML schema. It will allow Karaf to validate your repository before parsing. You may also verify your descriptor before adding it to Karaf by simply validation, even from IDE level.
-{code:title=Repository schema}
-element features {
- element repository { text }*
- element feature {
- attribute name { text },
- attribute version { text },
- attribute resolver { text }
- element feature {
- attribute version { text },
- text
- }*,
- element config {
- attribute name { text },
- text
- }*,
- element bundle {
- attribute start-level { int },
- attribute start { boolean },
- attribute dependency { boolean },
- text
- }*
- }*
-}
-{code}
Here is an example of such a repository:
{code:lang=xml}
-<features>
+<features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">
<feature name="spring" version="3.0.4.RELEASE">
<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.aopalliance/1.0_1</bundle>
<bundle>mvn:org.springframework/spring-core/3.0.4.RELEASE</bundle>
@@ -52,7 +28,7 @@ A repository includes a list of {{featur
References to features define in other repositories are allow and can be achieved by adding a list of repository.
{code:xml}
-<features>
+<features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">
<repository>mvn:org.apache.servicemix.nmr/apache-servicemix-nmr/1.3.0/xml/features</repository>
<repository>mvn:org.apache.camel.karaf/apache-camel/2.5.0/xml/features</repository>
<repository>mvn:org.apache.karaf/apache-karaf/2.1.2/xml/features</repository>
@@ -269,7 +245,7 @@ As we can use file:// as protocol handle
located in a directory which is not available using maven
{code:xml}
-<features>
+<features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">
<feature name="spring-web" version="2.5.6.SEC01">
<bundle>file:base/bundles/spring-web-2.5.6.SEC01.jar</bundle>
</feature>