From: Julio G. <ju...@us...> - 2004-10-12 00:52:15
|
Update of /cvsroot/smartfrog/core/extras/sfgui/src/org/smartfrog/tools/gui/browser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16479/sfgui/src/org/smartfrog/tools/gui/browser Modified Files: MainFrame.java Log Message: Updates to use new SF command line syntax for sfStart and sfTerminate Index: MainFrame.java =================================================================== RCS file: /cvsroot/smartfrog/core/extras/sfgui/src/org/smartfrog/tools/gui/browser/MainFrame.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** MainFrame.java 27 Aug 2004 14:44:48 -0000 1.5 --- MainFrame.java 12 Oct 2004 00:52:04 -0000 1.6 *************** *** 80,84 **** * Description of the Field */ ! public final static String version = "v0.7 r04"; // This has to be done properly !!!!!!!!!!!!!!! no static. Because of crap log. static PrintStream msg = System.out; --- 80,84 ---- * Description of the Field */ ! public final static String version = "v0.7 r06"; // This has to be done properly !!!!!!!!!!!!!!! no static. Because of crap log. static PrintStream msg = System.out; *************** *** 126,131 **** //"sfDaemon"; private String sfDaemonFile = "./bin/daemon.sf"; ! private String cmdSFStart = "sfStart"; ! private String cmdSFStop = "sfTerminate"; private String cmdAddSecurity = "security"; //lookAndFeel --- 126,131 ---- //"sfDaemon"; private String sfDaemonFile = "./bin/daemon.sf"; ! private String cmdSFStart = "DEPLOY"; ! private String cmdSFStop = "TERMINATE"; private String cmdAddSecurity = "security"; //lookAndFeel *************** *** 378,384 **** public void setEclipseMode(){ ! int indexPanel = jTabbedPanelNorth.indexOfTab(panelNameSFFile); jTextAreaSFFile.setEditable(false); ! jTabbedPanelNorth.remove(indexPanel); jButtonOpen.hide(); jButtonSave.hide(); --- 378,384 ---- public void setEclipseMode(){ ! //int indexPanel = jTabbedPanelNorth.indexOfTab(panelNameSFFile); jTextAreaSFFile.setEditable(false); ! //jTabbedPanelNorth.remove(indexPanel); jButtonOpen.hide(); jButtonSave.hide(); *************** *** 1380,1392 **** } ! cmdStart = cmdGeneral + " " + dir + cmdStart + " " ! + this.hostNameTextField.getText() + " " ! + this.processNameTextField.getText() + " " ! +"\""+ file.getPath()+"\"" + " "; ! cmdStop = cmdGeneral + " " + dir + cmdStop + " " ! + this.hostNameTextField.getText() + " " ! + this.processNameTextField.getText() + " " ! + " "; ! // runCmd = new RunProcess(cmd); jTabbedPanelNorth.setSelectedIndex(jTabbedPanelNorth.indexOfTab("output")); // // Select Output --- 1380,1410 ---- } ! // cmdStart = cmdGeneral + " " + dir + cmdStart + " " ! // + this.hostNameTextField.getText() + " " ! // + this.processNameTextField.getText() + " " ! // +"\""+ file.getPath()+"\"" + " "; ! //ProcessName:DEPLOY:org/smartfrog/examples/counter/examplekk.sf::127.0.0.1: ! cmdStart = cmdGeneral + " " + dir + "smartfrog" + " -a " ! + this.processNameTextField.getText() +":" ! +cmdSFStart+":" ! +"\""+ file.getPath()+"\""+":" ! +":" ! + this.hostNameTextField.getText() + ": -e"; ! ! ! // cmdStop = cmdGeneral + " " + dir + cmdStop + " " ! // + this.hostNameTextField.getText() + " " ! // + this.processNameTextField.getText() + " " ! // + " "; ! //ProcessName:DEPLOY:org/smartfrog/examples/counter/examplekk.sf::127.0.0.1: ! cmdStop = cmdGeneral + " " + dir + "smartfrog" + " -a " ! + this.processNameTextField.getText() +":" ! +cmdSFStop+":" ! +""+":" ! +":" ! + this.hostNameTextField.getText() + ": -e"; ! ! ! jTabbedPanelNorth.setSelectedIndex(jTabbedPanelNorth.indexOfTab("output")); // // Select Output *************** *** 1444,1455 **** dir = " ./" + batchDir + "/"; } ! cmdStart = cmdGeneral + " " + dir + cmdStart + " " ! + this.hostNameTextField.getText() + " " ! + this.processNameTextField.getText() + " " ! +"\"" +sfFilePath +"\""+ " "; ! cmdStop = cmdGeneral + " " + dir + cmdStop + " " ! + this.hostNameTextField.getText() + " " ! + this.processNameTextField.getText() + " " ! + " "; jTabbedPanelNorth.setSelectedIndex(jTabbedPanelNorth.indexOfTab("output")); //jTabbedPanelNorth.setSelectedIndex(2); --- 1462,1490 ---- dir = " ./" + batchDir + "/"; } ! // cmdStart = cmdGeneral + " " + dir + cmdStart + " " ! // + this.hostNameTextField.getText() + " " ! // + this.processNameTextField.getText() + " " ! // +"\"" +sfFilePath +"\""+ " "; ! // cmdStop = cmdGeneral + " " + dir + cmdStop + " " ! // + this.hostNameTextField.getText() + " " ! // + this.processNameTextField.getText() + " " ! // + " "; ! ! cmdStart = cmdGeneral + " " + dir + "smartfrog" + " -a " ! + this.processNameTextField.getText() +":" ! +cmdSFStart+":" ! +"\""+ sfFilePath+"\""+":" ! +":" ! + this.hostNameTextField.getText() + ": -e"; ! ! cmdStop = cmdGeneral + " " + dir + "smartfrog" + " -a " ! + this.processNameTextField.getText() +":" ! +cmdSFStop+":" ! +""+":" ! +":" ! + this.hostNameTextField.getText() + ": -e"; ! ! ! jTabbedPanelNorth.setSelectedIndex(jTabbedPanelNorth.indexOfTab("output")); //jTabbedPanelNorth.setSelectedIndex(2); |