src/share/classes/sun/rmi/rmic/newrmic/Main.java

Print this page




 438         long batchID = -1;
 439         for (String[] option : rootDoc.options()) {
 440             if (option[0].equals("-batchID")) {
 441                 try {
 442                     batchID = Long.parseLong(option[1]);
 443                 } catch (NumberFormatException e) {
 444                     throw new AssertionError(e);
 445                 }
 446             }
 447         }
 448         Batch batch = batchTable.get(batchID);
 449         assert batch != null;
 450 
 451         /*
 452          * Construct batch environment using class agreed upon by
 453          * generator implementations.
 454          */
 455         BatchEnvironment env;
 456         try {
 457             Constructor<? extends BatchEnvironment> cons =
 458                 batch.envClass.getConstructor(new Class<?>[] { RootDoc.class });
 459             env = cons.newInstance(rootDoc);
 460         } catch (NoSuchMethodException e) {
 461             throw new AssertionError(e);
 462         } catch (IllegalAccessException e) {
 463             throw new AssertionError(e);
 464         } catch (InstantiationException e) {
 465             throw new AssertionError(e);
 466         } catch (InvocationTargetException e) {
 467             throw new AssertionError(e);
 468         }
 469 
 470         env.setVerbose(batch.verbose);
 471 
 472         /*
 473          * Determine the destination directory (the top of the package
 474          * hierarchy) for the output of this batch; if no destination
 475          * directory was specified on the command line, then the
 476          * default is the current working directory.
 477          */
 478         File destDir = batch.destDir;




 438         long batchID = -1;
 439         for (String[] option : rootDoc.options()) {
 440             if (option[0].equals("-batchID")) {
 441                 try {
 442                     batchID = Long.parseLong(option[1]);
 443                 } catch (NumberFormatException e) {
 444                     throw new AssertionError(e);
 445                 }
 446             }
 447         }
 448         Batch batch = batchTable.get(batchID);
 449         assert batch != null;
 450 
 451         /*
 452          * Construct batch environment using class agreed upon by
 453          * generator implementations.
 454          */
 455         BatchEnvironment env;
 456         try {
 457             Constructor<? extends BatchEnvironment> cons =
 458                 batch.envClass.getConstructor(new Class[] { RootDoc.class });
 459             env = cons.newInstance(rootDoc);
 460         } catch (NoSuchMethodException e) {
 461             throw new AssertionError(e);
 462         } catch (IllegalAccessException e) {
 463             throw new AssertionError(e);
 464         } catch (InstantiationException e) {
 465             throw new AssertionError(e);
 466         } catch (InvocationTargetException e) {
 467             throw new AssertionError(e);
 468         }
 469 
 470         env.setVerbose(batch.verbose);
 471 
 472         /*
 473          * Determine the destination directory (the top of the package
 474          * hierarchy) for the output of this batch; if no destination
 475          * directory was specified on the command line, then the
 476          * default is the current working directory.
 477          */
 478         File destDir = batch.destDir;