Lines Matching defs:pkg
170 final Package pkg = new Package();
241 pkg.default_modtime = modtime;
247 pkg.default_options |= Constants.AO_DEFLATE_HINT;
289 pkg.min_class_majver = (short) ver;
291 pkg.min_class_minver = (short) ver;
293 pkg.max_class_majver = (short) ver;
295 pkg.max_class_minver = (short) ver;
297 pkg.package_minver = (short) ver;
299 pkg.package_majver = (short) ver;
306 pkg.default_options |= opt;
329 pkg.reset();
347 } else if (latestModtime && timeSecs > pkg.default_modtime) {
348 pkg.default_modtime = timeSecs;
359 } else if (latestModtime && timeSecs > pkg.default_modtime) {
360 pkg.default_modtime = timeSecs;
418 pkg.addFile(readFile(JarFile.MANIFEST_NAME, tmpIn));
448 pkg.addFile(file);
493 pkg.addFile(file);
504 Package.Class cls = pkg.new Class(fname);
536 pkg.addClass(cls);
543 Package.File file = pkg.new File(fname);
551 if (pkg.files.isEmpty() && pkg.classes.isEmpty()) {
584 int nfiles = pkg.files.size();
590 pkg.reorderFiles(keepClassOrder, stripDirectories);
593 assert(pkg.files.containsAll(pkg.getClassStubs()));
595 List<Package.File> res = pkg.files;
596 assert((res = new ArrayList<>(pkg.files))
597 .retainAll(pkg.getClassStubs()) || true);
598 assert(res.equals(pkg.getClassStubs()));
600 pkg.trimStubs();
603 if (props.getBoolean(Utils.COM_PREFIX+"strip.debug")) pkg.stripAttributeKind("Debug");
604 if (props.getBoolean(Utils.COM_PREFIX+"strip.compile")) pkg.stripAttributeKind("Compile");
605 if (props.getBoolean(Utils.COM_PREFIX+"strip.constants")) pkg.stripAttributeKind("Constant");
606 if (props.getBoolean(Utils.COM_PREFIX+"strip.exceptions")) pkg.stripAttributeKind("Exceptions");
607 if (props.getBoolean(Utils.COM_PREFIX+"strip.innerclasses")) pkg.stripAttributeKind("InnerClasses");
610 if (pkg.package_majver <= 0) pkg.choosePackageVersion();
612 PackageWriter pw = new PackageWriter(pkg, out);