diff --git a/build.sbt b/build.sbt index 8cc46df..1de91a7 100644 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,7 @@ organization := "com.antonwierenga" name := "amazonmq-cli" -version := "0.2.1" +version := "0.2.2" scalaVersion := "2.11.6" diff --git a/src/main/scala/amazonmq/cli/AmazonMQCLI.scala b/src/main/scala/amazonmq/cli/AmazonMQCLI.scala index db2f3c7..c1fca20 100644 --- a/src/main/scala/amazonmq/cli/AmazonMQCLI.scala +++ b/src/main/scala/amazonmq/cli/AmazonMQCLI.scala @@ -37,6 +37,9 @@ class AmazonMQCLI extends CommandMarker { object AmazonMQCLI extends App { lazy val ReleaseNotes = Map( + "v0.2.2" → List( + "Fixed 'send-message --file' custom properties are now sent" + ), "v0.2.1" → List( "Fixed 'send-message': errors now visible", "Added web-console timeout configuration parameter" diff --git a/src/main/scala/amazonmq/cli/command/MessageCommands.scala b/src/main/scala/amazonmq/cli/command/MessageCommands.scala index 8f2dd6f..d3a265f 100644 --- a/src/main/scala/amazonmq/cli/command/MessageCommands.scala +++ b/src/main/scala/amazonmq/cli/command/MessageCommands.scala @@ -153,6 +153,7 @@ class MessageCommands extends Commands { JMSTimeToLiveDefault } + (xmlMessage \ "properties" \ "property").foreach(property ⇒ message.setStringProperty((property \ "name").text, (property \ "value").text)) producer.send(session.createQueue(queue), message, deliverMode, 3, timeToLive) totalSent += 1 })