diff options
| author | Alan Conway <aconway@apache.org> | 2007-07-31 20:00:10 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2007-07-31 20:00:10 +0000 |
| commit | c11f9a79eec63da7aa6e6dac248a689a9d461beb (patch) | |
| tree | 7c89f9804904dd3b99f3b3e564d14278ee3a7044 /cpp/rubygen/samples/runme | |
| parent | 82d128b33fac55b8618d593c89283356ee4e192b (diff) | |
| download | qpid-python-c11f9a79eec63da7aa6e6dac248a689a9d461beb.tar.gz | |
Ruby code generator for C++.
Not yet in active use yet but two sample templates are provided.
Note: same dependency story as java codegen: distribution has pre-generated
code so ruby not required to build a distro. Only required for svn working
copy builds.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@561468 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/rubygen/samples/runme')
| -rwxr-xr-x | cpp/rubygen/samples/runme | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cpp/rubygen/samples/runme b/cpp/rubygen/samples/runme new file mode 100755 index 0000000000..e06d128707 --- /dev/null +++ b/cpp/rubygen/samples/runme @@ -0,0 +1,18 @@ +#!/usr/bin/env ruby +# +# Run this script to generate code for the C++ broker. +# +$: << ".." # Include .. in load path +if ARGV.size < 2 + puts "Usage: <output_directory> <amqp .xml files...>" + puts "Note: passing '-' as the output directory lists generated files." + exit 1 +end + +require 'amqpgen' +Amqp=AmqpRoot.new(*ARGV[1,ARGV.size]) + +require 'Proxy.rb' +require 'Operations.rb' + + |
