/[classpath]/gjdoc/src/gnu/classpath/tools/gjdoc/Main.java
ViewVC logotype

Diff of /gjdoc/src/gnu/classpath/tools/gjdoc/Main.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.51 by julian, Wed Feb 2 21:19:44 2005 UTC revision 1.52 by julian, Thu Feb 3 13:41:14 2005 UTC
# Line 211  public final class Main Line 211  public final class Main
211     * The locale-dependent collator used for sorting.     * The locale-dependent collator used for sorting.
212     */     */
213    private Collator collator;    private Collator collator;
214    
215      private boolean option_showVersion;
216        
217    // TODO: add the rest of the options as instance variables    // TODO: add the rest of the options as instance variables
218        
# Line 860  public final class Main Line 862  public final class Main
862    
863        readOptions(optionArr);        readOptions(optionArr);
864    
865          //--- Show version and exit if requested by user
866    
867          if (option_showVersion) {
868            System.err.println("gjdoc " + getGjdocVersion());
869            System.exit(0);
870          }
871    
872        // If we have an empty source path list, add the current directory ('.')        // If we have an empty source path list, add the current directory ('.')
873    
874        if (option_sourcepath.size() == 0)        if (option_sourcepath.size() == 0)
# Line 1198  public final class Main Line 1207  public final class Main
1207            System.setProperty("java.class.path", args[0]);            System.setProperty("java.class.path", args[0]);
1208          }          }
1209        });        });
1210        options.put("--version", new OptionProcessor(1)
1211          {
1212            void process(String[] args)
1213            {
1214              option_showVersion = true;
1215            }
1216          });
1217    }    }
1218    
1219    /**    /**
# Line 1249  public final class Main Line 1265  public final class Main
1265          .print("\n"          .print("\n"
1266              + "USAGE: gjdoc [options] [packagenames] "              + "USAGE: gjdoc [options] [packagenames] "
1267              + "[sourcefiles] [@files]\n\n"              + "[sourcefiles] [@files]\n\n"
1268                + "  --version                Show version information and exit\n"
1269              + "  -overview <file>         Read overview documentation from HTML file\n"              + "  -overview <file>         Read overview documentation from HTML file\n"
1270              + "  -public                  Include only public classes and members\n"              + "  -public                  Include only public classes and members\n"
1271              + "  -protected               Include protected and public classes and members.\n"              + "  -protected               Include protected and public classes and members.\n"
# Line 1490  public final class Main Line 1507  public final class Main
1507    {    {
1508      return true;      return true;
1509    }    }
1510    
1511      public String getGjdocVersion()
1512      {
1513        return "0.7.1-cvs";
1514      }
1515  }  }

Legend:
Removed from v.1.51  
changed lines
  Added in v.1.52

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26