Modified:
/trunk/src/Tarantino.Deployer.Console/Program.cs
/trunk/src/Tarantino.Deployer.Console/Tarantino.Deployer.Console.csproj
/trunk/src/Tarantino.Deployer.Infrastructure/PackageDownloader.cs
=======================================
--- /trunk/src/Tarantino.Deployer.Console/Program.cs Sat Jan 8 11:43:27
2011
+++ /trunk/src/Tarantino.Deployer.Console/Program.cs Mon Jan 10 09:23:24
2011
@@ -65,6 +65,10 @@
versionNumber = lastCertified.Version;
}
}
+ else if (requestedVersion == "Current")
+ {
+ versionNumber = null;
+ }
var result =
PackageDownloader.DownloadAndExtract(selectedApplication.Name,
selectedEnvironment.Name, versionNumber,
selectedApplication.Url, selectedApplication.ZipFile,
=======================================
--- /trunk/src/Tarantino.Deployer.Console/Tarantino.Deployer.Console.csproj
Sat Jan 8 05:21:14 2011
+++ /trunk/src/Tarantino.Deployer.Console/Tarantino.Deployer.Console.csproj
Mon Jan 10 09:23:24 2011
@@ -114,6 +114,16 @@
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="deployer.hibernate.cfg.xml">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="App.config">
+ <SubType>Designer</SubType>
+ </None>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the
targets below and uncomment it.
=======================================
--- /trunk/src/Tarantino.Deployer.Infrastructure/PackageDownloader.cs Sat
Jan 8 11:43:27 2011
+++ /trunk/src/Tarantino.Deployer.Infrastructure/PackageDownloader.cs Mon
Jan 10 09:23:24 2011
@@ -37,7 +37,8 @@
Credentials = new NetworkCredential(username, password)
};
- client.DownloadFile(downloadUrl + "/" + version + "/" + zipFile
+ ".zip", fullZipFile);
+ var fullUrl = downloadUrl + "/" + version + "/" + zipFile + ".zip";
+ client.DownloadFile(fullUrl, fullZipFile);
Directory.CreateDirectory(applicationDirectory);