modules/jdk.packager/src/main/java/jdk/packager/builders/AbstractAppImageBuilder.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2015, 2016, 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) 2015, 2017, 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
*** 189,198 **** --- 189,199 ---- out.println("app.version=" + VERSION.fetchFrom(params)); out.println("app.preferences.id=" + PREFERENCES_ID.fetchFrom(params)); out.println("app.runtime=" + runtimeLocation); out.println("app.identifier=" + IDENTIFIER.fetchFrom(params)); out.println("app.classpath=" + String.join(File.pathSeparator, CLASSPATH.fetchFrom(params).split("[ :;]"))); + out.println("app.application.instance=" + (SINGLETON.fetchFrom(params) ? "single" : "multiple")); // The main app is required to be a jar, modular or unnamed. if (mainJarType == Module.ModuleType.Unknown || mainJarType == Module.ModuleType.ModularJar) { if (mainModule != null) { out.println("app.mainmodule=" + mainModule); // TODO get app class from main module mainifest.