activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r535246 - in /activemq/camel/trunk/camel-spring: pom.xml src/main/resources/org/apache/camel/spring/camel-1.0.xsd
Date Fri, 04 May 2007 14:05:55 GMT
Author: jstrachan
Date: Fri May  4 07:05:55 2007
New Revision: 535246

URL: http://svn.apache.org/viewvc?view=rev&rev=535246
Log:
added some documentation to the schema along with a generated xsd reference

Modified:
    activemq/camel/trunk/camel-spring/pom.xml
    activemq/camel/trunk/camel-spring/src/main/resources/org/apache/camel/spring/camel-1.0.xsd

Modified: activemq/camel/trunk/camel-spring/pom.xml
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-spring/pom.xml?view=diff&rev=535246&r1=535245&r2=535246
==============================================================================
--- activemq/camel/trunk/camel-spring/pom.xml (original)
+++ activemq/camel/trunk/camel-spring/pom.xml Fri May  4 07:05:55 2007
@@ -18,7 +18,7 @@
 -->
 
 <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
-  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0">
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0">
 
   <modelVersion>4.0.0</modelVersion>
 
@@ -46,7 +46,7 @@
       <optional>true</optional>
       <scope>test</scope>
     </dependency>
-    
+
     <dependency>
       <groupId>org.springframework</groupId>
       <artifactId>spring</artifactId>
@@ -66,4 +66,44 @@
 
   </dependencies>
 
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>site</id>
+            <phase>site</phase>
+            <configuration>
+              <tasks>
+                <echo>Running the XSDDoc task</echo>
+                <taskdef name="xsddoc" classname="net.sf.xframe.xsddoc.Task"/>
+                <mkdir dir="${basedir}/target/site/xsddoc"/>
+                <xsddoc file="${basedir}/src/main/resources/org/apache/camel/spring/camel-1.0.xsd"
+                        out="${basedir}/target/site/xsddoc"
+                        doctitle="Apache Camel XML Schema Reference"
+                        header="&lt;a href='http://activemq.apache.org/camel/'&gt;Apache
Camel&lt;/a&gt;"
+                        footer="Copyright 2007 (c) the &lt;a href='http://www.apache.org/'&gt;Apache
Software Foundation&lt;/a&gt;"
+                        verbose="false"/>
+                <!--
+                        css="${basedir}/../etc/css/stylesheet.css"
+                -->
+              </tasks>
+            </configuration>
+            <goals>
+              <goal>run</goal>
+            </goals>
+          </execution>
+        </executions>
+        <dependencies>
+          <dependency>
+            <groupId>xsddoc</groupId>
+            <artifactId>maven-xsddoc-plugin</artifactId>
+            <version>1.0</version>
+          </dependency>
+        </dependencies>
+      </plugin>
+    </plugins>
+  </build>
 </project>

Modified: activemq/camel/trunk/camel-spring/src/main/resources/org/apache/camel/spring/camel-1.0.xsd
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-spring/src/main/resources/org/apache/camel/spring/camel-1.0.xsd?view=diff&rev=535246&r1=535245&r2=535246
==============================================================================
--- activemq/camel/trunk/camel-spring/src/main/resources/org/apache/camel/spring/camel-1.0.xsd
(original)
+++ activemq/camel/trunk/camel-spring/src/main/resources/org/apache/camel/spring/camel-1.0.xsd
Fri May  4 07:05:55 2007
@@ -10,14 +10,20 @@
 
   <xs:import namespace="http://www.springframework.org/schema/beans"/>
 
-
   <xs:annotation>
-    <xs:documentation>
-      The Apache Camel Configuration Schema
-    </xs:documentation>
+    <xs:documentation><![CDATA[
+  The Apache Camel XML Configuration Schema
+
+  Configurations usually start from the <camelContext/> element
+		]]></xs:documentation>
   </xs:annotation>
 
   <xs:element name="camelContext">
+    <xs:annotation>
+      <xs:documentation><![CDATA[
+  The root element of a camel configuration
+      ]]></xs:documentation>
+    </xs:annotation>
     <xs:complexType>
       <xs:complexContent>
         <xs:extension base="s:identifiedType">
@@ -32,6 +38,12 @@
   </xs:element>
 
   <xs:element name="endpoint">
+    <xs:annotation>
+      <xs:documentation><![CDATA[
+  Defines an endpoint as a top level Spring bean that can then be injected into other beans
+  or shared across multiple routing expressions
+      ]]></xs:documentation>
+    </xs:annotation>
     <xs:complexType>
       <xs:complexContent>
         <xs:extension base="s:identifiedType">
@@ -64,6 +76,11 @@
   </xs:element>
 
   <xs:element name="route">
+    <xs:annotation>
+      <xs:documentation><![CDATA[
+  Defines a routing rule
+      ]]></xs:documentation>
+    </xs:annotation>
     <xs:complexType>
       <xs:sequence>
         <xs:element ref="c:from"/>
@@ -82,6 +99,11 @@
     </xs:complexType>
   </xs:element>
   <xs:element name="from">
+    <xs:annotation>
+      <xs:documentation><![CDATA[
+  Defines the from endpoint(s) in a routing rules
+      ]]></xs:documentation>
+    </xs:annotation>
     <xs:complexType>
       <xs:attribute name="uri" type="xs:anyURI"/>
       <xs:attribute name="ref" type="xs:string"/>



Mime
View raw message