Skip to content

Commit 269a499

Browse files
author
Tim Watson
committed
Merge bug26131
2 parents 619ed2c + c823046 commit 269a499

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+123
-16995
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ NAME=rabbitmq-dotnet-client
22
NAME_VSN=${NAME}-${RABBIT_VSN}
33

44
RELEASE_DIR=release
5+
GENSRC_DIR=gensrc
56

67
TMPXMLZIP=${NAME_VSN}-tmp-xmldoc.zip
78

@@ -21,6 +22,8 @@ test-xbuild-units:
2122

2223
test-xbuild: test-xbuild-units
2324

25+
retest-xbuild: clean test-xbuild
26+
2427
ensure-universally-readable:
2528
chmod -R a+rX release
2629

@@ -66,4 +69,4 @@ doc: rabbit-vsn ensure-prerequisites ensure-release-dir ensure-docs
6669
unzip -q ${NAME_VSN}-wcf-htmldoc.zip -d ${NAME_VSN}-wcf-htmldoc
6770

6871
clean:
69-
rm -rf $(RELEASE_DIR)/*
72+
rm -rf $(GENSRC_DIR) $(RELEASE_DIR)/*

docs/specs/amqp-xml-doc0-9.pdf

-1.08 MB
Binary file not shown.

docs/specs/amqp0-8.stripped.xml

Lines changed: 0 additions & 780 deletions
This file was deleted.

docs/specs/amqp0-8.xml

Lines changed: 0 additions & 3965 deletions
This file was deleted.

docs/specs/amqp0-9.pdf

-1.2 MB
Binary file not shown.

docs/specs/amqp0-9.stripped.xml

Lines changed: 0 additions & 853 deletions
This file was deleted.

docs/specs/amqp0-9.xml

Lines changed: 0 additions & 5191 deletions
This file was deleted.

docs/specs/qpid-amqp.0-8.stripped.xml

Lines changed: 0 additions & 773 deletions
This file was deleted.

docs/specs/qpid-amqp.0-8.xml

Lines changed: 0 additions & 3996 deletions
This file was deleted.

projects/client/Apigen/src/apigen/Apigen.cs

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ public static string MangleMethodClass(AmqpClass c, AmqpMethod m) {
165165
public XmlDocument m_spec = null;
166166
public TextWriter m_outputFile = null;
167167

168-
public bool m_versionOverridden = false;
169168
public int m_majorVersion;
170169
public int m_minorVersion;
171170
public int m_revision = 0;
@@ -209,11 +208,6 @@ public void HandleOption(string opt) {
209208
m_framingSubnamespace = opt.Substring(3);
210209
} else if (opt.StartsWith("/apiName:")) {
211210
m_apiName = opt.Substring(9);
212-
} else if (opt.StartsWith("/v:")) {
213-
string[] parts = opt.Substring(3).Split(new char[] { '-' });
214-
m_versionOverridden = true;
215-
m_majorVersion = int.Parse(parts[0]);
216-
m_minorVersion = int.Parse(parts[1]);
217211
} else if (opt == "/c") {
218212
m_emitComments = true;
219213
} else {
@@ -227,7 +221,6 @@ public void Usage() {
227221
Console.Error.WriteLine(" Options include:");
228222
Console.Error.WriteLine(" /apiName:<identifier>");
229223
Console.Error.WriteLine(" /n:<name.space.prefix>");
230-
Console.Error.WriteLine(" /v:<majorversion>-<minorversion>");
231224
Console.Error.WriteLine(" The apiName option is required.");
232225
Environment.Exit(1);
233226
}
@@ -285,15 +278,11 @@ public void LoadSpec() {
285278
}
286279

287280
public void ParseSpec() {
288-
Console.WriteLine("* Parsing spec");
289-
if (!m_versionOverridden) {
290-
m_majorVersion = GetInt(m_spec, "/amqp/@major");
291-
m_minorVersion = GetInt(m_spec, "/amqp/@minor");
292-
if (m_spec.SelectSingleNode("/amqp/@revision") != null)
293-
{
294-
m_revision = GetInt(m_spec, "/amqp/@revision");
295-
}
296-
}
281+
m_majorVersion = GetInt(m_spec, "/amqp/@major");
282+
m_minorVersion = GetInt(m_spec, "/amqp/@minor");
283+
m_revision = GetInt(m_spec, "/amqp/@revision");
284+
285+
Console.WriteLine("* Parsing spec for version {0}.{1}.{2}", m_majorVersion, m_minorVersion, m_revision);
297286
foreach (XmlNode n in m_spec.SelectNodes("/amqp/constant")) {
298287
m_constants.Add(new KeyValuePair<string, int>(GetString(n, "@name"), GetInt(n, "@value")));
299288
}

0 commit comments

Comments
 (0)