Ewl » Canonical The canonical version of EWL Read More
Clone URL:  
Pushed to 2 repositories · View In Graph Contained in tip and canonical

Updated EWL folder name.

Changeset ef09e08bae54

Parent 28262320a117

by Profile picture of William GrossWilliam Gross

Changes to 9 files · Browse files at ef09e08bae54 Showing diff from parent 28262320a117 Diff from another changeset...

 
6
7
8
 
9
10
11
 
15
16
17
18
 
19
20
 
21
22
23
 
37
38
39
40
 
 
41
42
43
44
45
 
46
47
48
 
50
51
52
53
 
54
55
56
 
6
7
8
9
10
11
12
 
16
17
18
 
19
20
 
21
22
23
24
 
38
39
40
 
41
42
43
44
45
46
 
47
48
49
50
 
52
53
54
 
55
56
57
58
@@ -6,6 +6,7 @@
 using System.Web;  using EnterpriseWebLibrary.Configuration.Machine;  using EnterpriseWebLibrary.IO; +using Humanizer;    namespace EnterpriseWebLibrary.Configuration {   public static class ConfigurationStatics { @@ -15,9 +16,9 @@
  public const string ProvidersFolderAndNamespaceName = "Providers";     /// <summary> - /// Gets the path of the Red Stapler folder on the machine. + /// Gets the path of the EWL folder on the machine.   /// </summary> - public static string RedStaplerFolderPath { get; private set; } + public static string EwlFolderPath { get; private set; }     /// <summary>   /// EWL and ISU use only. @@ -37,12 +38,13 @@
  internal static bool IsClientSideApp { get; private set; }     internal static void Init( string assemblyFolderPath, Type globalInitializerType, string appName, bool isClientSideApp, ref string initializationLog ) { - RedStaplerFolderPath = Environment.GetEnvironmentVariable( "RedStaplerFolderPath" ) ?? @"C:\Red Stapler"; + EwlFolderPath = Environment.GetEnvironmentVariable( "{0}FolderPath".FormatWith( EwlStatics.EwlInitialism.EnglishToPascal() ) ) ?? + @"C:\{0}".FormatWith( EwlStatics.EwlName );     initializationLog += Environment.NewLine + "About to load machine config";     // Load machine configuration. - var machineConfigFilePath = EwlStatics.CombinePaths( RedStaplerFolderPath, "Machine Configuration.xml" ); + var machineConfigFilePath = EwlStatics.CombinePaths( EwlFolderPath, "Machine Configuration.xml" );   if( File.Exists( machineConfigFilePath ) )   // Do not perform schema validation since the schema file won't be available on non-development machines.   try { @@ -50,7 +52,7 @@
  }   catch {   // The alt file allows us to smoothly transition all machines in the case of schema changes that break deserialization. - var altFilePath = EwlStatics.CombinePaths( RedStaplerFolderPath, "Machine Configuration Alt.xml" ); + var altFilePath = EwlStatics.CombinePaths( EwlFolderPath, "Machine Configuration Alt.xml" );   if( !File.Exists( altFilePath ) )   throw;   MachineConfiguration = XmlOps.DeserializeFromFile<MachineConfiguration>( altFilePath, false );
 
126
127
128
129
 
130
131
132
 
126
127
128
 
129
130
131
132
@@ -126,7 +126,7 @@
  else {   smtpClient.DeliveryMethod = System.Net.Mail.SmtpDeliveryMethod.SpecifiedPickupDirectory;   - var pickupFolderPath = EwlStatics.CombinePaths( ConfigurationStatics.RedStaplerFolderPath, "Outgoing Dev Mail" ); + var pickupFolderPath = EwlStatics.CombinePaths( ConfigurationStatics.EwlFolderPath, "Outgoing Dev Mail" );   Directory.CreateDirectory( pickupFolderPath );   smtpClient.PickupDirectoryLocation = pickupFolderPath;   }
 
8
9
10
11
 
12
13
14
 
8
9
10
 
11
12
13
14
@@ -8,7 +8,7 @@
  /// <summary>   /// This should only be used by the Installation Support Utility.   /// </summary> - public static string DownloadedDataPackagesFolderPath = EwlStatics.CombinePaths( ConfigurationStatics.RedStaplerFolderPath, "Downloaded Data Packages" ); + public static string DownloadedDataPackagesFolderPath = EwlStatics.CombinePaths( ConfigurationStatics.EwlFolderPath, "Downloaded Data Packages" );     private static ChannelFactory<SystemManagerInterface.ServiceContracts.Isu> isuServiceFactory;   private static ChannelFactory<SystemManagerInterface.ServiceContracts.ProgramRunner> programRunnerServiceFactory;
 
18
19
20
21
 
22
23
24
 
18
19
20
 
21
22
23
24
@@ -18,7 +18,7 @@
  private const string dataPumpOracleDirectoryName = "red_stapler_data_pump_dir";   private const string databaseFileDumpFileName = "Dump File.dmp";   private const string databaseFileSchemaNameFileName = "Schema.txt"; - private static readonly string dataPumpFolderPath = EwlStatics.CombinePaths( ConfigurationStatics.RedStaplerFolderPath, "Oracle Data Pump" ); + private static readonly string dataPumpFolderPath = EwlStatics.CombinePaths( ConfigurationStatics.EwlFolderPath, "Oracle Data Pump" );     private readonly OracleInfo info;  
 
129
130
131
132
 
133
134
135
 
171
172
173
174
175
 
 
176
177
178
 
129
130
131
 
132
133
134
135
 
171
172
173
 
 
174
175
176
177
178
@@ -129,7 +129,7 @@
  // The database did not exist. That's fine.   }   - var sqlServerFilesFolderPath = EwlStatics.CombinePaths( ConfigurationStatics.RedStaplerFolderPath, "SQL Server Databases" ); + var sqlServerFilesFolderPath = EwlStatics.CombinePaths( ConfigurationStatics.EwlFolderPath, "SQL Server Databases" );   Directory.CreateDirectory( sqlServerFilesFolderPath );     var dataFilePath = EwlStatics.CombinePaths( sqlServerFilesFolderPath, info.Database + ".mdf" ); @@ -171,8 +171,8 @@
 )".FormatWith( info.Database, dataLogicalFileName, dataFilePath, logLogicalFileName, logFilePath ) );   }   - // Use the Red Stapler folder for all backup/restore operations because the SQL Server account probably already has access to it. - private string backupFilePath => EwlStatics.CombinePaths( ConfigurationStatics.RedStaplerFolderPath, info.Database + ".bak" ); + // Use the EWL folder for all backup/restore operations because the SQL Server account probably already has access to it. + private string backupFilePath => EwlStatics.CombinePaths( ConfigurationStatics.EwlFolderPath, info.Database + ".bak" );     List<string> Database.GetTables() {   var tables = new List<string>();
 
261
262
263
264
 
265
266
267
 
 
261
262
263
 
264
265
266
267
 
@@ -261,7 +261,7 @@
  /// Installation Support Utility use only.   /// </summary>   public static string GetDataPackageZipFilePath( string installationFullName ) { - return EwlStatics.CombinePaths( ConfigurationStatics.RedStaplerFolderPath, "Local Data Packages", installationFullName + ".zip" ); + return EwlStatics.CombinePaths( ConfigurationStatics.EwlFolderPath, "Local Data Packages", installationFullName + ".zip" );   }   }  } \ No newline at end of file
 
17
18
19
20
 
21
22
23
 
17
18
19
 
20
21
22
23
@@ -17,7 +17,7 @@
  public static void RefreshSystemList() {   // Do not perform schema validation since we don't want to be forced into redeploying Program Runner after every schema change. We also don't have access   // to the schema on non-development machines. - var cacheFilePath = EwlStatics.CombinePaths( ConfigurationStatics.RedStaplerFolderPath, "System List.xml" ); + var cacheFilePath = EwlStatics.CombinePaths( ConfigurationStatics.EwlFolderPath, "System List.xml" );   var cacheUsed = false;   try {   ConfigurationLogic.ExecuteWithSystemManagerClient(
 
10
11
12
13
 
14
15
16
 
10
11
12
 
13
14
15
16
@@ -10,7 +10,7 @@
  /// This is the code to install and start the SeleniumRC service.   /// </summary>   public static void InstallSeleniumServiceIfNecessary() { - var supportFilesDestinationPath = EwlStatics.CombinePaths( ConfigurationStatics.RedStaplerFolderPath, "Selenium Support" ); + var supportFilesDestinationPath = EwlStatics.CombinePaths( ConfigurationStatics.EwlFolderPath, "Selenium Support" );   const string serviceName = "SeleniumRC";   const string seleniumJarFile = "selenium-server.jar";   const string srvany = "srvany.exe";
 
15
16
17
18
 
19
20
21
 
15
16
17
 
18
19
20
21
@@ -15,7 +15,7 @@
    void Operation.Execute( Installation genericInstallation, IReadOnlyList<string> arguments, OperationResult operationResult ) {   var installation = genericInstallation as RecognizedDevelopmentInstallation; - var localNuGetFeedFolderPath = EwlStatics.CombinePaths( ConfigurationStatics.RedStaplerFolderPath, "Local NuGet Feed" ); + var localNuGetFeedFolderPath = EwlStatics.CombinePaths( ConfigurationStatics.EwlFolderPath, "Local NuGet Feed" );     // nuget.exe has problems if the folder doesn't exist.   Directory.CreateDirectory( localNuGetFeedFolderPath );