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 |
|
|
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) |
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 |
/** |
/** |
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" |
1507 |
{ |
{ |
1508 |
return true; |
return true; |
1509 |
} |
} |
1510 |
|
|
1511 |
|
public String getGjdocVersion() |
1512 |
|
{ |
1513 |
|
return "0.7.1-cvs"; |
1514 |
|
} |
1515 |
} |
} |