/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* Main class for the javazic time zone data compiler.
*
* @since 1.4
*/
public class Main {
private static boolean verbose = false;
static boolean outputDoc = false;
/**
* Parses the specified arguments and sets up the variables.
* @param argv the arguments
*/
usage();
verbose = true;
versionName = argv[++i];
outputDoc = true;
outputDoc = true;
zoneNamesFile = argv[++i];
try {
} catch (Exception e) {
usage();
}
} else {
try {
if (isStartYear) {
} else {
}
} catch (Exception e) {
usage();
}
} else {
// the rest of args are zoneinfo source files
}
}
}
}
}
/**
* Parses zoneinfo source files
*/
int compile() {
int status = 0;
for (int i = 0; i < nFiles; i++) {
}
}
// special code for dealing with the conflicting name "MET"
return status;
}
/*
* Parse args
*/
/*
* Read target zone names
*/
if (zoneNamesFile != null) {
}
}
void usage() {
" -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)");
}
/**
* @return the output directory path name
*/
return outputDir;
}
/**
* @return the map file's path and name
*/
return mapFile;
}
/**
* Returns the time zone data version string specified by the -V
* option. If it is not specified, "unknown" is returned.
* @return the time zone data version string
*/
return versionName;
}
/**
* Prints out the specified fatal error message and calls {@link
* java.lang.System#exit System.exit(1)}.
* @param msg the fatal error message
*/
}
/**
* Prints out the specified error message.
* @param msg the error message
*/
}
/**
* Prints out the specified warning message.
* @param msg the warning message
*/
}
/**
* Prints out the informative message.
* @param msg the informative message
*/
if (verbose) {
}
}
type += ": ";
} else {
type = "";
}
}
}