aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/runtime
diff options
context:
space:
mode:
authorOmair Majid <[email protected]>2011-01-28 11:41:23 -0500
committerOmair Majid <[email protected]>2011-01-28 11:41:23 -0500
commitf64c8bd3c5ad5b3e12c2f767008944df7a79eea0 (patch)
treef3b78ad5684aae37ab7a34744e16396abe766c93 /netx/net/sourceforge/jnlp/runtime
parentd16944552990c2c953fdbd5e8d11f43e31dcbb3f (diff)
Use name and version as defined in configure.ac instead of hardcoding it in Boot.java
Use PACKAGE_NAME and FULL_VERSION as defined during build time rather than hardcoding them in net.sourceforge.jnlp.runtime.Boot. Generate a manifest file at build time, and define Implementation-Title and Implementation-Version to PACKAGE_NAME and FULL_VERSION. Use these values from the manifest file when displaying project name and version, rather than hardcoding "netx" and 0.5. 2011-01-28 Omair Majid <[email protected]> * Makefile.am: Move ICEDTEA_REV, ICEDTEA_PKG to acinclude.m4. Use FULL_VERSION. (stamps/netx-dist.stamp): Depend on netx.manifest. Use this file as the jar file manifest. * acinclude.m4 (IT_SET_VERSION): New macro. Defines FULL_VERSION. * configure.ac: Add netx.manifest to AC_CONFIG_FILES. Invoke IT_SET_VERSION. * netx.manifest.in: New file. * netx/net/sourceforge/jnlp/runtime/Boot.java: Set name and version using information from the manifest file.
Diffstat (limited to 'netx/net/sourceforge/jnlp/runtime')
-rw-r--r--netx/net/sourceforge/jnlp/runtime/Boot.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/netx/net/sourceforge/jnlp/runtime/Boot.java b/netx/net/sourceforge/jnlp/runtime/Boot.java
index b075e65..91ecdf5 100644
--- a/netx/net/sourceforge/jnlp/runtime/Boot.java
+++ b/netx/net/sourceforge/jnlp/runtime/Boot.java
@@ -58,11 +58,12 @@ public final class Boot implements PrivilegedAction<Void> {
// todo: decide whether a spawned netx (external launch)
// should inherit the same options as this instance (store argv?)
- private static final String version = "0.5";
+ private static final String name = Boot.class.getPackage().getImplementationTitle();
+ private static final String version = Boot.class.getPackage().getImplementationVersion();
/** the text to display before launching the about link */
private static final String aboutMessage = ""
- + "netx v" + version + " - (C)2001-2003 Jon A. Maxwell ([email protected])\n"
+ + name + " " + version
+ "\n"
+ R("BLaunchAbout");