72 << "Splash property ignored. File \"" 73 << splashPath << "\" not found"); 74 } 75 } 76 } while (0); 77 78 do { 79 const CfgFile::Properties& section = cfgFile.getProperties( 80 SectionName::JavaOptions); 81 const CfgFile::Properties::const_iterator javaOptions = section.find( 82 PropertyName::javaOptions); 83 if (javaOptions != section.end()) { 84 tstring_array::const_iterator it = javaOptions->second.begin(); 85 const tstring_array::const_iterator end = javaOptions->second.end(); 86 for (; it != end; ++it) { 87 addArgument(*it); 88 }; 89 } 90 } while (0); 91 92 // No validation of data in config file related to how Java app should be 93 // launched intentionally. 94 // Just read what is in config file and put on jvm's command line as is. 95 96 do { // Run modular app 97 const CfgFile::Properties::const_iterator mainmodule = appOptions.find( 98 PropertyName::mainmodule); 99 if (mainmodule != appOptions.end()) { 100 addArgument(_T("-m")); 101 addArgument(CfgFile::asString(*mainmodule)); 102 } 103 } while (0); 104 105 do { // Run main class 106 const CfgFile::Properties::const_iterator mainclass = appOptions.find( 107 PropertyName::mainclass); 108 if (mainclass != appOptions.end()) { 109 addArgument(CfgFile::asString(*mainclass)); 110 } 111 } while (0); | 72 << "Splash property ignored. File \"" 73 << splashPath << "\" not found"); 74 } 75 } 76 } while (0); 77 78 do { 79 const CfgFile::Properties& section = cfgFile.getProperties( 80 SectionName::JavaOptions); 81 const CfgFile::Properties::const_iterator javaOptions = section.find( 82 PropertyName::javaOptions); 83 if (javaOptions != section.end()) { 84 tstring_array::const_iterator it = javaOptions->second.begin(); 85 const tstring_array::const_iterator end = javaOptions->second.end(); 86 for (; it != end; ++it) { 87 addArgument(*it); 88 }; 89 } 90 } while (0); 91 92 do { 93 addArgument(_T("-Djpackage.app-path=") 94 + SysInfo::getProcessModulePath()); 95 } while (0); 96 97 // No validation of data in config file related to how Java app should be 98 // launched intentionally. 99 // Just read what is in config file and put on jvm's command line as is. 100 101 do { // Run modular app 102 const CfgFile::Properties::const_iterator mainmodule = appOptions.find( 103 PropertyName::mainmodule); 104 if (mainmodule != appOptions.end()) { 105 addArgument(_T("-m")); 106 addArgument(CfgFile::asString(*mainmodule)); 107 } 108 } while (0); 109 110 do { // Run main class 111 const CfgFile::Properties::const_iterator mainclass = appOptions.find( 112 PropertyName::mainclass); 113 if (mainclass != appOptions.end()) { 114 addArgument(CfgFile::asString(*mainclass)); 115 } 116 } while (0); |