You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2014/08/26 00:19:08 UTC

svn commit: r1620477 - in /activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator: pom.xml src/main/java/org/apache/activemq/nms/openwire/tool/commands/MessageDispatchGenerator.java

Author: tabish
Date: Mon Aug 25 22:19:08 2014
New Revision: 1620477

URL: http://svn.apache.org/r1620477
Log:
Update project to allow for generating new versions of some commands.

Modified:
    activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/pom.xml
    activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/MessageDispatchGenerator.java

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/pom.xml
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/pom.xml?rev=1620477&r1=1620476&r2=1620477&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/pom.xml (original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/pom.xml Mon Aug 25 22:19:08 2014
@@ -22,7 +22,7 @@
   <parent>
     <groupId>org.apache</groupId>
     <artifactId>apache</artifactId>
-    <version>7</version>
+    <version>14</version>
   </parent>
 
   <modelVersion>4.0.0</modelVersion>
@@ -61,13 +61,16 @@
   </mailingLists>
 
   <properties>
-    <activemq-version>5.9-SNAPSHOT</activemq-version>
-    <projectName>Apache NMS.ActiveMQ</projectName>
     <annogen-version>0.1.0</annogen-version>
-    <ant-version>1.6.2</ant-version>
+    <ant-version>1.8.4</ant-version>
+    <activemq-version>5.10.0</activemq-version>
+    <projectName>Apache NMS.ActiveMQ</projectName>
     <xstream-version>1.4.4</xstream-version>
     <activemq-src-dir>${ACTIVEMQ_SRC_HOME}/activemq-client/</activemq-src-dir>
+    <maven-antrun-plugin-version>1.7</maven-antrun-plugin-version>
     <nms-activemq-dir>${NMS_ACTIVEMQ_HOME}</nms-activemq-dir>
+    <source-version>1.6</source-version>
+    <target-version>1.6</target-version>
   </properties>
 
   <dependencies>
@@ -81,6 +84,36 @@
       <artifactId>activemq-client</artifactId>
       <version>${activemq-version}</version>
     </dependency>
+    <dependency>
+      <groupId>org.apache.maven.plugins</groupId>
+      <artifactId>maven-antrun-plugin</artifactId>
+      <version>${maven-antrun-plugin-version}</version>
+    </dependency>
+    <dependency>
+      <groupId>groovy</groupId>
+      <artifactId>gram</artifactId>
+      <version>1.1</version>
+    </dependency>
+    <dependency>
+      <groupId>groovy</groupId>
+      <artifactId>groovy-all</artifactId>
+      <version>1.0-jsr-03</version>
+    </dependency>
+    <dependency>
+      <groupId>annogen</groupId>
+      <artifactId>annogen</artifactId>
+      <version>${annogen-version}</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.ant</groupId>
+      <artifactId>ant</artifactId>
+      <version>${ant-version}</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.plugins</groupId>
+      <artifactId>maven-compiler-plugin</artifactId>
+      <version>3.1</version>
+    </dependency>
   </dependencies>
 
   <distributionManagement>
@@ -108,7 +141,6 @@
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-antrun-plugin</artifactId>
-          <version>1.1</version>
         </plugin>
         <plugin>
           <groupId>org.codehaus.mojo</groupId>
@@ -128,8 +160,12 @@
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-compiler-plugin</artifactId>
         <configuration>
-          <source>1.6</source>
-          <target>1.6</target>
+          <source>${source-version}</source>
+          <target>${target-version}</target>
+          <optimize>true</optimize>
+          <debug>true</debug>
+          <showDeprecation>true</showDeprecation>
+          <showWarnings>true</showWarnings>
         </configuration>
       </plugin>
       <plugin>

Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/MessageDispatchGenerator.java
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/MessageDispatchGenerator.java?rev=1620477&r1=1620476&r2=1620477&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/MessageDispatchGenerator.java (original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ.Openwire.Generator/src/main/java/org/apache/activemq/nms/openwire/tool/commands/MessageDispatchGenerator.java Mon Aug 25 22:19:08 2014
@@ -34,6 +34,8 @@ public class MessageDispatchGenerator ex
     protected void generateProperties( PrintWriter out ) {
 
         out.println("        private Exception rollbackCause = null;");
+        out.println("        private long deliverySequenceId;");
+        out.println("        private object consumer;");
         out.println("");
 
         super.generateProperties(out);
@@ -46,6 +48,18 @@ public class MessageDispatchGenerator ex
         out.println("            set { this.rollbackCause = value; }");
         out.println("        }");
         out.println("");
+        out.println("        public long DeliverySequenceId");
+        out.println("        {");
+        out.println("            get { return this.deliverySequenceId; }");
+        out.println("            set { this.deliverySequenceId = value; }");
+        out.println("        }");
+        out.println("");
+        out.println("        public object Consumer");
+        out.println("        {");
+        out.println("            get { return this.consumer; }");
+        out.println("            set { this.consumer = value; }");
+        out.println("        }");
+        out.println("");
 
         super.generateAdditonalMembers( out );
     }