This is an automated email from the ASF dual-hosted git repository. dfoulks pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/activemq-nms-openwire-generator.git
commit 053156bb822501d356abc2c1da007e0748e636f3 Author: Timothy A. Bish <[email protected]> AuthorDate: Mon Aug 25 22:19:08 2014 +0000 Update project to allow for generating new versions of some commands. --- pom.xml | 50 +++++++++++++++++++--- .../tool/commands/MessageDispatchGenerator.java | 14 ++++++ 2 files changed, 57 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index 88930e1..d7efee9 100644 --- a/pom.xml +++ b/pom.xml @@ -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> diff --git a/src/main/java/org/apache/activemq/nms/openwire/tool/commands/MessageDispatchGenerator.java b/src/main/java/org/apache/activemq/nms/openwire/tool/commands/MessageDispatchGenerator.java index 29d0a31..17c0926 100644 --- a/src/main/java/org/apache/activemq/nms/openwire/tool/commands/MessageDispatchGenerator.java +++ b/src/main/java/org/apache/activemq/nms/openwire/tool/commands/MessageDispatchGenerator.java @@ -34,6 +34,8 @@ public class MessageDispatchGenerator extends CommandClassGenerator { 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 extends CommandClassGenerator { 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 ); }
