145 * implementation. This option is handled here, rather than
146 * in parseArgs, so that none of the arguments will be nulled
147 * before delegating to the new implementation.
148 */
149 for (int i = 0; i < argv.length; i++) {
150 if (argv[i].equals("-Xnew")) {
151 return (new sun.rmi.rmic.newrmic.Main(out,
152 program)).compile(argv);
153 }
154 }
155
156 if (!parseArgs(argv)) {
157 return false;
158 }
159
160 if (classes.size() == 0) {
161 usage();
162 return false;
163 }
164
165 return doCompile();
166 }
167
168 /**
169 * Get the destination directory.
170 */
171 public File getDestinationDir() {
172 return destDir;
173 }
174
175 /**
176 * Parse the arguments for compile.
177 */
178 public boolean parseArgs(String argv[]) {
179 sourcePathArg = null;
180 sysClassPathArg = null;
181 extDirsArg = null;
182
183 classPathString = null;
184 destDir = null;
|
145 * implementation. This option is handled here, rather than
146 * in parseArgs, so that none of the arguments will be nulled
147 * before delegating to the new implementation.
148 */
149 for (int i = 0; i < argv.length; i++) {
150 if (argv[i].equals("-Xnew")) {
151 return (new sun.rmi.rmic.newrmic.Main(out,
152 program)).compile(argv);
153 }
154 }
155
156 if (!parseArgs(argv)) {
157 return false;
158 }
159
160 if (classes.size() == 0) {
161 usage();
162 return false;
163 }
164
165 if ((flags & F_WARNINGS) != 0) {
166 for (Generator g : generators) {
167 if (g instanceof RMIGenerator) {
168 error("rmic.jrmp.stubs.deprecated", program);
169 break;
170 }
171 }
172 }
173
174 return doCompile();
175 }
176
177 /**
178 * Get the destination directory.
179 */
180 public File getDestinationDir() {
181 return destDir;
182 }
183
184 /**
185 * Parse the arguments for compile.
186 */
187 public boolean parseArgs(String argv[]) {
188 sourcePathArg = null;
189 sysClassPathArg = null;
190 extDirsArg = null;
191
192 classPathString = null;
193 destDir = null;
|