Java Code Examples for net.sf.launch4j.config.Config#getSingleInstance()
The following examples show how to use
net.sf.launch4j.config.Config#getSingleInstance() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RcBuilder.java From beast-mcmc with GNU Lesser General Public License v2.1 | 4 votes |
public File build(Config c) throws IOException { _sb.append("LANGUAGE "); _sb.append(LANG_NEUTRAL); _sb.append(", "); _sb.append(SUBLANG_DEFAULT); _sb.append('\n'); addVersionInfo(c.getVersionInfo()); addJre(c.getJre()); addManifest(MANIFEST, c.getManifest()); addIcon(APP_ICON, c.getIcon()); addText(ERR_TITLE, c.getErrTitle()); addText(DOWNLOAD_URL, c.getDownloadUrl()); addText(SUPPORT_URL, c.getSupportUrl()); addText(CMD_LINE, c.getCmdLine()); addWindowsPath(CHDIR, c.getChdir()); addText(PRIORITY_CLASS, String.valueOf(c.getPriorityClass())); addTrue(GUI_HEADER_STAYS_ALIVE, c.isStayAlive()); addTrue(RESTART_ON_CRASH, c.isRestartOnCrash()); addSplash(c.getSplash()); addMessages(c); if (c.getSingleInstance() != null) { addText(MUTEX_NAME, c.getSingleInstance().getMutexName()); addText(INSTANCE_WINDOW_TITLE, c.getSingleInstance().getWindowTitle()); } if (c.getVariables() != null && !c.getVariables().isEmpty()) { StringBuffer vars = new StringBuffer(); append(vars, c.getVariables(), "\t"); addText(ENV_VARIABLES, vars.toString()); } // MAIN_CLASS / JAR addTrue(WRAPPER, !c.isDontWrapJar()); if (c.getClassPath() != null) { addText(MAIN_CLASS, c.getClassPath().getMainClass()); addWindowsPath(CLASSPATH, c.getClassPath().getPathsString()); } if (c.isDontWrapJar() && c.getJar() != null) { addWindowsPath(JAR, c.getJar().getPath()); } File file = Util.createTempFile("rc"); if ("MS932".equals(System.getProperty("file.encoding"))) { writeKanjiResourceFile(file); } else { writeResourceFile(file); } return file; }
Example 2
Source File: RcBuilder.java From PyramidShader with GNU General Public License v3.0 | 4 votes |
public File build(Config c) throws IOException { _sb.append("LANGUAGE "); _sb.append(LANG_NEUTRAL); _sb.append(", "); _sb.append(SUBLANG_DEFAULT); _sb.append('\n'); addVersionInfo(c.getVersionInfo()); addJre(c.getJre()); addManifest(MANIFEST, c.getManifest()); addIcon(APP_ICON, c.getIcon()); addText(ERR_TITLE, c.getErrTitle()); addText(DOWNLOAD_URL, c.getDownloadUrl()); addText(SUPPORT_URL, c.getSupportUrl()); addText(CMD_LINE, c.getCmdLine()); addWindowsPath(CHDIR, c.getChdir()); addText(PRIORITY_CLASS, String.valueOf(c.getPriorityClass())); addTrue(GUI_HEADER_STAYS_ALIVE, c.isStayAlive()); addTrue(RESTART_ON_CRASH, c.isRestartOnCrash()); addSplash(c.getSplash()); addMessages(c); if (c.getSingleInstance() != null) { addText(MUTEX_NAME, c.getSingleInstance().getMutexName()); addText(INSTANCE_WINDOW_TITLE, c.getSingleInstance().getWindowTitle()); } if (c.getVariables() != null && !c.getVariables().isEmpty()) { StringBuffer vars = new StringBuffer(); append(vars, c.getVariables(), "\t"); addText(ENV_VARIABLES, vars.toString()); } // MAIN_CLASS / JAR addTrue(WRAPPER, !c.isDontWrapJar()); if (c.getClassPath() != null) { addText(MAIN_CLASS, c.getClassPath().getMainClass()); addWindowsPath(CLASSPATH, c.getClassPath().getPathsString()); } if (c.isDontWrapJar() && c.getJar() != null) { addWindowsPath(JAR, c.getJar().getPath()); } File file = Util.createTempFile("rc"); if ("MS932".equals(System.getProperty("file.encoding"))) { writeKanjiResourceFile(file); } else { writeResourceFile(file); } return file; }
Example 3
Source File: RcBuilder.java From jmkvpropedit with BSD 2-Clause "Simplified" License | 4 votes |
public File build(Config c) throws IOException { _sb.append("LANGUAGE "); _sb.append(LANG_NEUTRAL); _sb.append(", "); _sb.append(SUBLANG_DEFAULT); _sb.append('\n'); addVersionInfo(c.getVersionInfo()); addJre(c.getJre()); addManifest(MANIFEST, c.getManifest()); addIcon(APP_ICON, c.getIcon()); addText(ERR_TITLE, c.getErrTitle()); addText(DOWNLOAD_URL, c.getDownloadUrl()); addText(SUPPORT_URL, c.getSupportUrl()); addText(CMD_LINE, c.getCmdLine()); addWindowsPath(CHDIR, c.getChdir()); addText(PRIORITY_CLASS, String.valueOf(c.getPriorityClass())); addTrue(GUI_HEADER_STAYS_ALIVE, c.isStayAlive()); addTrue(RESTART_ON_CRASH, c.isRestartOnCrash()); addSplash(c.getSplash()); addMessages(c); if (c.getSingleInstance() != null) { addText(MUTEX_NAME, c.getSingleInstance().getMutexName()); addText(INSTANCE_WINDOW_TITLE, c.getSingleInstance().getWindowTitle()); } if (c.getVariables() != null && !c.getVariables().isEmpty()) { StringBuffer vars = new StringBuffer(); append(vars, c.getVariables(), "\t"); addText(ENV_VARIABLES, vars.toString()); } // MAIN_CLASS / JAR addTrue(WRAPPER, !c.isDontWrapJar()); if (c.getClassPath() != null) { addText(MAIN_CLASS, c.getClassPath().getMainClass()); addWindowsPath(CLASSPATH, c.getClassPath().getPathsString()); } if (c.isDontWrapJar() && c.getJar() != null) { addWindowsPath(JAR, c.getJar().getPath()); } File file = Util.createTempFile("rc"); if ("MS932".equals(System.getProperty("file.encoding"))) { writeKanjiResourceFile(file); } else { writeResourceFile(file); } return file; }