You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ch...@apache.org on 2006/10/10 01:06:49 UTC

svn commit: r454545 [1/3] - in /incubator/activemq/sandbox/qpid: ./ specs/ src/ src/main/ stylesheets/

Author: chirino
Date: Mon Oct  9 16:06:48 2006
New Revision: 454545

URL: http://svn.apache.org/viewvc?view=rev&rev=454545
Log:
adding an inital qpid module that will hold our qpid support stuff.  So far, we are reusing the qpid code generators kicked off a maven build

Added:
    incubator/activemq/sandbox/qpid/
    incubator/activemq/sandbox/qpid/build.xml
    incubator/activemq/sandbox/qpid/pom.xml   (with props)
    incubator/activemq/sandbox/qpid/specs/
    incubator/activemq/sandbox/qpid/specs/amqp-8.0.xml
    incubator/activemq/sandbox/qpid/src/
    incubator/activemq/sandbox/qpid/src/main/
    incubator/activemq/sandbox/qpid/stylesheets/
    incubator/activemq/sandbox/qpid/stylesheets/framing.xsl
    incubator/activemq/sandbox/qpid/stylesheets/java.xsl
    incubator/activemq/sandbox/qpid/stylesheets/prepare1.xsl
    incubator/activemq/sandbox/qpid/stylesheets/prepare2.xsl
    incubator/activemq/sandbox/qpid/stylesheets/prepare3.xsl
    incubator/activemq/sandbox/qpid/stylesheets/readme.txt
    incubator/activemq/sandbox/qpid/stylesheets/registry.xsl
    incubator/activemq/sandbox/qpid/stylesheets/utils.xsl

Added: incubator/activemq/sandbox/qpid/build.xml
URL: http://svn.apache.org/viewvc/incubator/activemq/sandbox/qpid/build.xml?view=auto&rev=454545
==============================================================================
--- incubator/activemq/sandbox/qpid/build.xml (added)
+++ incubator/activemq/sandbox/qpid/build.xml Mon Oct  9 16:06:48 2006
@@ -0,0 +1,88 @@
+<!--
+ -
+ - Copyright (c) 2006 The Apache Software Foundation
+ -
+ - Licensed 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.
+ -
+ -->
+<project name="AMQ Common" default="build">
+
+  <property name="stylesheet" value="stylesheets/framing.xsl"/>
+  <property name="generated.dir" value="${basedir}/src/main"/>
+  
+  <macrodef name="saxon">
+    <attribute name="out"/>
+    <attribute name="src"/>
+    <attribute name="xsl"/>
+    <element name="args" implicit="true" optional="true"/>
+    <sequential>
+      <java classname="net.sf.saxon.Transform" fork="true">
+        <classpath refid="maven.plugin.classpath"/>
+        <arg value="-o"/>
+        <arg value="@{out}"/>
+        <arg value="@{src}"/>
+        <arg value="@{xsl}"/>
+        <args/>
+      </java>
+    </sequential>
+  </macrodef>
+
+  <macrodef name="amqp">
+    <attribute name="ver"/>
+    <sequential>
+
+      <!-- Check for the existence of the AMQP specification file -->
+      <property name="amqpspecfile-@{ver}" value="${basedir}/specs/amqp-@{ver}.xml"/>
+      <available file="${basedir}/specs/amqp-@{ver}.xml" property="amqpspecfile.present-@{ver}"/>
+      <fail unless="amqpspecfile.present-@{ver}" message="ERROR: AMQP specification file ${basedir}/specs/amqp-@{ver}.xml not found."/>
+      
+      <!-- Read in the file as a set of properties; extract the amqp version -->
+      <xmlproperty prefix="@{ver}" file="${basedir}/specs/amqp-@{ver}.xml"/>
+      <echo>Found AMQP specification file "${basedir}/specs/amqp-@{ver}.xml"; major=${@{ver}.amqp(major)} minor=${@{ver}.amqp(minor)}</echo>
+
+      <!-- Create directory; generate from specification file -->
+      <mkdir dir="${generated.dir}/org/apache/activemq/qpid/command/v${@{ver}.amqp(major)}_${@{ver}.amqp(minor)}"/>
+      <saxon out="${generated.dir}/org/apache/activemq/qpid/command/v${@{ver}.amqp(major)}_${@{ver}.amqp(minor)}/results.out"
+             src="${basedir}/specs/amqp-@{ver}.xml" 
+             xsl="${stylesheet}">
+        <arg value="major=${@{ver}.amqp(major)}"/>
+        <arg value="minor=${@{ver}.amqp(minor)}"/>
+        <arg value="registry_name=MainRegistry"/>
+      </saxon>
+      <!--
+      <property name="cluster.asl" value="resources/cluster.asl"/>
+      <property name="registry_template" value="resources/registry.template"/>
+      <property name="registry_stylesheet" value="stylesheets/registry.xsl"/>
+      <saxon out="${generated.dir}/org/apache/activemq/qpid/command/v${@{ver}.amqp(major)}_${@{ver}.amqp(minor)}/cluster.out"
+             src="${cluster.asl}"
+             xsl="${stylesheet}">
+        <arg value="major=${@{ver}.amqp(major)}"/>
+        <arg value="minor=${@{ver}.amqp(minor)}"/>
+        <arg value="registry_name=ClusterRegistry"/>
+      </saxon>
+      <saxon out="${generated.dir}/org/apache/activemq/qpid/command/v${@{ver}.amqp(major)}_${@{ver}.amqp(minor)}/registry.out"
+             src="${registry_template}"
+             xsl="${registry_stylesheet}">
+        <arg value="major=${@{ver}.amqp(major)}"/>
+        <arg value="minor=${@{ver}.amqp(minor)}"/>
+      </saxon>
+      -->
+
+    </sequential>
+  </macrodef>
+
+  <target name="generate">
+    <amqp ver="8.0"/>
+  </target>
+
+</project>

Added: incubator/activemq/sandbox/qpid/pom.xml
URL: http://svn.apache.org/viewvc/incubator/activemq/sandbox/qpid/pom.xml?view=auto&rev=454545
==============================================================================
--- incubator/activemq/sandbox/qpid/pom.xml (added)
+++ incubator/activemq/sandbox/qpid/pom.xml Mon Oct  9 16:06:48 2006
@@ -0,0 +1,110 @@
+<?xml version="1.0" 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.
+-->
+
+<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">
+
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.activemq</groupId>
+    <artifactId>activemq-sandbox-parent</artifactId>
+    <version>1.0-incubator-SNAPSHOT</version>
+  </parent>
+
+  <artifactId>activemq-qpid</artifactId>
+  <name>ActiveMQ :: Qpid</name>
+  <description>The ActiveMQ Qpid implementation</description>
+
+  <dependencies>
+
+    <dependency>
+      <groupId>${pom.groupId}</groupId>
+      <artifactId>activemq-core</artifactId>
+      <optional>false</optional>
+      <version>4.1-incubator-SNAPSHOT</version>
+    </dependency>
+
+    <dependency>
+      <groupId>backport-util-concurrent</groupId>
+      <artifactId>backport-util-concurrent</artifactId>
+      <optional>false</optional>
+      <version>2.1</version>
+    </dependency>
+
+    <dependency>
+      <groupId>commons-logging</groupId>
+      <artifactId>commons-logging</artifactId>
+      <optional>false</optional>
+      <version>1.1</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.geronimo.specs</groupId>
+      <artifactId>geronimo-jms_1.1_spec</artifactId>
+      <optional>false</optional>
+      <version>1.0</version>
+    </dependency>
+
+  </dependencies>
+  <build>
+
+    <plugins>
+
+      <!-- Configure which tests are included/excuded -->
+      <plugin>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <configuration>
+          <!--
+          <forkMode>pertest</forkMode>
+          <childDelegation>false</childDelegation>
+          <useFile>true</useFile>
+          <argLine>-Xmx512M</argLine>
+          -->
+          <includes>
+            <include>**/*Test.*</include>
+          </includes>
+          <excludes>
+          </excludes>
+        </configuration>
+      </plugin>
+
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <configuration>
+          <tasks>
+            <ant antfile="${basedir}/build.xml" inheritRefs="true">
+              <target name="generate"/>
+            </ant>
+          </tasks>
+        </configuration>
+        <dependencies>
+          <dependency>
+            <groupId>net.sf.saxon</groupId>
+            <artifactId>saxon</artifactId>
+            <version>8.7</version>
+          </dependency>
+        </dependencies>
+      </plugin>
+
+    </plugins>
+  </build>
+
+</project>

Propchange: incubator/activemq/sandbox/qpid/pom.xml
------------------------------------------------------------------------------
    svn:executable = *