Esempio n. 1
0
		/// <summary>
		/// Start background process
		/// </summary>
		private void StartAscRunner()
		{
			string cmd = "-classpath \""+Path.Combine(flexPath,"lib")+"\\asc.jar;"+flex2Shell+"\" AscShell";
			mainForm.AddTraceLogEntry("Background process: java "+cmd, -1);
			// run asc shell
			ascRunner = new ProcessRunner();
			ascRunner.Run("java", cmd);
            ascRunner.Output += new LineOutputHandler(ascRunner_Output);
            ascRunner.Error += new LineOutputHandler(ascRunner_Error);
            errorState = 0;
		}
Esempio n. 2
0
		/// <summary>
		/// Start background process
		/// </summary>
		private void StartMxmlcRunner()
		{
			string cmd = "-classpath \""+Path.Combine(flexPath,"lib")+"\\mxmlc.jar;"+flex2Shell+"\" MxmlcShell";
			mainForm.AddTraceLogEntry("Background process: java "+cmd, -1);
			// set current directory to the flex framework files
			string currentPath = Directory.GetCurrentDirectory();
			Directory.SetCurrentDirectory(Path.Combine(flexPath,"frameworks"));
			// run compiler shell
			mxmlcRunner = new ProcessRunner();
			mxmlcRunner.Run("java", cmd);
            mxmlcRunner.Output += new LineOutputHandler(mxmlcRunner_Output);
            mxmlcRunner.Error += new LineOutputHandler(mxmlcRunner_Error);
            errorState = 0;
            // restaure current directory
            Directory.SetCurrentDirectory(currentPath);
		}
Esempio n. 3
0
		/* Background process */
		
		/// <summary>
		/// Stop background processes
		/// </summary>
		public void Stop()
		{
			if (ascRunner != null && ascRunner.IsRunning) ascRunner.KillProcess();
			ascRunner = null;
			if (mxmlcRunner != null && mxmlcRunner.IsRunning) mxmlcRunner.KillProcess();
			mxmlcRunner = null;
		}