コード例 #1
0
ファイル: Flex2Shell.cs プロジェクト: heon21st/flashdevelop
		/// <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;
		}
コード例 #2
0
ファイル: Flex2Shell.cs プロジェクト: heon21st/flashdevelop
		/// <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);
		}
コード例 #3
0
ファイル: Flex2Shell.cs プロジェクト: heon21st/flashdevelop
		/* 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;
		}