1 |
commit: 8bc6acaf1226e7b76140dda4c67fcf04290a0a7e |
2 |
Author: Ralph Sennhauser <sera <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 28 10:05:01 2013 +0000 |
4 |
Commit: Ralph Sennhauser <sera <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 28 12:28:00 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/java-config.git;a=commit;h=8bc6acaf |
7 |
|
8 |
Deprecation notice for setting system and user vm |
9 |
|
10 |
Adopt deprecation_notice for: |
11 |
--set-system-vm |
12 |
--set-user-vm |
13 |
|
14 |
Users are adviced to use eselect java-vm instead. |
15 |
|
16 |
--- |
17 |
src/java-config-2 | 6 +++++- |
18 |
1 file changed, 5 insertions(+), 1 deletion(-) |
19 |
|
20 |
diff --git a/src/java-config-2 b/src/java-config-2 |
21 |
index 81e50b3..62a34ef 100755 |
22 |
--- a/src/java-config-2 |
23 |
+++ b/src/java-config-2 |
24 |
@@ -175,6 +175,8 @@ def print_environment(option, opt, value, parser): |
25 |
fatalError("Could not find a vm matching: %s" % value) |
26 |
|
27 |
def set_system_vm(option, opt, value, parser): |
28 |
+ deprecation_notice() |
29 |
+ |
30 |
vm = manager.get_vm(value) |
31 |
|
32 |
if not vm: |
33 |
@@ -194,6 +196,8 @@ def set_system_vm(option, opt, value, parser): |
34 |
fatalError("Target file already exists and is not a symlink: %s" % e.file) |
35 |
|
36 |
def set_user_vm(option, opt, value, parser): |
37 |
+ deprecation_notice() |
38 |
+ |
39 |
vm = manager.get_vm(value) |
40 |
|
41 |
if not vm: |
42 |
@@ -224,7 +228,7 @@ def select_vm(option, opt, value, parser): |
43 |
fatalError("The vm could not be found") |
44 |
|
45 |
def deprecation_notice(): |
46 |
- printer._printWarning("Setting a user and system classpath is deprecated, this option will be removed from future versions.") |
47 |
+ printer._printWarning("Setting user and system vm using java-config is deprecated, use eselect java-vm instead.") |
48 |
|
49 |
def fatalError(msg): |
50 |
printer._printError(msg) |