aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Sennhauser <sera@gentoo.org>2013-12-28 11:05:01 +0100
committerRalph Sennhauser <sera@gentoo.org>2013-12-28 13:28:00 +0100
commit8bc6acaf1226e7b76140dda4c67fcf04290a0a7e (patch)
tree160290be153b0afa320cbe735ef192880a9ba7f8
parentDrop query functions for old style virtuals (diff)
downloadjava-config-8bc6acaf1226e7b76140dda4c67fcf04290a0a7e.tar.gz
java-config-8bc6acaf1226e7b76140dda4c67fcf04290a0a7e.tar.bz2
java-config-8bc6acaf1226e7b76140dda4c67fcf04290a0a7e.zip
Deprecation notice for setting system and user vm
Adopt deprecation_notice for: --set-system-vm --set-user-vm Users are adviced to use eselect java-vm instead.
-rwxr-xr-xsrc/java-config-26
1 files changed, 5 insertions, 1 deletions
diff --git a/src/java-config-2 b/src/java-config-2
index 81e50b3..62a34ef 100755
--- a/src/java-config-2
+++ b/src/java-config-2
@@ -175,6 +175,8 @@ def print_environment(option, opt, value, parser):
fatalError("Could not find a vm matching: %s" % value)
def set_system_vm(option, opt, value, parser):
+ deprecation_notice()
+
vm = manager.get_vm(value)
if not vm:
@@ -194,6 +196,8 @@ def set_system_vm(option, opt, value, parser):
fatalError("Target file already exists and is not a symlink: %s" % e.file)
def set_user_vm(option, opt, value, parser):
+ deprecation_notice()
+
vm = manager.get_vm(value)
if not vm:
@@ -224,7 +228,7 @@ def select_vm(option, opt, value, parser):
fatalError("The vm could not be found")
def deprecation_notice():
- printer._printWarning("Setting a user and system classpath is deprecated, this option will be removed from future versions.")
+ printer._printWarning("Setting user and system vm using java-config is deprecated, use eselect java-vm instead.")
def fatalError(msg):
printer._printError(msg)