1 /* |
1 /* |
2 * Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
86 public void process(Helper helper, String arg) { |
86 public void process(Helper helper, String arg) { |
87 helper.setFileManagerOpt(Option.BOOTCLASSPATH, arg); |
87 helper.setFileManagerOpt(Option.BOOTCLASSPATH, arg); |
88 } |
88 } |
89 }, |
89 }, |
90 |
90 |
|
91 MODULESOURCEPATH("-modulesourcepath", true) { |
|
92 @Override |
|
93 public void process(Helper helper, String arg) { |
|
94 helper.setFileManagerOpt(Option.MODULESOURCEPATH, arg); |
|
95 } |
|
96 }, |
|
97 |
|
98 UPGRADEMODULEPATH("-upgrademodulepath", true) { |
|
99 @Override |
|
100 public void process(Helper helper, String arg) { |
|
101 helper.setFileManagerOpt(Option.UPGRADEMODULEPATH, arg); |
|
102 } |
|
103 }, |
|
104 |
|
105 SYSTEM("-system", true) { |
|
106 @Override |
|
107 public void process(Helper helper, String arg) { |
|
108 helper.setFileManagerOpt(Option.SYSTEM, arg); |
|
109 } |
|
110 }, |
|
111 |
|
112 MODULEPATH("-modulepath", true) { |
|
113 @Override |
|
114 public void process(Helper helper, String arg) { |
|
115 helper.setFileManagerOpt(Option.MODULEPATH, arg); |
|
116 } |
|
117 }, |
|
118 |
|
119 ADDMODS("-addmods", true) { |
|
120 @Override |
|
121 public void process(Helper helper, String arg) { |
|
122 helper.setCompilerOpt(opt, arg); |
|
123 } |
|
124 }, |
|
125 |
|
126 LIMITMODS("-limitmods", true) { |
|
127 @Override |
|
128 public void process(Helper helper, String arg) { |
|
129 helper.setCompilerOpt(opt, arg); |
|
130 } |
|
131 }, |
|
132 |
91 ENCODING("-encoding", true) { |
133 ENCODING("-encoding", true) { |
92 @Override |
134 @Override |
93 public void process(Helper helper, String arg) { |
135 public void process(Helper helper, String arg) { |
94 helper.encoding = arg; |
136 helper.encoding = arg; |
95 helper.setCompilerOpt(opt, arg); |
137 helper.setCompilerOpt(opt, arg); |