Minor change, added groovy script to check embeddability of the broker

This commit is contained in:
selva.andre
2014-07-13 12:26:58 +02:00
parent c79f2d0a96
commit d4e13e8543
+16
View File
@@ -0,0 +1,16 @@
@GrabResolver(name='moquette-bintray', root='http://dl.bintray.com/andsel/maven/')
@Grab(group='org.dna.mqtt', module='moquette-broker', version='0.6')
import org.dna.mqtt.moquette.server.Server
println "Starting broker in embedded mode"
Server server = new Server()
//Properties props = [port: 1883, host: "0.0.0.0", 'password_file': '../broker/config/password_file.conf'] as Properties
Properties props = new Properties()
props.setProperty('port', '1883')
props.setProperty('host', "0.0.0.0")
props.setProperty('password_file', '../broker/config/password_file.conf')
println "starting proprs $props"
server.startServer(props)
println "Stopping broker.."
server.stopServer()