Skip to content
This repository has been archived by the owner on Apr 1, 2023. It is now read-only.

Commit

Permalink
0.2.2 fix custom properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton Wierenga committed Jul 5, 2020
1 parent 240f17e commit 4474323
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ organization := "com.antonwierenga"

name := "amazonmq-cli"

version := "0.2.1"
version := "0.2.2"

scalaVersion := "2.11.6"

Expand Down
3 changes: 3 additions & 0 deletions src/main/scala/amazonmq/cli/AmazonMQCLI.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions src/main/scala/amazonmq/cli/command/MessageCommands.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand Down

0 comments on commit 4474323

Please sign in to comment.