src/java.base/share/native/libjli/parse_manifest.c

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 586,604 **** close(fd); return (-2); } lp = manifest; while ((rc = parse_nv_pair(&lp, &name, &value)) > 0) { ! if (JLI_StrCaseCmp(name, "Manifest-Version") == 0) info->manifest_version = value; ! else if (JLI_StrCaseCmp(name, "Main-Class") == 0) info->main_class = value; ! else if (JLI_StrCaseCmp(name, "JRE-Version") == 0) ! info->jre_version = value; ! else if (JLI_StrCaseCmp(name, "JRE-Restrict-Search") == 0) { ! if (JLI_StrCaseCmp(value, "true") == 0) ! info->jre_restrict_search = 1; } else if (JLI_StrCaseCmp(name, "Splashscreen-Image") == 0) { info->splashscreen_image_file_name = value; } } close(fd); --- 586,605 ---- close(fd); return (-2); } lp = manifest; while ((rc = parse_nv_pair(&lp, &name, &value)) > 0) { ! if (JLI_StrCaseCmp(name, "Manifest-Version") == 0) { info->manifest_version = value; ! } else if (JLI_StrCaseCmp(name, "Main-Class") == 0) { info->main_class = value; ! } else if (JLI_StrCaseCmp(name, "JRE-Version") == 0) { ! /* ! * Manifest specification overridden by command line option ! * so we will silently override there with no specification. ! */ ! info->jre_version = 0; } else if (JLI_StrCaseCmp(name, "Splashscreen-Image") == 0) { info->splashscreen_image_file_name = value; } } close(fd);