private static AbstractSetupConfigurationProcess CreateApacheConfig(Options options) { ApacheSetupConfigurationProcess proc = new ApacheSetupConfigurationProcess(); proc.ApacheDirName = options.ApacheDirName; proc.ApachePortNumber = options.ApachePortNumber; proc.BackupConfigFiles = options.BackupConfigFiles; proc.BackupConfigPath = options.BackupConfigPath; proc.BatchFileOutputDirectory = options.BatchFileOutputDirectory; proc.BuildOutputPath = options.SourceRootDir; proc.DefaultViewer = options.DefaultViewer; proc.EnableJava = options.EnableJava; proc.EnablePhp = options.EnablePhp; proc.HttpdServiceName = options.HttpdServiceName; proc.InstallServices = options.InstallServices; proc.MapGuideServiceName = options.MapGuideServiceName; proc.ServerAdminPort = options.ServerAdminPort; proc.ServerClientPort = options.ServerClientPort; proc.ServerSitePort = options.ServerSitePort; proc.TomcatPortNumber = options.TomcatPortNumber; proc.VirtualDirectoryName = options.VirtualDirectoryName; proc.WriteMentorDictionaryPath = options.WriteMentorDictionaryPath; return(proc); }
public ApacheConfigCtrl() { InitializeComponent(); var apacheConf = new ApacheSetupConfigurationProcess(); this.Config = apacheConf; numAdminPort.Value = apacheConf.ServerAdminPort; numClientPort.Value = apacheConf.ServerClientPort; numSitePort.Value = apacheConf.ServerSitePort; txtPhysicalDirectory.Text = apacheConf.ApacheDirName; txtVirtualDirectory.Text = apacheConf.VirtualDirectoryName; numHttpdPort.Value = apacheConf.ApachePortNumber; txtServiceName.Text = apacheConf.HttpdServiceName; chkEnableJava.Checked = apacheConf.EnableJava; numTomcatPort.Value = apacheConf.TomcatPortNumber; }