aboutsummaryrefslogtreecommitdiffstats
path: root/launcher/itweb-settings.in
diff options
context:
space:
mode:
authorOmair Majid <[email protected]>2011-03-10 15:42:01 -0500
committerOmair Majid <[email protected]>2011-03-10 15:42:01 -0500
commit00af9d3f682ce2cde44a4d37b45c97fa8ac441c1 (patch)
treeb9235839b0b79c4760052542d8acf5b86e20b401 /launcher/itweb-settings.in
parentdf8b8ec19ae13ff4c6aff740b924acdfaeb99450 (diff)
Replace binary launchers with shell scripts
2011-03-10 Omair Majid <[email protected]> Replace native launchers with shell scripts * NEWS: Update. * Makefile.am (LAUNCHER_BOOTCLASSPATH): Remove leading -J. (LAUNCHER_SRCDIR), (LAUNCHER_OBJECTS), (NETX_LAUNCHER_OBJECTS), (CONTROLPANEL_LAUNCHER_OBJECTS), (LAUNCHER_FLAGS), (LAUNCHER_LINK): Remove. (edit_launcher_script): New function. (all-local): Depend on new launcher targets. (clean-local): Depend on clean-launchers. (.PHONY): Add clean-launchers. (install-exec-local): Use new launcher paths. (clean-launchers): New target. ($(NETX_DIR)/launcher/%.o), ($(NETX_DIR)/launcher/controlpanel/%.o), ($(NETX_DIR)/launcher/javaws), ($(NETX_DIR)/launcher/controlpanel/itweb-settings): Remove. (launcher.build/javaws): New launcher. (launcher.build/itweb-settings): Likewise. * launcher/itweb-settings.in, * launcher/javaws.in: New file. * netx/net/sourceforge/jnlp/Launcher.java (launchExternal), * netx/net/sourceforge/jnlp/controlpanel/CommandLine.java (CommandLine): Use new system properties to find paths and program names.
Diffstat (limited to 'launcher/itweb-settings.in')
-rw-r--r--launcher/itweb-settings.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/launcher/itweb-settings.in b/launcher/itweb-settings.in
new file mode 100644
index 0000000..49d2460
--- /dev/null
+++ b/launcher/itweb-settings.in
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+JAVA=@JAVA@
+LAUNCHER_BOOTCLASSPATH=@LAUNCHER_BOOTCLASSPATH@
+LAUNCHER_FLAGS=-Xms8m
+CLASSNAME=net.sourceforge.jnlp.controlpanel.CommandLine
+BINARY_LOCATION=@ITWEB_SETTINGS_BIN_LOCATION@
+PROGRAM_NAME=itweb-settings
+
+${JAVA} ${LAUNCHER_BOOTCLASSPATH} ${LAUNCHER_FLAGS} \
+ -Dicedtea-web.bin.name=${PROGRAM_NAME} \
+ -Dicedtea-web.bin.location=${BINARY_LOCATION} \
+ ${CLASSNAME} \
+ $@
+