/// <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;
        }
        /// <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
		/// <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);
		}
示例#4
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;
		}