< prev index next >
src/jdk.incubator.jpackage/share/native/applauncher/JvmLauncher.cpp
Print this page
@@ -64,12 +64,11 @@
const CfgFile::Properties::const_iterator splash = appOptions.find(
PropertyName::splash);
if (splash != appOptions.end()) {
const tstring splashPath = CfgFile::asString(*splash);
if (FileUtils::isFileExists(splashPath)) {
- addArgument(_T("-splash"));
- addArgument(splashPath);
+ addArgument(_T("-splash:") + splashPath);
} else {
LOG_WARNING(tstrings::any()
<< "Splash property ignored. File \""
<< splashPath << "\" not found");
}
@@ -136,10 +135,27 @@
return *this;
}
+bool Jvm::isWithSplash() const {
+ tstring_array::const_iterator it = args.begin();
+ const tstring_array::const_iterator end = args.end();
+ for (; it != end; ++it) {
+ if (tstrings::startsWith(*it, _T("-splash:"))) {
+ return true;
+ }
+ }
+ return false;
+}
+
+
+bool Jvm::isClientJvm() const {
+ return std::find(args.begin(), args.end(), _T("-client")) != args.end();
+}
+
+
namespace {
void convertArgs(const std::vector<std::string>& args, std::vector<char*>& argv) {
argv.reserve(args.size() + 1);
argv.resize(0);
< prev index next >