Changeset 18823 for trunk/FACT++
- Timestamp:
- 04/14/17 12:22:21 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/RemoteControl.h
r16936 r18823 431 431 if (str.substr(0, 4)==".js ") 432 432 { 433 string opt(str.substr(4)); 434 435 map<string,string> data = Tools::Split(opt, true); 436 if (opt.size()==0) 437 { 438 if (data.size()==0) 439 lout << kRed << "JavaScript filename missing." << endl; 440 else 441 lout << kRed << "Equal sign missing in argument '" << data.begin()->first << "'" << endl; 442 433 string opt(str.substr(4)+" "+fImp->GetArguments()); 434 435 const map<string,string> data = Tools::Split(opt, true); // allow positional arguments 436 if (opt.size()==0 && data.size()==0) 437 { 438 lout << kRed << "JavaScript filename missing." << endl; 443 439 return true; 444 440 } … … 453 449 } 454 450 455 if (str==".java" && !StateMachineDimControl::fIsServer) 456 { 451 if ((str==".java" || str.substr(0,6)==".java ") && !StateMachineDimControl::fIsServer) 452 { 453 string opt(str+" "+fImp->GetArguments()); 454 455 const map<string,string> data = Tools::Split(opt, true); // allow positional arguments 456 457 457 T::fScript = "java"; 458 458 459 459 T::Lock(); 460 JsRun("" );460 JsRun("", data); 461 461 T::Unlock(); 462 462
Note:
See TracChangeset
for help on using the changeset viewer.