Skip to content

Commit

Permalink
Merge branch 'hotfix-1.1.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
indualagarsamy committed Aug 21, 2014
2 parents 33b8d0f + 9fbaf46 commit c0ab6c7
Show file tree
Hide file tree
Showing 16 changed files with 84 additions and 25 deletions.
73 changes: 50 additions & 23 deletions buildsupport/GitVersionTask/Build/GitVersionTask.targets
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,73 @@
<PropertyGroup>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)..\</SolutionDir>
</PropertyGroup>
<PropertyGroup>
<GitVersionAppendRevision Condition="$(GitVersionAppendRevision) == '' Or $(GitVersionAppendRevision) == '*Undefined*'">false</GitVersionAppendRevision>
</PropertyGroup>

<UsingTask
TaskName="GitVersionTask.UpdateAssemblyInfo"
AssemblyFile="$(MSBuildThisFileDirectory)..\GitVersionTask.dll" />
<UsingTask
TaskName="GitVersionTask.GetVersion"
AssemblyFile="$(MSBuildThisFileDirectory)..\GitVersionTask.dll" />
<UsingTask
TaskName="GitVersionTask.WriteVersionInfoToBuildLog"
AssemblyFile="$(MSBuildThisFileDirectory)..\GitVersionTask.dll" />

<Target Name="UpdateAssemblyInfo"
BeforeTargets="CoreCompile">
<WriteVersionInfoToBuildLog
SolutionDirectory="$(SolutionDir)"
<Target Name="UpdateAssemblyInfo"
BeforeTargets="CoreCompile">
<WriteVersionInfoToBuildLog
SolutionDirectory="$(SolutionDir)"
/>
<UpdateAssemblyInfo
SolutionDirectory="$(SolutionDir)"
AssemblyName="$(AssemblyName)"
ProjectFile="$(ProjectPath)"
SignAssembly="$(SignAssembly)"
CompileFiles ="@(Compile)">
<Output
TaskParameter="AssemblyInfoTempFilePath"
PropertyName="AssemblyInfoTempFilePath" />
</UpdateAssemblyInfo>

<ItemGroup>
<Compile Include="$(AssemblyInfoTempFilePath)" />
</ItemGroup>
</Target>
<UpdateAssemblyInfo
SolutionDirectory="$(SolutionDir)"
ProjectFile="$(ProjectPath)"
AppendRevision="$(GitVersionAppendRevision)"
CompileFiles ="@(Compile)">
<Output
TaskParameter="AssemblyInfoTempFilePath"
PropertyName="AssemblyInfoTempFilePath" />
</UpdateAssemblyInfo>

<ItemGroup>
<Compile Include="$(AssemblyInfoTempFilePath)" />
</ItemGroup>


<GetVersion SolutionDirectory="$(SolutionDir)">
<Output TaskParameter="Major" PropertyName="GfvMajor" />
<Output TaskParameter="Minor" PropertyName="GfvMinor" />
<Output TaskParameter="Patch" PropertyName="GfvPatch" />
<Output TaskParameter="BuildMetaData" PropertyName="GfvBuildMetaData" />
<Output TaskParameter="FullBuildMetaData" PropertyName="GfvFullBuildMetaData" />
<Output TaskParameter="BranchName" PropertyName="GfvBranchName" />
<Output TaskParameter="Sha" PropertyName="GfvSha" />
<Output TaskParameter="MajorMinorPatch" PropertyName="GfvMajorMinorPatch" />
<Output TaskParameter="SemVer" PropertyName="GfvSemVer" />
<Output TaskParameter="LegacySemVer" PropertyName="GfvLegacySemVer" />
<Output TaskParameter="LegacySemVerPadded" PropertyName="GfvLegacySemVerPadded" />
<Output TaskParameter="FullSemVer" PropertyName="GfvFullSemVer" />
<Output TaskParameter="AssemblySemVer" PropertyName="GfvAssemblySemVer" />
<Output TaskParameter="ClassicVersion" PropertyName="GfvClassicVersion" />
<Output TaskParameter="ClassicVersionWithTag" PropertyName="GfvClassicVersionWithTag" />
<Output TaskParameter="PreReleaseTag" PropertyName="GfvPreReleaseTag" />
<Output TaskParameter="PreReleaseTagWithDash" PropertyName="GfvPreReleaseTagWithDash" />
<Output TaskParameter="InformationalVersion" PropertyName="GfvInformationalVersion" />
<Output TaskParameter="AssemblyVersion" PropertyName="GfvAssemblyVersion" />
<Output TaskParameter="AssemblyFileVersion" PropertyName="GfvAssemblyFileVersion" />
<Output TaskParameter="OriginalRelease" PropertyName="GfvOriginalRelease" />
</GetVersion>

</Target>

<!--Support for ncrunch-->
<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)..\GitVersionTask.dll" />
<None Include="$(MSBuildThisFileDirectory)..\GitVersionTask.pdb" />
<None Include="$(MSBuildThisFileDirectory)..\GitVersion.exe" />
<None Include="$(MSBuildThisFileDirectory)..\GitVersion.pdb" />
<None Include="$(MSBuildThisFileDirectory)..\LibGit2Sharp.dll" />
<None Include="$(MSBuildThisFileDirectory)..\NativeBinaries\**\*" />
</ItemGroup>


</Project>


Binary file removed buildsupport/GitVersionTask/GitVersion.exe
Binary file not shown.
Binary file modified buildsupport/GitVersionTask/GitVersionTask.dll
Binary file not shown.
Binary file removed buildsupport/GitVersionTask/LibGit2Sharp.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
5 changes: 4 additions & 1 deletion packaging/nuget/NServiceBus.RabbitMQ.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<id>NServiceBus.RabbitMQ</id>
<title>NServiceBus RabbitMQ</title>
<version>4.0.0-alpha0</version>
<version>$version$</version>
<authors>NServiceBus Ltd</authors>
<owners>Udi Dahan, Andreas Ohlund, John Simons</owners>
<licenseUrl>http://particular.net/LicenseAgreement</licenseUrl>
Expand All @@ -16,6 +16,9 @@
<copyright>Copyright 2010-2013 NServiceBus. All rights reserved</copyright>
<tags>nservicebus servicebus msmq cqrs publish subscribe</tags>
<dependencies>
<dependency id="NServiceBus" version="[4.4.2.0, 5.0.0.0)" />
<dependency id="NServiceBus.Interfaces" version="[4.4.2.0, 5.0.0.0)" />
<dependency id="RabbitMQ.Client" version="[3.2.1.0, 4.0.0.0)" />
</dependencies>
</metadata>
<files>
Expand Down
2 changes: 1 addition & 1 deletion ripple.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<ripple xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ripple xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Name>NServiceBus.RabbitMQ</Name>
<NugetSpecFolder>packaging/nuget</NugetSpecFolder>
<SourceFolder>src</SourceFolder>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<AssemblyName>NServiceBus.RabbitMQ.AcceptanceTests</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<RestorePackages>true</RestorePackages>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down
6 changes: 6 additions & 0 deletions src/NServiceBus.RabbitMQ.Tests/TransportMessageBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,11 @@ public TransportMessageBuilder CorrelationId(string correlationId)
message.CorrelationId = correlationId;
return this;
}

public TransportMessageBuilder NonDurable()
{
message.Recoverable = false;
return this;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,20 @@ public void Should_set_correlation_id_if_present()

}

[Test]
public void Should_preserve_the_recoverable_setting_if_set_to_durable()
{
Verify(new TransportMessageBuilder(),result => Assert.True(result.Recoverable));
}


[Test]
public void Should_preserve_the_recoverable_setting_if_set_to_non_durable()
{
Verify(new TransportMessageBuilder().NonDurable(), result => Assert.False(result.Recoverable));
}


[Test]
public void Should_transmit_all_transportMessage_headers()
{
Expand Down
1 change: 1 addition & 0 deletions src/NServiceBus.RabbitMQ/NServiceBus.RabbitMQ.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\NServiceBus.snk</AssemblyOriginatorKeyFile>
<FodyPath>..\packages\Fody</FodyPath>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ public static TransportMessage ToTransportMessage(BasicDeliverEventArgs message)
result.Headers[Headers.EnclosedMessageTypes] = properties.Type;
}

if (properties.IsDeliveryModePresent())
{
result.Recoverable = properties.DeliveryMode == 2;
}


return result;
}

Expand Down

0 comments on commit c0ab6c7

Please sign in to comment.