[mapguide-commits] r5875 - trunk/Tools/MgInstantSetup/InstantSetup
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Mon May 30 12:21:21 EDT 2011
Author: jng
Date: 2011-05-30 09:21:21 -0700 (Mon, 30 May 2011)
New Revision: 5875
Modified:
trunk/Tools/MgInstantSetup/InstantSetup/ApacheConfigCtrl.Designer.cs
trunk/Tools/MgInstantSetup/InstantSetup/ApacheConfigCtrl.cs
trunk/Tools/MgInstantSetup/InstantSetup/Form1.Designer.cs
trunk/Tools/MgInstantSetup/InstantSetup/Form1.cs
Log:
More tweaks to the instant configuration utility.
Modified: trunk/Tools/MgInstantSetup/InstantSetup/ApacheConfigCtrl.Designer.cs
===================================================================
--- trunk/Tools/MgInstantSetup/InstantSetup/ApacheConfigCtrl.Designer.cs 2011-05-30 16:18:43 UTC (rev 5874)
+++ trunk/Tools/MgInstantSetup/InstantSetup/ApacheConfigCtrl.Designer.cs 2011-05-30 16:21:21 UTC (rev 5875)
@@ -36,16 +36,16 @@
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.groupBox2 = new System.Windows.Forms.GroupBox();
+ this.txtServiceName = new System.Windows.Forms.TextBox();
+ this.label7 = new System.Windows.Forms.Label();
this.numHttpdPort = new System.Windows.Forms.NumericUpDown();
this.label6 = new System.Windows.Forms.Label();
this.txtVirtualDirectory = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.groupBox3 = new System.Windows.Forms.GroupBox();
+ this.chkEnableJava = new System.Windows.Forms.CheckBox();
this.numTomcatPort = new System.Windows.Forms.NumericUpDown();
this.label5 = new System.Windows.Forms.Label();
- this.chkEnableJava = new System.Windows.Forms.CheckBox();
- this.txtServiceName = new System.Windows.Forms.TextBox();
- this.label7 = new System.Windows.Forms.Label();
this.groupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.numSitePort)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.numClientPort)).BeginInit();
@@ -156,6 +156,25 @@
this.groupBox2.TabStop = false;
this.groupBox2.Text = "General";
//
+ // txtServiceName
+ //
+ this.txtServiceName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
+ this.txtServiceName.Location = new System.Drawing.Point(154, 77);
+ this.txtServiceName.Name = "txtServiceName";
+ this.txtServiceName.Size = new System.Drawing.Size(236, 20);
+ this.txtServiceName.TabIndex = 11;
+ this.txtServiceName.TextChanged += new System.EventHandler(this.txtServiceName_TextChanged);
+ //
+ // label7
+ //
+ this.label7.AutoSize = true;
+ this.label7.Location = new System.Drawing.Point(23, 80);
+ this.label7.Name = "label7";
+ this.label7.Size = new System.Drawing.Size(74, 13);
+ this.label7.TabIndex = 10;
+ this.label7.Text = "Service Name";
+ //
// numHttpdPort
//
this.numHttpdPort.Location = new System.Drawing.Point(154, 51);
@@ -211,6 +230,17 @@
this.groupBox3.TabIndex = 2;
this.groupBox3.TabStop = false;
//
+ // chkEnableJava
+ //
+ this.chkEnableJava.AutoSize = true;
+ this.chkEnableJava.Location = new System.Drawing.Point(6, 0);
+ this.chkEnableJava.Name = "chkEnableJava";
+ this.chkEnableJava.Size = new System.Drawing.Size(85, 17);
+ this.chkEnableJava.TabIndex = 0;
+ this.chkEnableJava.Text = "Enable Java";
+ this.chkEnableJava.UseVisualStyleBackColor = true;
+ this.chkEnableJava.CheckedChanged += new System.EventHandler(this.chkEnableJava_CheckedChanged);
+ //
// numTomcatPort
//
this.numTomcatPort.Location = new System.Drawing.Point(154, 29);
@@ -233,35 +263,6 @@
this.label5.TabIndex = 6;
this.label5.Text = "Tomcat Port Number";
//
- // chkEnableJava
- //
- this.chkEnableJava.AutoSize = true;
- this.chkEnableJava.Location = new System.Drawing.Point(6, 0);
- this.chkEnableJava.Name = "chkEnableJava";
- this.chkEnableJava.Size = new System.Drawing.Size(85, 17);
- this.chkEnableJava.TabIndex = 0;
- this.chkEnableJava.Text = "Enable Java";
- this.chkEnableJava.UseVisualStyleBackColor = true;
- //
- // txtServiceName
- //
- this.txtServiceName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
- this.txtServiceName.Location = new System.Drawing.Point(154, 77);
- this.txtServiceName.Name = "txtServiceName";
- this.txtServiceName.Size = new System.Drawing.Size(236, 20);
- this.txtServiceName.TabIndex = 11;
- this.txtServiceName.TextChanged += new System.EventHandler(this.txtServiceName_TextChanged);
- //
- // label7
- //
- this.label7.AutoSize = true;
- this.label7.Location = new System.Drawing.Point(23, 80);
- this.label7.Name = "label7";
- this.label7.Size = new System.Drawing.Size(74, 13);
- this.label7.TabIndex = 10;
- this.label7.Text = "Service Name";
- //
// ApacheConfigCtrl
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
Modified: trunk/Tools/MgInstantSetup/InstantSetup/ApacheConfigCtrl.cs
===================================================================
--- trunk/Tools/MgInstantSetup/InstantSetup/ApacheConfigCtrl.cs 2011-05-30 16:18:43 UTC (rev 5874)
+++ trunk/Tools/MgInstantSetup/InstantSetup/ApacheConfigCtrl.cs 2011-05-30 16:21:21 UTC (rev 5875)
@@ -94,5 +94,10 @@
{
ApacheConfig.HttpdServiceName = txtServiceName.Text;
}
+
+ private void chkEnableJava_CheckedChanged(object sender, EventArgs e)
+ {
+ ApacheConfig.EnableJava = chkEnableJava.Checked;
+ }
}
}
Modified: trunk/Tools/MgInstantSetup/InstantSetup/Form1.Designer.cs
===================================================================
--- trunk/Tools/MgInstantSetup/InstantSetup/Form1.Designer.cs 2011-05-30 16:18:43 UTC (rev 5874)
+++ trunk/Tools/MgInstantSetup/InstantSetup/Form1.Designer.cs 2011-05-30 16:21:21 UTC (rev 5875)
@@ -136,6 +136,7 @@
this.chkInstallServices.TabIndex = 7;
this.chkInstallServices.Text = "Install Services";
this.chkInstallServices.UseVisualStyleBackColor = true;
+ this.chkInstallServices.Visible = false;
this.chkInstallServices.CheckedChanged += new System.EventHandler(this.chkInstallServices_CheckedChanged);
//
// button1
Modified: trunk/Tools/MgInstantSetup/InstantSetup/Form1.cs
===================================================================
--- trunk/Tools/MgInstantSetup/InstantSetup/Form1.cs 2011-05-30 16:18:43 UTC (rev 5874)
+++ trunk/Tools/MgInstantSetup/InstantSetup/Form1.cs 2011-05-30 16:21:21 UTC (rev 5875)
@@ -77,7 +77,9 @@
try
{
_apacheConf.Config.Execute();
- MessageBox.Show("Configured");
+ if (!chkInstallServices.Checked)
+ MessageBox.Show("Batch scripts saved to " + _apacheConf.Config.BatchFileOutputDirectory);
+ //Service install not implemented
}
catch (Exception ex)
{
More information about the mapguide-commits
mailing list