modules/fxpackager/src/main/native/library/common/main.cpp

Print this page

        

@@ -168,11 +168,12 @@
                     break;
                 }
             }
 
             // Validation
-            {
+            AutoFreePtr<ISectionalPropertyContainer> config = platform.GetConfigFile(platform.GetConfigFileName());
+            if (config->ContainsSection("AppCDSJVMOptions")) {
                 switch (platform.GetAppCDSState()) {
                     case cdsOn:
                     case cdsAuto: {
                             TString cacheFileName = package.GetAppCDSCacheFileName();