/** *Parseszoneinfosourcefiles
*/ int compile() { int nFiles = ziFiles.size(); int status = 0;
Mappings maps = new Mappings();
BackEnd backend = BackEnd.getBackEnd();
for (int i = 0; i < nFiles; i++) {
Zoneinfo frontend = Zoneinfo.parse(ziFiles.get(i));
for (String key : frontend.getZones().keySet()) {
info(key);
Timezone tz = frontend.phase2(key);
status |= backend.processZoneinfo(tz);
}
maps.add(frontend);
}
// special code for dealing with the conflicting name "MET"
Zone.addMET();
maps.resolve();
status |= backend.generateSrc(maps);
return status;
}
publicstaticvoid main(String[] argv) {
Main zic = new Main();
/* *Parseargs
*/
zic.processArgs(argv);
/* *Readtargetzonenames
*/ if (zoneNamesFile != null) {
Zone.readZoneNames(zoneNamesFile);
}
zic.compile();
}
void usage() {
System.err.println("Usage: javazic [options] file...\n"+ " -f namefile file containing zone names\n"+ " to be generated (ie, generating subset)\n"+ " -d dir output directory\n"+ " -v verbose\n"+ " -V datavers specifies the tzdata version string\n"+ " (eg, \"tzdata2000g\")"+ " -S year output only SimleTimeZone data of that year\n"+ " -s year start year (default: 1900)\n"+ " -e year end year (default: 2037)\n"+ " -doc generates HTML documents\n"+ " -map mapfile generates HTML documents with map information\n"+ " file... zoneinfo source file(s)");
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.