Browse files

Added distributor sample to package

  • Loading branch information...
1 parent 178b8fa commit a1c6b23d571eb03569fc2750c25384fff9ae6d34 @phatboyg phatboyg committed Apr 5, 2011
View
26 rakefile.rb
@@ -92,7 +92,7 @@
end
desc "Cleans, versions, compiles the application and generates build_output/."
-task :compile => [:global_version, :build, :build_starbucks] do
+task :compile => [:global_version, :build, :build_starbucks, :build_distributor] do
puts 'Copying unmerged dependencies to output folder'
copyOutputFiles File.join(props[:src], "MassTransit/bin/#{BUILD_CONFIG}"), "log4net.{dll,pdb,xml}", props[:output]
@@ -180,6 +180,18 @@
copyOutputFiles File.join(src, "Starbucks.Customer/bin/#{BUILD_CONFIG}"), "Starbucks.Customer.exe", targ
copyOutputFiles File.join(src, "Starbucks.Customer/bin/#{BUILD_CONFIG}"), "customer.log4net.xml", targ
copyOutputFiles File.join(src, "Starbucks.Customer/bin/#{BUILD_CONFIG}"), "Starbucks.Messages.dll", targ
+
+ targ = File.join(props[:stage], 'Samples', 'Distributor')
+ src = File.join(props[:src], "Samples", "Distributor")
+
+ copyOutputFiles props[:output], "MassTransit.dll", targ
+
+ copyOutputFiles File.join(src, "Grid.Distributor.Activator/bin/#{BUILD_CONFIG}"), "{log4net,Magnum,MassTransit.StructureMapIntegration,MassTransit.Transports.Msmq,StructureMap,Topshelf}.dll", targ
+ copyOutputFiles File.join(src, "Grid.Distributor.Activator/bin/#{BUILD_CONFIG}"), "Grid.Distributor.Activator.exe", targ
+ copyOutputFiles File.join(src, "Grid.Distributor.Activator/bin/#{BUILD_CONFIG}"), "Grid.Distributor.Shared.dll", targ
+ copyOutputFiles File.join(src, "Grid.Distributor.Activator/bin/#{BUILD_CONFIG}"), "*.config", targ
+ copyOutputFiles File.join(src, "Grid.Distributor.Worker/bin/#{BUILD_CONFIG}"), "Grid.Distributor.Worker.exe", targ
+ copyOutputFiles File.join(src, "Grid.Distributor.Worker/bin/#{BUILD_CONFIG}"), "*.config", targ
end
@@ -211,7 +223,6 @@
msb.solution = 'src/MassTransit.sln'
end
-desc "Only compiles the application."
msbuild :build_starbucks do |msb|
msb.properties :Configuration => "Build",
:BuildConfigKey => BUILD_CONFIG_KEY,
@@ -223,6 +234,17 @@
msb.solution = 'src/Samples/Starbucks/Starbucks.sln'
end
+msbuild :build_distributor do |msb|
+ msb.properties :Configuration => "Build",
+ :BuildConfigKey => BUILD_CONFIG_KEY,
+ :TargetFrameworkVersion => TARGET_FRAMEWORK_VERSION,
+ :Platform => 'Any CPU'
+ msb.properties[:TargetFrameworkVersion] = TARGET_FRAMEWORK_VERSION unless BUILD_CONFIG_KEY == 'NET35'
+ msb.use :net4 #MSB_USE
+ msb.targets :Clean, :Build
+ msb.solution = 'src/Samples/Distributor/Grid.Distributor.sln'
+end
+
def copyOutputFiles(fromDir, filePattern, outDir)
FileUtils.mkdir_p outDir unless exists?(outDir)
Dir.glob(File.join(fromDir, filePattern)){|file|
View
2 src/Samples/Distributor/Grid.Distributor.Activator/Grid.Distributor.Activator.csproj
@@ -93,7 +93,7 @@
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
- <None Include="log4net.config">
+ <None Include="activator.log4net.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
View
2 src/Samples/Distributor/Grid.Distributor.Activator/Program.cs
@@ -20,7 +20,7 @@ internal class Program
{
private static void Main(string[] args)
{
- XmlConfigurator.ConfigureAndWatch(new FileInfo(@"log4net.config"));
+ XmlConfigurator.ConfigureAndWatch(new FileInfo(@"activator.log4net.config"));
var service = new ActivorServiceProvider
{
View
0 ...or/Grid.Distributor.Worker/log4net.config → ...ibutor.Activator/activator.log4net.config
File renamed without changes.
View
2 src/Samples/Distributor/Grid.Distributor.Worker/Grid.Distributor.Worker.csproj
@@ -93,7 +93,7 @@
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
- <None Include="log4net.config">
+ <None Include="worker.log4net.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
View
2 src/Samples/Distributor/Grid.Distributor.Worker/Program.cs
@@ -20,7 +20,7 @@ internal class Program
{
private static void Main(string[] args)
{
- XmlConfigurator.ConfigureAndWatch(new FileInfo(@"log4net.config"));
+ XmlConfigurator.ConfigureAndWatch(new FileInfo(@"worker.log4net.config"));
var service = new WorkerServiceProvider
{
View
0 ...Grid.Distributor.Activator/log4net.config → ....Distributor.Worker/worker.log4net.config
File renamed without changes.
View
11 src/Samples/Distributor/Grid.Distributor.sln
@@ -19,34 +19,45 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MassTransit.Infrastructure"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Build|Any CPU = Build|Any CPU
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {DA5B48BC-3647-4E92-BEE5-58D920C75393}.Build|Any CPU.ActiveCfg = Release|Any CPU
+ {DA5B48BC-3647-4E92-BEE5-58D920C75393}.Build|Any CPU.Build.0 = Release|Any CPU
{DA5B48BC-3647-4E92-BEE5-58D920C75393}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DA5B48BC-3647-4E92-BEE5-58D920C75393}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DA5B48BC-3647-4E92-BEE5-58D920C75393}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DA5B48BC-3647-4E92-BEE5-58D920C75393}.Release|Any CPU.Build.0 = Release|Any CPU
+ {57CBC0A8-B439-4960-93A2-682D94D737AE}.Build|Any CPU.ActiveCfg = Release|Any CPU
+ {57CBC0A8-B439-4960-93A2-682D94D737AE}.Build|Any CPU.Build.0 = Release|Any CPU
{57CBC0A8-B439-4960-93A2-682D94D737AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{57CBC0A8-B439-4960-93A2-682D94D737AE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{57CBC0A8-B439-4960-93A2-682D94D737AE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{57CBC0A8-B439-4960-93A2-682D94D737AE}.Release|Any CPU.Build.0 = Release|Any CPU
+ {F5898375-3A9C-4996-A570-871789C39C63}.Build|Any CPU.ActiveCfg = Release|Any CPU
+ {F5898375-3A9C-4996-A570-871789C39C63}.Build|Any CPU.Build.0 = Release|Any CPU
{F5898375-3A9C-4996-A570-871789C39C63}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F5898375-3A9C-4996-A570-871789C39C63}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F5898375-3A9C-4996-A570-871789C39C63}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F5898375-3A9C-4996-A570-871789C39C63}.Release|Any CPU.Build.0 = Release|Any CPU
+ {6EFD69FC-CBCC-4F85-AEE0-EFBA73F4D273}.Build|Any CPU.ActiveCfg = Release|Any CPU
{6EFD69FC-CBCC-4F85-AEE0-EFBA73F4D273}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6EFD69FC-CBCC-4F85-AEE0-EFBA73F4D273}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6EFD69FC-CBCC-4F85-AEE0-EFBA73F4D273}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6EFD69FC-CBCC-4F85-AEE0-EFBA73F4D273}.Release|Any CPU.Build.0 = Release|Any CPU
+ {6F90867C-E092-4EDC-B3DE-600D39DF0335}.Build|Any CPU.ActiveCfg = Release|Any CPU
{6F90867C-E092-4EDC-B3DE-600D39DF0335}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6F90867C-E092-4EDC-B3DE-600D39DF0335}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6F90867C-E092-4EDC-B3DE-600D39DF0335}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6F90867C-E092-4EDC-B3DE-600D39DF0335}.Release|Any CPU.Build.0 = Release|Any CPU
+ {F5E67502-2B30-484C-88C3-97710291F5AA}.Build|Any CPU.ActiveCfg = Release|Any CPU
{F5E67502-2B30-484C-88C3-97710291F5AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F5E67502-2B30-484C-88C3-97710291F5AA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F5E67502-2B30-484C-88C3-97710291F5AA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F5E67502-2B30-484C-88C3-97710291F5AA}.Release|Any CPU.Build.0 = Release|Any CPU
+ {073A90FD-9A3E-4704-B3B5-6D8A9F4B442E}.Build|Any CPU.ActiveCfg = Release|Any CPU
{073A90FD-9A3E-4704-B3B5-6D8A9F4B442E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{073A90FD-9A3E-4704-B3B5-6D8A9F4B442E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{073A90FD-9A3E-4704-B3B5-6D8A9F4B442E}.Release|Any CPU.ActiveCfg = Release|Any CPU

0 comments on commit a1c6b23

Please sign in to comment.