mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 10:54:50 +08:00
Fix typo
--HG-- branch : dev
This commit is contained in:
@@ -21,7 +21,7 @@ namespace Orchard.Specs.Bindings {
|
||||
private MessageSink _messages;
|
||||
private static readonly Path _orchardTemp = Path.Get(System.IO.Path.GetTempPath()).Combine("Orchard.Specs");
|
||||
private ExtensionDeploymentOptions _moduleDeploymentOptions = ExtensionDeploymentOptions.CompiledAssembly;
|
||||
private DynamicComilationOption _dynamicCompilationOption = DynamicComilationOption.Enabled;
|
||||
private DynamicCompilationOption _dynamicCompilationOption = DynamicCompilationOption.Enabled;
|
||||
|
||||
public WebHost Host {
|
||||
get { return _webHost; }
|
||||
@@ -74,12 +74,12 @@ namespace Orchard.Specs.Bindings {
|
||||
[Given(@"I have chosen to load modules using dymamic compilation only")]
|
||||
public void GivenIHaveChosenToLoadModulesUsingDynamicComilationOnly() {
|
||||
_moduleDeploymentOptions = ExtensionDeploymentOptions.SourceCode;
|
||||
_dynamicCompilationOption = DynamicComilationOption.Force;
|
||||
_dynamicCompilationOption = DynamicCompilationOption.Force;
|
||||
}
|
||||
|
||||
[Given(@"I have chosen to load modules with dynamic compilation disabled")]
|
||||
public void GivenIHaveChosenToLoadModulesAsSourceFilesOnly() {
|
||||
_dynamicCompilationOption = DynamicComilationOption.Disabled;
|
||||
_dynamicCompilationOption = DynamicCompilationOption.Disabled;
|
||||
}
|
||||
|
||||
[Given(@"I have a clean site based on (.*)")]
|
||||
|
@@ -7,7 +7,7 @@ namespace Orchard.Specs.Hosting {
|
||||
SourceCode = 0x02,
|
||||
}
|
||||
|
||||
public enum DynamicComilationOption {
|
||||
public enum DynamicCompilationOption {
|
||||
Enabled, // Allow compiling of csproj files as needed
|
||||
Disabled, // Never compile csproj files
|
||||
Force // Force loading modules by compiling csproj files
|
||||
|
@@ -25,7 +25,7 @@ namespace Orchard.Specs.Hosting {
|
||||
_orchardTemp = orchardTemp;
|
||||
}
|
||||
|
||||
public void Initialize(string templateName, string virtualDirectory, DynamicComilationOption dynamicCompilationOption) {
|
||||
public void Initialize(string templateName, string virtualDirectory, DynamicCompilationOption dynamicCompilationOption) {
|
||||
var stopwatch = new Stopwatch();
|
||||
stopwatch.Start();
|
||||
|
||||
@@ -60,14 +60,14 @@ namespace Orchard.Specs.Hosting {
|
||||
baseDir.Combine("Hosting").Combine(templateName)
|
||||
.DeepCopy(_tempSite);
|
||||
|
||||
if (dynamicCompilationOption != DynamicComilationOption.Enabled) {
|
||||
if (dynamicCompilationOption != DynamicCompilationOption.Enabled) {
|
||||
var sourceConfig = baseDir.Combine("Hosting").Combine("TemplateConfigs");
|
||||
var siteConfig = _tempSite.Combine("Config");
|
||||
switch (dynamicCompilationOption) {
|
||||
case DynamicComilationOption.Disabled:
|
||||
case DynamicCompilationOption.Disabled:
|
||||
File.Copy(sourceConfig.Combine("DisableDynamicCompilation.HostComponents.config"), siteConfig.Combine("HostComponents.config"));
|
||||
break;
|
||||
case DynamicComilationOption.Force:
|
||||
case DynamicCompilationOption.Force:
|
||||
File.Copy(sourceConfig.Combine("ForceDynamicCompilation.HostComponents.config"), siteConfig.Combine("HostComponents.config"));
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user